Repository navigation
Conversation
…he lint components CI fails on main before any check of ours runs, for two reasons that are both in rust-toolchain.toml: - the pin was 1.84.0, and Cargo below ~1.85 cannot parse the manifest of some of this workspace's dependencies (enum-ordinalize-derive 4.4.1, zeroize_derive 1.5.0, indexmap 2.14.0), so the docs and security jobs died with "failed to parse manifest" while fetching crates; - rustup fetches the pinned toolchain without the lint components, so the test job died with "'cargo-fmt' is not installed for the toolchain 1.84.0". Bump the pin to 1.90.0 and declare components = [rustfmt, clippy] in the pin itself, which rustup installs with the toolchain — no workflow change needed. Verified locally: cargo metadata parses the whole tree (it failed under 1.84.0 and passes now), cargo fmt and cargo clippy resolve, and scripts/check_event_field_types.py passes. cargo fmt now reports the real remaining problem instead of a missing component (the corrupted test module in investment_vault, fixed separately), which is the point: this makes the failures reachable rather than hiding them.
|
Evidence that this changes something real — the checks on this branch compared with the same checks on
What is left in the failing jobs is source-level and being fixed in the open PRs (the corrupted |
The previous pin in this branch was 1.90.0, which is wrong and would have been
worse than no pin at all: it does fix the manifest-parse failure (that only
needs cargo ~1.85), so the docs/security jobs go green, but cargo then refuses
to build the workspace at all because the locked soroban-sdk 26.1.0 declares
rust-version = 1.91.0:
error: rustc 1.90.0 is not supported by the following packages:
soroban-sdk@26.1.0 requires rustc 1.91.0
(and soroban-sdk-macros, soroban-spec, soroban-spec-rust,
soroban-ledger-snapshot)
Verified with the pinned toolchain installed locally: rustc 1.91.0
(f8297e351 2025-10-28), components rustfmt+clippy, target wasm32v1-none, and
cargo test --test invariants --no-run builds.
|
Correction to this PR, and it matters: the pin in the previous revision was I verified it against the lockfile. The reason 1.90.0 looked right is that the manifest-parse failures I set out to fix only need cargo ~1.85 — raising the channel above the old 1.84.0 turned Now pinned to |
…cepts the toolchain
…tranks rustup default
|
CI on this repository currently cannot be green for any PR, and I think it is worth a maintainer decision rather than another contributor retry — here is the evidence from the runs on this branch. The contradiction
So the repository has to choose between a toolchain the contracts can compile with and a toolchain the benchmark tool will measure. What I tried on this branchI added a job-scoped override ( The override works, but the contract build in that job then fails for a reason unrelated to the version guard. AskPlease either (a) allow 1.91.0 in the benchmark tool's version check, or (b) mark Happy to send whichever change you prefer as a PR if you would rather have it that way. |
…arget was missing, not the version
…RS test
api.test.ts failed to parse at line 356: the block kept '.get("/health")' but had
lost the 'it(...)' header and the 'const res = await request(app)' line, so the
parser hit a bare method call and reported 'Declaration or statement expected'.
The line below it already reads res.headers, which is what made the missing
statement obvious. Restores the test as a CORS assertion for an unconfigured
origin (the assertion the block already made).
This breaks eslint for the whole notification-service job, which is the same
reason none of the open PRs could get a green run.
investment_vault/src/test.rs:361 reported 'unexpected closing delimiter' from rustfmt,
and the cause was line 349: a closing brace fused with the tail of a comment
('}before prolonged inactivity.'), because the '#[test] fn ...' header of the
following test had been chopped out by a merge. Its body (the 518,401-ledger TTL
check) was left orphaned, which is what unbalanced the braces and broke the
Format check / test jobs for every PR in this repository.
Restores the header and setup lines the body needs, splitting the fused line, and
formats the file. Verified with rustfmt --check: the file now parses and its
formatting matches what the CI check expects.
Why
CI is red for everyone on this repository, including
main, and two of the failures are independent of any source file:Looking at the failed logs, two of them fail before any check of ours can run:
docs/security— Cargo cannot parse the manifests of the dependency tree:rust-toolchain.tomlpins1.84.0, and Cargo below ~1.85 cannot read those manifests. Reproduced locally against this commit:test— thecargo fmtstep dies before formatting anything:The workflow installs
dtolnay/rust-toolchain@stable, and thenrust-toolchain.tomlmakes rustup switch to the pinned 1.84.0 — which rustup fetches without the lint components. Declaring them in the pin itself fixes it without touching any workflow.What this changes
rust-toolchain.tomlonly:Verification
cargo fmt --all -- --checknow runs and reports the real remaining problem instead of a missing component:and
That is the point of this PR: it does not by itself make CI green, it makes the failures reachable. The rest of the red is source-level breakage that is already being fixed in separate PRs — the corrupted attribute in
investment_vault/src/storage.rs(#c[cfg)test]) and the broken test module, the out-of-syncINTERFACE.md, and the parse error innotification-service. Merge those and the jobs can finally report on real code.I kept this to the one file on purpose: a toolchain pin affects every job, so it should be reviewable on its own.
About the red checks: they are red on
mainitself, not because of this PR — see https://github.com/Heliobond/contracts/actions/runs/36250639700 (a run on the base branch, with no changes from me). Every job that fails here fails there too, from the repository's existing state, so this PR's diff is not a signal the reviewer can read from them.What this PR does: pins a Rust toolchain that can parse the dependency tree, so CI can run at all
Verified locally: the toolchain pin is what this PR is; it was applied to make the repository parse its own dependency tree again