Skip to content

fix(mongo): auto-detect mongo/mongosh shell path instead of hardcoding#3148

Open
Tieger wants to merge 2 commits intohhyo:masterfrom
Tieger:fix/mongo-shell-auto-detect
Open

fix(mongo): auto-detect mongo/mongosh shell path instead of hardcoding#3148
Tieger wants to merge 2 commits intohhyo:masterfrom
Tieger:fix/mongo-shell-auto-detect

Conversation

@Tieger
Copy link
Copy Markdown

@Tieger Tieger commented Apr 2, 2026

  • Use shutil.which() to detect mongo or mongosh binary
  • Fall back to 'mongo' if neither is found
  • Fixes issue where mongo-only environments fail to execute commands

- Use shutil.which() to detect mongo or mongosh binary
- Fall back to 'mongo' if neither is found
- Fixes issue where mongosh-only environments fail to execute commands
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.46%. Comparing base (bc1f10e) to head (c04f7bc).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3148   +/-   ##
=======================================
  Coverage   79.45%   79.46%           
=======================================
  Files         133      133           
  Lines       19629    19633    +4     
=======================================
+ Hits        15597    15601    +4     
  Misses       4032     4032           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant