Skip to content

ci: pin Rust toolchain, add workflow linter, gate build on msrv - #273

Merged
Busiii-adetiba merged 1 commit into
SynapsVault:mainfrom
Sirejay:fix/ci-toolchain-pin-and-workflow-linter
Nov 23, 2026
Merged

Busiii-adetiba merged 1 commit into
SynapsVault:mainfrom
Sirejay:fix/ci-toolchain-pin-and-workflow-linter

Conversation

@Sirejay

@Sirejay Sirejay commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What changed

Pin Rust stable to 1.100.0 (enhancement)

  • rust-toolchain.toml: change channel from 'stable' to '1.100.0' so every local and CI build resolves the same compiler regardless of when it runs.
  • ci.yml: add RUST_STABLE_VERSION env var (1.100.0) and replace all five dtolnay/rust-toolchain@stable usages with @master + toolchain input so the version is controlled in one place. The MSRV job's toolchain input is unchanged.
  • Update procedure: bump RUST_STABLE_VERSION in ci.yml and channel in rust-toolchain.toml together in a single PR.

Add workflow linter (enhancement)

  • scripts/lint_workflows.py: new script that parses every .github/workflows/*.yml file with PyYAML and rejects any job that has neither a runs-on+steps pair nor a reusable 'uses:' reference. A name-only job stub (the shape that caused the original contracttype-size finding) produces a named error.
  • scripts/test_lint_workflows.py: 8 pytest cases covering all pass/fail paths including the incomplete-stub fixture.
  • ci.yml: new lint-workflows job runs python3 scripts/lint_workflows.py on every push and PR.

Gate WASM build on msrv and lint-workflows (bug)

  • ci.yml build job: add msrv and lint-workflows to the needs list so a failed MSRV check or a workflow syntax error blocks artifact production.

Fix orphaned shell lines in mainnet-deploy.yml (bug)

  • Removed four stray shell-script lines (exit 1 / fi / echo / done) that were left inside the upload-artifact step's with: block after a prior refactor, making the file unparseable as YAML. Caught by the new linter.

Summary

Checklist

## What changed

### Pin Rust stable to 1.100.0 (enhancement)
- rust-toolchain.toml: change channel from 'stable' to '1.100.0' so
  every local and CI build resolves the same compiler regardless of when
  it runs.
- ci.yml: add RUST_STABLE_VERSION env var (1.100.0) and replace all
  five dtolnay/rust-toolchain@stable usages with @master + toolchain
  input so the version is controlled in one place. The MSRV job's
  toolchain input is unchanged.
- Update procedure: bump RUST_STABLE_VERSION in ci.yml and channel in
  rust-toolchain.toml together in a single PR.

### Add workflow linter (enhancement)
- scripts/lint_workflows.py: new script that parses every
  .github/workflows/*.yml file with PyYAML and rejects any job that has
  neither a runs-on+steps pair nor a reusable 'uses:' reference. A
  name-only job stub (the shape that caused the original contracttype-size
  finding) produces a named error.
- scripts/test_lint_workflows.py: 8 pytest cases covering all pass/fail
  paths including the incomplete-stub fixture.
- ci.yml: new lint-workflows job runs python3 scripts/lint_workflows.py
  on every push and PR.

### Gate WASM build on msrv and lint-workflows (bug)
- ci.yml build job: add msrv and lint-workflows to the needs list so a
  failed MSRV check or a workflow syntax error blocks artifact production.

### Fix orphaned shell lines in mainnet-deploy.yml (bug)
- Removed four stray shell-script lines (exit 1 / fi / echo / done) that
  were left inside the upload-artifact step's with: block after a prior
  refactor, making the file unparseable as YAML. Caught by the new linter.
@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Sirejay Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Busiii-adetiba
Busiii-adetiba merged commit 6c94561 into SynapsVault:main Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants