Repository navigation
ci: test with MongoDB 7.0 by default - #309
Merged
Merged
Conversation
MongoDB 8.0 refuses to start on Linux kernels 6.19 to 7.0.13 (SERVER-121912), which some GitHub runners have, so that jobs using it fail at random. Run the unit tests with MongoDB 7.0, keep one job with MongoDB 8.0 that does not fail the workflow, and use MongoDB 7.0 in the example apps (also used by the integration tests). Mention the issue in the migration guide. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe PR avoids intermittent MongoDB 8.0 startup failures by making MongoDB 7.0 the default for CI and example applications, while preserving MongoDB 8.0 coverage in a non-blocking Python 3.13 job and documenting the affected Linux kernels and workaround. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #309 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 1322 1322
=========================================
Hits 1322 1322
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 19, 2026 20:51
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="examples/petstore/docker-compose.yaml" line_range="29" />
<code_context>
- image: mongo:8.0
+ # MongoDB 8.0 refuses to start on Linux kernels 6.19 to 7.0.13
+ # (https://jira.mongodb.org/browse/SERVER-121912)
+ image: mongo:7.0
restart: unless-stopped
volumes:
</code_context>
<issue_to_address>
**Existing databases become unavailable**
When an example has a persisted bind-mounted database initialized by MongoDB 8.0 and the updated Compose configuration switches it to 7.0, `docker compose up` starts `mongo:7.0` against the MongoDB 8.0 data; MongoDB rejects the downgrade, including data at FCV 8.0, so the database service exits and the example app loses access to its existing database.
Keep the MongoDB image compatible with existing data, or provide and document a supported downgrade or backup-and-restore path before switching existing deployments to 7.0.
Also at `examples/petstore-access-control/docker-compose.yaml:30`.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: examples/petstore/docker-compose.yaml:29
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 19, 2026
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MongoDB 8.0 refuses to start on Linux kernels 6.19 to 7.0.13 ("MongoDB cannot start: Linux kernel versions 6.19 and newer has a known incompatibility with this version of MongoDB", SERVER-121912): its TCMalloc violates the kernel's rseq ABI. Some GitHub runners now have such kernels, so CI jobs using MongoDB 8.0 fail at random (seen in two runs of #308: a unit test job whose MongoDB container never started, and the petstore integration tests, whose app could not reach MongoDB). No MongoDB release with a confirmed fix is known; MongoDB 7.0 is not affected and passed in all runs.
continue-on-error, so it does not fail the workflow. Coverage is uploaded from the Python 3.13 / MongoDB 7.0 job.mongo:7.0.Verification
mkdocs build --strictpasses.Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Make MongoDB 7.0 the default test and example version while preserving non-blocking MongoDB 8.0 coverage and documenting the compatibility issue.
Bug Fixes:
Enhancements:
CI:
Documentation: