Skip to content

Install cargo-c with --locked - #1731

Merged
adombeck merged 2 commits into
mainfrom
1730-build-broker-snap-step-fails-i
Jul 14, 2026
Merged

Install cargo-c with --locked#1731
adombeck merged 2 commits into
mainfrom
1730-build-broker-snap-step-fails-i

Conversation

@adombeck

@adombeck adombeck commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The Build libhimmelblau step started failing with:

rustc 1.94.0 is not supported by the following package:
  cargo-credential-libsecret@0.5.8 requires rustc 1.95

cargo install cargo-c resolves transitive dependencies to their latest compatible versions, so a freshly published dependency that bumped its MSRV above the CI toolchain's rustc breaks installation even though our own code is unchanged. Passing --locked makes cargo honor the crates' own lockfiles, pinning dependencies to versions that build with the current toolchain. This matches how debian-build.yaml and auto-updates.yaml already install cargo binaries.

Closes #1730
UDENG-10998

The `Build libhimmelblau` step started failing with:

    rustc 1.94.0 is not supported by the following package:
      cargo-credential-libsecret@0.5.8 requires rustc 1.95

`cargo install cargo-c` resolves transitive dependencies to their
latest compatible versions, so a freshly published dependency that
bumped its MSRV above the CI toolchain's rustc breaks installation even
though our own code is unchanged. Passing --locked makes cargo honor the
crates' own lockfiles, pinning dependencies to versions that build with
the current toolchain. This matches how debian-build.yaml and
auto-updates.yaml already install cargo binaries.
@adombeck adombeck added the e2e-tests This issue is related to end-to-end tests / Run end-to-end tests on this pull request label Jul 13, 2026
@adombeck

Copy link
Copy Markdown
Contributor Author

@nooreldeenmansour I cherry-picked your commit from #1723 because this failure is blocking other PRs as well

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.97%. Comparing base (a0262c9) to head (b7bc012).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1731      +/-   ##
==========================================
- Coverage   88.00%   84.97%   -3.03%     
==========================================
  Files          96       25      -71     
  Lines        7009     1943    -5066     
  Branches      112        0     -112     
==========================================
- Hits         6168     1651    -4517     
+ Misses        785      292     -493     
+ Partials       56        0      -56     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Building the authd-msentraid broker started failing with

    error: failed to compile `cargo-c v0.10.23+cargo-0.97.1`, intermediate artifacts can be found at `/root/.cache/authd-oidc-brokers/cargo-target`.
    To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
    Caused by:
      rustc 1.94.0 is not supported by the following package:
        cargo-credential-libsecret@0.5.8 requires rustc 1.95
      Try re-running `cargo install` with `--locked`

Similarly to the previous commit, we now use `cargo install` with
`--locked`.
@adombeck adombeck changed the title himmelblau: install cargo-c with --locked Install cargo-c with --locked Jul 13, 2026
@adombeck

adombeck commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

There was another cargo install cargo-c call, in the snapcraft.yaml, which was also causing a build failure. Should be fixed now.

@adombeck

Copy link
Copy Markdown
Contributor Author

Waiting for CI results before requesting review

@adombeck
adombeck marked this pull request as ready for review July 14, 2026 07:06
@adombeck

Copy link
Copy Markdown
Contributor Author

The "build broker snap" step succeeds again

@adombeck
adombeck merged commit 1a6c7fa into main Jul 14, 2026
21 of 34 checks passed
@adombeck
adombeck deleted the 1730-build-broker-snap-step-fails-i branch July 14, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e-tests This issue is related to end-to-end tests / Run end-to-end tests on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Build broker snap" step fails in CI because cargo is run without --locked

2 participants