Repository navigation
fix(deps): drop unused testcontainers-modules, unblocking the whole cargo column - #840
Conversation
…argo column
`integration/Cargo.toml` required `testcontainers = "0.28"` and
`testcontainers-modules = "0.15"` together. testcontainers-modules 0.15.0 --
the newest published release as of 2026-09-22 -- still requires
`testcontainers ^0.27`, so the pair was unsatisfiable and cargo failed at
*resolution*, before compiling anything:
error: failed to select a version for `testcontainers`
required by package `testcontainers-modules v0.15.0`
versions that meet the requirements `^0.27.0` are: 0.27.3 ... 0.27.0
previously selected package `bollard v0.21.0`
which satisfies dependency `bollard = "^0.21.0"` of `testcontainers v0.28.0`
Because resolution precedes every cargo subcommand, this one pair reddened
five checks that name unrelated subjects: Build AsciiDoc, Cargo check +
clippy + fmt, Check, Clippy and Test. `Build AsciiDoc` in particular is not
an AsciiDoc failure -- both its AsciiDoc steps pass and it dies later, in
"Generate Rust API documentation".
Removed rather than downgraded, because the crate was contributing nothing:
- `git grep testcontainers_modules` finds no Rust code importing it.
- Dragonfly/Redis is provisioned by `integration/compose.test.yaml` and
reached via the `DRAGONFLY_URL` env var (`integration/src/lib.rs:109`),
not by testcontainers.
- The only testcontainers use, `integration/tests/arangodb_test.rs`, is
stable core API (`GenericImage`, `AsyncRunner`, `WaitFor`, `ImageExt`).
Keeping `testcontainers 0.28` and dropping the unused dep is preferable to
downgrading to 0.27: it holds the newest release and shrinks the trusted
base by 8 packages (ppv-lite86, rand, rand_chacha, rand_core,
testcontainers-modules, ureq, ureq-proto, utf8-zero), including a second
HTTP client. The `rand` entries removed were older duplicate versions;
`rand v0.10.2` remains, still required by bollard, ferroid and this crate
directly.
Note for reviewers: `.gitattributes:52` marks `Cargo.lock` as `-diff`, so
`git diff` reports it as binary. Use `git diff --text` to read it.
Refs #838
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (25)
🔇 Additional comments (1)
📝 SummarySummary by CodeRabbit
WalkthroughThe integration manifest removes the incompatible ChangesIntegration dependency resolution
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The dependency removal is safe based on the reachable integration code and documented Compose provisioning path. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation PR Resolution Update the affected CI workflow commands to use
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. A rabbit checks the cargo nest Comment |
Fixes the dependency resolution failure reported in #838.
What was wrong
integration/Cargo.tomlrequiredtestcontainers = "0.28"andtestcontainers-modules = "0.15"simultaneously. testcontainers-modules0.15.0 still requires
testcontainers ^0.27, so the pair was unsatisfiable.Cargo failed at resolution — before compiling a single line.
Because resolution precedes every cargo subcommand, this one pair reddened
five checks that name unrelated subjects.
Build AsciiDocis the clearestcase: it is not an AsciiDoc failure. Step-level breakdown of job
106870727862showsBuild main documentationsuccess,Build PDF documentationsuccess, thenGenerate Rust API documentationfailure.Removal, not a version bump — stated plainly
There is no version pair that works. As of 2026-09-22, crates.io shows
testcontainers newest = 0.28.0 and testcontainers-modules newest =
0.15.0, which requires
testcontainers ^0.27. The modules crate lags.The only two arms were downgrade testcontainers to 0.27, or remove the
modules crate.
Removal is correct here because the crate was never used:
git grep -rn 'testcontainers_modules'returns no hits — no Rust codeimports it.
integration/compose.test.yamlandreached via the
DRAGONFLY_URLenv var (integration/src/lib.rs:109-110),not by testcontainers.
integration/tests/arangodb_test.rs, usesstable core API only (
GenericImage,AsyncRunner,WaitFor,ImageExt).So the crate that broke the entire workspace contributed nothing. Keeping
0.28 and dropping the unused dep holds the newest release and shrinks the
trusted base by 8 packages — including
ureq, a second HTTP client theworkspace did not need alongside
reqwest.Reviewing the lockfile
.gitattributes:52setsCargo.lock text eol=lf -diff, deliberately, solockfile churn stays out of review.
git difftherefore reports it asBin 123167 -> 121105 bytes. Usegit diff --textto read it.Removed (8):
ppv-lite86,rand,rand_chacha,rand_core,testcontainers-modules,ureq,ureq-proto,utf8-zero. Added: none.The
randremovals are duplicate-version removals, not a loss —rand v0.10.2andrand_core v0.10.1remain, andcargo tree -p hypatia-integration-tests -i randshows rand v0.10.2 stillrequired by
bollard v0.21.1,ferroid v2.0.0and this crate directly.The dropped entries were older duplicates pulled in transitively by
testcontainers-modules and ureq.
Measured locally, in a worktree off
origin/mainBefore, on
origin/main:cargo metadata→ rc=101, the resolution error.After, on this branch — every previously-red gate:
cargo metadata --lockedcargo check --workspace --all-targets --lockedcargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace --all-targetscargo test --workspace --doccargo doc --workspace --no-deps --document-private-itemsThe last is the exact command from
quality.yml:122— the stepBuild AsciiDocactually dies in. It now succeeds.Acceptance criteria from #838
cargo metadata --lockedandcargo check --workspace --lockedboth rc=0. Resolved by removing the unusable dep after checking the
published matrix, not by guessing.
/commits/<head>/check-runson this PR, then onmainafter merge.Build AsciiDoc—cargo docpasses locally; CI will confirm. Anyresidual failure is a different fault and gets its own issue, per the AC.
Cargo.lockis committed and updated here. The other half —making CI pass
--locked— is not in this PR: no cargo invocation inany workflow currently uses
--locked(measured: zero hits across all of.github/workflows/), and this session's token lacks theworkflowscope,so it cannot push workflow edits. Filed as a follow-up rather than left
silently unticked.
mainitself is the mutant: it carriesthe incompatible pair and
cargo metadatathere returns rc=101 with theresolution error, as recorded in The whole red cargo column on main is one unsatisfiable pair: testcontainers ^0.28 vs testcontainers-modules ^0.15 #838 from run
35763405727. The failureis at resolution, as required.
Because ACs 2–4 are not fully satisfied by this PR alone, this is
Refs #838,not
Closes #838. The issue should close once the cargo column is observedgreen on
main.🤖 Generated with Claude Code
https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV