Skip to content

refactor: Bump mongodb-runner from 5.9.3 to 6.8.3#10591

Merged
mtrezza merged 2 commits into
parse-community:alphafrom
mtrezza:refactor/mongodb-runner-6.8.3
Jul 20, 2026
Merged

refactor: Bump mongodb-runner from 5.9.3 to 6.8.3#10591
mtrezza merged 2 commits into
parse-community:alphafrom
mtrezza:refactor/mongodb-runner-6.8.3

Conversation

@mtrezza

@mtrezza mtrezza commented Jul 20, 2026

Copy link
Copy Markdown
Member

Closes #10586

Bumps the mongodb-runner devDependency (test tooling) from 5.9.3 to 6.8.3. This is a MAJOR upgrade (5.x → 6.x). mongodb-runner is used only in the test, coverage:mongodb, and benchmark npm scripts to spin up a MongoDB server for the test suite (mongodb-runner exec -t <topology> --version <version> -- --port 27017 -- <cmd>); it is not shipped to consumers.

Changes

The exec subcommand and the -t/--topology, --version, --port, and -- passthrough options that our npm scripts rely on are all unchanged in 6.8.3 (verified against the 6.8.3 CLI source and by running the installed binary).

Breaking Changes

None affecting this repository. The upstream major-version breaking change is confined to mongodb-downloader's internal download coordination and does not alter the CLI interface, the required Node.js version, or the MongoDB server versions our tests use (7.0.16 / 8.0.4 / 8.3.4). The tightest Node.js requirement introduced (mongodb@7 and yargs@18: >=20.19.0) is satisfied by every Node version in the CI matrix (20.19.0, 22.12.0, 24.11.0) and matches the declared engines.node minimum; engines.node is unchanged. lockfileVersion remains 2.

Code Changes Required

None — drop-in replacement. Only package.json (devDependency version) and package-lock.json changed. npm ci installs cleanly and the mongodb-runner CLI resolves the exec command as before.

Summary by CodeRabbit

  • Chores
    • Upgraded MongoDB development tooling to a newer MongoDB runner version.
    • Refreshed the dependency lockfile to align MongoDB-related packages and updated supporting utilities/transitive dependencies with the new tooling stack.

@parse-github-assistant

Copy link
Copy Markdown

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

The development dependency mongodb-runner is upgraded from 5.9.3 to 6.8.3. The lockfile refreshes MongoDB, OIDC, ASN.1/X509, archive, locking, and related transitive packages while removing obsolete nested versions.

MongoDB runner upgrade

Layer / File(s) Summary
MongoDB runner package upgrade
package.json, package-lock.json
Updates mongodb-runner and its MongoDB-related dependency subtree, including mongodb, bson, downloader, connection-string, and type packages.
OIDC and security dependency graph
package-lock.json
Adds the OIDC mock provider and associated ASN.1, X509, metadata, reflection, and dependency-injection packages.
Archive and lockfile dependency refresh
package-lock.json
Updates tar, minipass, minizlib, chownr, yallist, and lockfile-related packages while removing obsolete entries.

Estimated code review effort: 2 (Simple) | ~10 minutes


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Engage In Review Feedback ❓ Inconclusive No repo-accessible review comments or discussion artifacts exist to verify feedback engagement; history only shows the dependency bump merge. Provide the PR review thread or metadata showing comments were discussed and either addressed in a commit or retracted.
✅ Passed checks (6 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the change and uses the required refactor: prefix with a capitalized action word.
Description check ✅ Passed The description covers the issue, approach, breaking changes, and implementation impact, though it does not use the template headings verbatim.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Check ✅ Passed PASS: Updated deps resolve to non-vulnerable versions (node-fetch 2.7.0, yargs-parser 22.0.0, tar 7.5.20), and GitHub advisories show no issues for mongodb-runner/@peculiar/x509.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package-lock.json`:
- Around line 3456-3459: Update the dependency resolution for
`@mongodb-js/mongodb-downloader` so it no longer requires or resolves
decompress@4.2.1. Replace the downloader with a release that removes this
dependency, or use a patched alternative, then regenerate package-lock.json and
verify both decompress entries are absent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d5eec4dd-09d2-4d9f-b803-bbc7ebdb73fa

📥 Commits

Reviewing files that changed from the base of the PR and between b45f7ea and 998706b.

📒 Files selected for processing (2)
  • package-lock.json
  • package.json

Comment thread package-lock.json
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.69%. Comparing base (34c8f75) to head (a17f74e).

Additional details and impacted files
@@           Coverage Diff           @@
##            alpha   #10591   +/-   ##
=======================================
  Coverage   92.69%   92.69%           
=======================================
  Files         193      193           
  Lines       17027    17027           
  Branches      248      248           
=======================================
  Hits        15784    15784           
  Misses       1222     1222           
  Partials       21       21           

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mtrezza
mtrezza force-pushed the refactor/mongodb-runner-6.8.3 branch from 998706b to 858447f Compare July 20, 2026 14:16

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
package-lock.json (1)

3515-3518: ⚠️ Potential issue | 🔴 Critical

The previously reported decompress@4.2.1 vulnerability is still present.

Both lockfile representations still resolve decompress:^4.2.1, which can extract archive entries outside the target directory. Update mongodb-runner/its downloader to a release without this dependency, or use a verified patched alternative, then regenerate the lockfile and confirm both entries are gone.

Also applies to: 29613-29616

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package-lock.json` around lines 3515 - 3518, Remove the vulnerable
decompress@4.2.1 resolution from both lockfile representations by updating
mongodb-runner or its downloader to a release using a verified patched
alternative, then regenerate the lockfile and confirm neither decompress:^4.2.1
entry remains.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@package-lock.json`:
- Around line 3515-3518: Remove the vulnerable decompress@4.2.1 resolution from
both lockfile representations by updating mongodb-runner or its downloader to a
release using a verified patched alternative, then regenerate the lockfile and
confirm neither decompress:^4.2.1 entry remains.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0e12646b-1b5f-4610-ae43-5f0234fb14be

📥 Commits

Reviewing files that changed from the base of the PR and between 858447f and a17f74e.

📒 Files selected for processing (2)
  • package-lock.json
  • package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • package.json

@mtrezza
mtrezza merged commit 154e1d4 into parse-community:alpha Jul 20, 2026
25 checks passed
@mtrezza
mtrezza deleted the refactor/mongodb-runner-6.8.3 branch July 20, 2026 22:19
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