Repository navigation
build: install the downloaded cargo-binstall instead of reinstalling it - #5424
Conversation
…talling it The deps stage downloads the cargo-binstall release archive and then ran `./cargo-binstall -y --force cargo-binstall@<version>` to put itself into ~/.cargo/bin. That self-install asks the GitHub API for the release; on a shared runner the API answered 403 (rate limit), cargo-binstall fell back to building itself from source, and the build failed. This broke the Drive linux/amd64 image of the v5.0.0-rc.1 release until the job was re-run. The source fallback cannot be made to work with --locked either: built from the crate's own Cargo.lock, cargo-binstall 1.10.11 fails on Rust 1.98.1 (fs-lock calls std::fs::TryLockError::raw_os_error, which no longer exists); built without it, newer dependency releases break it. The archive already holds the requested version, so move it into ~/.cargo/bin: no API call and no fallback build remain. No automated test: the failure depends on GitHub API rate limiting. Verified manually that `cargo install --locked [email protected]` fails on Rust 1.98.1 (fs-lock E0599), so --locked alone would not have fixed the release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
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. Comment |
|
✅ Final review complete — no blockers (commit 82694de) · triage: low |
|
Waiting for bot review — coderabbitai not yet · thepastaclaw ✓. Wait for the missing reviews, or a writer can post |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
Verified the complete Dockerfile diff at head 82694de and found no in-scope defects. The direct move installs the already-downloaded, version-pinned, architecture-specific binary into the Cargo bin directory established by the inherited Rust setup, while preserving the final PATH/functionality check. Validation was static only; the supplied CI snapshot shows CodeRabbit succeeded and the remaining listed checks were queued, so build validation is not established.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: architecture-layering); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — The Dockerfile change is a small, contained replacement of cargo-binstall self-installation with moving the already-downloaded binary into Cargo's bin directory. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 95% left; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 14% left, 5h 100% left) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.1-sol— architecture-layering (completed, effort medium); agentphase2-reviewer
Issue being fixed or feature implemented
The v5.0.0-rc.1 release run failed to build the Drive linux/amd64 image. In the Docker
depsstage, the downloaded cargo-binstall archive ran./cargo-binstall -y --force [email protected]to install itself into~/.cargo/bin. That self-install asks the GitHub API for the release; on the shared runner the API answered 403 (rate limit), so cargo-binstall fell back to building itself from source, and the source build failed (newer dependency releases no longer compile against cargo-binstall 1.10.11). A re-run of the job passed.What was done?
The archive already contains the requested cargo-binstall version, so the stage now moves the downloaded binary into
${CARGO_HOME:-$HOME/.cargo}/bininstead of letting it reinstall itself. No GitHub API call and no source fallback remain on this step.cargo binstall -Vstill runs at the end of the step.Why not
--locked: building cargo-binstall 1.10.11 from its ownCargo.lockalso fails on our Rust 1.98.1 (fs-lockcallsstd::fs::TryLockError::raw_os_error, which no longer exists), so the source fallback cannot work either way. Every other cargo build and binstall in the Dockerfile already uses--locked.How Has This Been Tested?
cargo install --locked [email protected]on Rust 1.98.1 fails with E0599 infs-lock(reproduced locally), confirming--lockedalone would not fix the release.depsstage; no automated test is possible for the GitHub rate-limit path.Breaking Changes
None.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
82694de/skip-botsproceeds without the ones not yet reported/self-reviewedWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.