Skip to content

build: install the downloaded cargo-binstall instead of reinstalling it - #5424

Merged
shumkov merged 1 commit into
v5.0-devfrom
build/docker-install-binstall-directly
Oct 14, 2026
Merged

shumkov merged 1 commit into
v5.0-devfrom
build/docker-install-binstall-directly

Conversation

@shumkov

@shumkov shumkov commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

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 deps stage, 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}/bin instead of letting it reinstall itself. No GitHub API call and no source fallback remain on this step. cargo binstall -V still runs at the end of the step.

Why not --locked: building cargo-binstall 1.10.11 from its own Cargo.lock also fails on our Rust 1.98.1 (fs-lock calls std::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 in fs-lock (reproduced locally), confirming --locked alone would not fix the release.
  • The changed step is exercised by any Docker image build of the deps stage; no automated test is possible for the GitHub rate-limit path.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on this pull request

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

PR Hygiene · 82694de

  • Bots — coderabbitai not yet · thepastaclaw ✓ — /skip-bots proceeds without the ones not yet reported
  • Self-review — post /self-reviewed
  • Build running
  • Approvals — you own every area touched; none needed

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

…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]>
@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: dashpay/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c4961a95-8a08-4d9e-8335-fa6c9c406987
📥 Commits

Reviewing files that changed from the base of the PR and between 9917fef and 82694de.

📒 Files selected for processing: 1
  • Dockerfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@thepastaclaw

thepastaclaw commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Final review complete — no blockers (commit 82694de) · triage: low

@github-actions github-actions Bot added this to the v5.0.0 milestone Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — coderabbitai not yet · thepastaclaw ✓. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Oct 14, 2026

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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: low by gpt-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); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 99% left, weekly 95% left; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 14% left, 5h 100% left)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — architecture-layering (completed, effort medium); agent phase2-reviewer

@shumkov shumkov changed the title build(docker): install the downloaded cargo-binstall instead of reinstalling it build: install the downloaded cargo-binstall instead of reinstalling it Oct 14, 2026
@shumkov
shumkov merged commit 57a8bf4 into v5.0-dev Oct 14, 2026
22 of 24 checks passed
@shumkov
shumkov deleted the build/docker-install-binstall-directly branch October 14, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-bots Waiting for the review bots to report on this head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants