Skip to content

Fix CI with Rust 1.100 - #2899

Merged
fnando merged 9 commits into
mainfrom
fix-ci-rust-1-100
Nov 25, 2026
Merged

fnando merged 9 commits into
mainfrom
fix-ci-rust-1-100

Conversation

@fnando

@fnando fnando commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

Fixes the CI failures that started with the Rust/cargo 1.100 toolchain, new RustSec advisories, and the stellar-rpc v30.0.1 release in stellar/quickstart:latest:

  • Integration tests find the stellar binary again. Cargo 1.100 puts test executables in target/<profile>/build/<pkg>/<hash>/out/ instead of target/<profile>/deps/, so assert_cmd's cargo_bin("stellar") no longer finds it. Every test then fell back to stellar on PATH and failed to spawn. soroban-test now has a stellar_bin() helper that looks for the binary in each directory above the test executable, which works with both layouts. Upgrading assert_cmd doesn't help: 2.2 only reads CARGO_BIN_EXE_stellar, which cargo sets only for tests in the package that owns the binary.
  • Fixes the needless_bool lint that clippy 1.100 flags in print.rs.
  • Clears new advisories. url goes to 2.5.9 (RUSTSEC-2026-0592) and rustix to 1.1.6 (RUSTSEC-2026-0486). The "unmaintained" advisories with no safe upgrade are added to deny.toml's ignore list: astral-tokio-tar, pin-utils, humantime and chrono.
  • The example-contract workflows (OpenZeppelin and soroban-examples) find the built contract again. With the cargo 1.100 layout, their find picked a dependency's intermediate .wasm under release/build/<pkg>/<hash>/out/, whose interface is empty. They now look only at the top level of target/wasm32v1-none/release/, where final artifacts still go.
  • The TypeScript binding tests run one at a time (ava --serial). stellar-rpc v30.0.1 adds a preflight queue sized max(CPUs, 10), and running the custom-types tests all at once overflowed it with -32004 preflight queue full; retry later.
  • Simulation errors include their reason again. stellar-rpc v30.0.1 stopped putting the diagnostic event log in simulateTransaction error strings, so users got only HostError: Error(Storage, ExistingValue) instead of "contract already exists". The RPC still returns the diagnostic events, so the CLI now adds the messages from the error events to the error, both on stderr and in the JSON error envelope. If an older RPC already includes its event log in the error, the CLI leaves it alone. Contract-supplied text has control characters escaped.
  • Fixes four cookbook links that the docs link checker rejects. stellar-docs started failing CI on broken links on Nov 12, and our relative .mdx links (e.g. ../../../tokens/stellar-asset-contract.mdx) don't resolve in Mintlify. They now use the absolute paths that stellar-docs' own copies use, such as /docs/tokens/stellar-asset-contract.

Why

check, build-and-test (latest), cargo-deny, the RPC and emulator integration tests, the generated library tests, the example-contract builds and docs validation fail on every PR now. For example, all 222 integration tests failed on #2886 in under a second, without running any test code. Beyond CI, users talking to any RPC on v30.0.1 lost the human-readable explanation for failed simulations.

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Nov 23, 2026
@socket-security

socket-security Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​rustix@​1.0.8 ⏵ 1.1.683 +110093100100
Updatedcargo/​url@​2.5.7 ⏵ 2.5.9100 +1100100100100

View full report

Comment thread cmd/crates/soroban-test/src/lib.rs Resolved
Comment thread Cargo.lock Resolved
@fnando
fnando merged commit 39959a5 into main Nov 25, 2026
150 checks passed
@fnando
fnando deleted the fix-ci-rust-1-100 branch November 25, 2026 22:22
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants