Skip to content

ci: Linux Rust jobs run the local gate; declare them as GATE-001 mirrors - #16

Merged
zackees merged 1 commit into
masterfrom
ci/gate-001-mirrors
Oct 9, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/gate-001-mirrors

Conversation

@zackees

@zackees zackees commented Oct 9, 2026

Copy link
Copy Markdown
Member

Item 3 of #13: prove the GATE-001 mirrors. Builds on PR #12, which added ci/local_gate.py and local-gate.toml.

Change

  • rust-tests-linux replaces its separate soldr cargo test / clippy / fmt steps with python3 ci/local_gate.py --lane lint --lane rust-test, the exact command that ./lint + the first half of ./unittest run. The lint lane also checks clang-format 22.1.3 and gersemi 0.25.0 through uvx, so the job adds astral-sh/setup-uv (pinned SHA, v10.1.0), an allowed setup action.
  • rust-linux-tier2 runs python3 ci/local_gate.py --lane tier2-linux, which wraps rust/tools/linux-validate/run.sh as before, still with OBS_CCACHE_DIR.
  • local-gate.toml: mirrors = ["build-project.yaml:rust-tests-linux", "build-project.yaml:rust-linux-tier2"]. The ccache save step gets a name and is listed in setup-steps. actions/cache/restore, checkout and setup-soldr are already recognised as setup.

RED → GREEN (ci-lint local-gate lint, ci.yml@70e8fef)

RED, on ci/fast-gate (aad35e1, same gate config as master after #12):

[GATE-001] NEEDS REVIEW local-gate.toml
    what:  no remote job is declared as a mirror of the local gate, so remote ⊆ local is unproven
local-gate lint: 2 violation(s), 6 other finding(s)

GREEN, on this branch: no GATE-001 finding, so both mirrored jobs pass the "invokes the gate and nothing else" check.

local-gate lint: 2 violation(s), 5 other finding(s)

What's left is the GATE-008 ×2 and GATE-012 ×5 false positives, items 4–5 of #13, fixed upstream in forge-ci/ci.yml#394.

Local gate: ./lint ok. The commit is stamped with ci-lint local-gate run (all lanes: lint, rust-test, tier2-linux).

Refs #13

…ors (GATE-001)

rust-tests-linux now runs `python3 ci/local_gate.py --lane lint --lane
rust-test` and rust-linux-tier2 runs `python3 ci/local_gate.py --lane
tier2-linux`, the same commands ./lint and ./unittest run. local-gate.toml
lists both jobs in `mirrors`, so ci-lint can check that remote is a subset
of local. The lint lane needs uvx, so the job sets up uv.

Refs #13

Local-Gate: v1 tree=ab0ca6868e45d0e731a32e236366aa85739631a3 secs=49 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791509563,"gate":"rust/all/fmt","host":"linux-x86_64","key":"32bad43f4b58d1082ba60799a7d940d0788fa578a254600420dec41eb12a356e","lane":"lint","parents":["bf7986a8dd6463bce12458e3659975ab676ba080"],"secs":24,"stamp":"0e50590570ec1af5c2d9639d27f243f8","tree":"ab0ca6868e45d0e731a32e236366aa85739631a3","v":1,"via":"run"}
Ci-Attestation: {"at":1791509563,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"32bad43f4b58d1082ba60799a7d940d0788fa578a254600420dec41eb12a356e","lane":"lint","parents":["bf7986a8dd6463bce12458e3659975ab676ba080"],"secs":24,"stamp":"397a46501aa5ff93c60ac81ae84c03ce","tree":"ab0ca6868e45d0e731a32e236366aa85739631a3","v":1,"via":"run"}
Ci-Attestation: {"at":1791509563,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"b92c325aca3246b7ed557c608d92291b0d8e30686e68188b09cb01b4af5bafa8","lane":"rust-test","parents":["bf7986a8dd6463bce12458e3659975ab676ba080"],"secs":5,"stamp":"79bc92f06437a46bf7ac4fcf9304eb4c","tree":"ab0ca6868e45d0e731a32e236366aa85739631a3","v":1,"via":"run"}
Ci-Attestation: {"at":1791509563,"gate":"general/linux-x64/tier2","host":"linux-x86_64","key":"5fe713716b1203ded4fc02683cba8f0bb0aed3c6e4b1260fcc6a4384b4a71d6c","lane":"tier2-linux","parents":["bf7986a8dd6463bce12458e3659975ab676ba080"],"secs":20,"stamp":"e7652a59b3410c9f383155629c89b030","tree":"ab0ca6868e45d0e731a32e236366aa85739631a3","v":1,"via":"run"}
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.

1 participant