Skip to content

ci: run MongoDB integration tests - #53

Merged
Benoît Cortier (CBenoit) merged 4 commits into
masterfrom
cbenoit-fix-mongodb-index-assertions
Aug 6, 2026
Merged

ci: run MongoDB integration tests#53
Benoît Cortier (CBenoit) merged 4 commits into
masterfrom
cbenoit-fix-mongodb-index-assertions

Conversation

@CBenoit

@CBenoit Benoît Cortier (CBenoit) commented Aug 6, 2026

Copy link
Copy Markdown
Member

Run the ignored MongoDB integration tests against MongoDB 7 in CI.

Assert index keys and uniqueness instead of response metadata so the tests work across server versions. Fail the Success gate unless every required job succeeds.

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

MongoDB 7 omits per-index ns metadata from listIndexes responses.

Assert index keys and uniqueness instead, while retaining stale index
replacement coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@CBenoit
Benoît Cortier (CBenoit) force-pushed the cbenoit-fix-mongodb-index-assertions branch from 38eb699 to 7f87ee7 Compare August 6, 2026 06:57
@CBenoit Benoît Cortier (CBenoit) changed the title test: make MongoDB index assertions version-independent test: avoid version-dependent index metadata Aug 6, 2026
@CBenoit
Benoît Cortier (CBenoit) changed the base branch from cbenoit-add-mongodb-integration-ci to master August 6, 2026 06:57
Run the ignored MongoDB-backed integration tests in CI using a MongoDB 7
service container on Ubuntu.

The job serializes tests because two existing tests share a collection,
and it is included in the `Success` gate.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@CBenoit Benoît Cortier (CBenoit) changed the title test: avoid version-dependent index metadata ci: run MongoDB integration tests Aug 6, 2026
@CBenoit
Benoît Cortier (CBenoit) enabled auto-merge (squash) August 6, 2026 07:09
The Success job did not fail when a required job was skipped or failed.

Run its step unconditionally and fail unless every required job succeeds.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI 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.

Pull request overview

Runs ignored MongoDB integration tests against MongoDB 7 and makes index assertions resilient across server versions.

Changes:

  • Adds a MongoDB-backed integration-test CI job.
  • Validates required job results in the Success gate.
  • Replaces response-metadata assertions with index key and uniqueness checks.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Adds MongoDB integration testing and required-job validation.
tests/indexes.rs Introduces server-version-independent index assertions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Use the needs result wildcard while preserving explicit failure for every
non-success dependency result.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@CBenoit
Benoît Cortier (CBenoit) merged commit 7ca3aea into master Aug 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants