Skip to content

ci: split PR gate into parallel named checks + scheduled supply-chain - #90

Merged
lance0 merged 2 commits into
masterfrom
ci/harden-pr-gates
Jun 25, 2026
Merged

lance0 merged 2 commits into
masterfrom
ci/harden-pr-gates

Conversation

@lance0

@lance0 lance0 commented Jun 25, 2026 •

Copy link
Copy Markdown
Owner

What

Hardens the CI gate. The single fmt · clippy · build · test job becomes parallel named checks so a red lane points straight at the cause, plus a build-only platform matrix and scheduled supply-chain coverage.

PR checks now (see docs/CI.md): fmt, clippy-all-features, clippy-no-default-features, test-all-features, test-no-default-features, msrv-check, generated-artifacts, security-audit, platform-build (x86_64-unknown-linux-musl | aarch64-apple-darwin | x86_64-apple-darwin | x86_64-pc-windows-msvc), live NetBox 4.2 end-to-end, live NetBox 4.5 GraphQL backend. All jobs run --locked; every workflow gets concurrency + cancel-in-progress.

  • Security workflow (weekly + manual): cargo audit + cargo deny check advisories bans sources licenses, governed by a new deny.toml (RUSTSEC-2023-0071 ignored, matching .cargo/audit.toml).
  • NetBox Integration: concurrency, failure-log artifacts, and a nightly/manual 4.6 compatibility lane (gated to schedule/dispatch, not a PR check).
  • Fixes a vacuous lane: the old live NetBox 4.5 GraphQL search ran a filter that matched zero tests. Renamed to …GraphQL backend and added graphql_backend_status_and_vrf_detail_work, which opts the VRF surface into GraphQL and asserts a real seeded ci-vrf detail renders (search stays REST by design). Fixture confirmed in seed.py.
  • smoke.sh mirrors the host-practical PR gates (+ cargo deny, + --locked); docs/CI.md enumerates the check names; PR checklist + README refreshed.

Branch protection

master currently has no branch protection, so the renamed/split check names require no coordination — nothing is a required status check today, and this merges cleanly. docs/CI.md lists the check names as the ready-made set to plug in if/when branch protection is enabled later.

Two notes that only become relevant once required checks exist (not today):

  • paths-ignore: '**.md' means a doc-only PR skips the gated jobs — fine while advisory, but it would deadlock a required-check PR. A sentinel "all-green" job would close that.
  • security-audit as a required PR check would let a daily RustSec drop fail unrelated PRs; the weekly Security workflow already covers it, so required-on-every-PR vs scheduled-only is a future call.

Validation

  • All three workflows parse as YAML; deny.toml is valid; the new integration test compiles and its ci-vrf fixture is seeded.
  • fmt + clippy clean locally. (The live-NetBox lanes can only be exercised by the workflow itself — this PR's run is their first real test.)

lance0 added 2 commits June 25, 2026 13:42
Replace the single `fmt · clippy · build · test` job with parallel named gates
(fmt, clippy ×2, tests ×2, msrv-check, generated-artifacts, security-audit) plus
a PR build-only platform matrix (linux-musl, macOS arm64/x64, windows x64), so a
failure points at one lane and platform compile breaks are caught before release.
All jobs gain `--locked`; concurrency + cancel-in-progress on every workflow.

- Add Security workflow (weekly + manual): cargo audit + cargo deny, governed by
  a new deny.toml (advisories/bans/sources/licenses; RUSTSEC-2023-0071 ignored,
  matching .cargo/audit.toml).
- NetBox Integration: concurrency, failure-log artifacts, and a nightly/manual
  4.6 compatibility lane for supported-version drift.
- Fix the 4.5 "GraphQL" lane, which matched zero tests (a vacuous pass): rename
  it to "live NetBox 4.5 GraphQL backend" and add
  graphql_backend_status_and_vrf_detail_work, which opts the VRF surface into
  GraphQL and asserts a real seeded `ci-vrf` detail renders (search stays REST).
- smoke.sh mirrors the host-practical PR gates (+ cargo deny, + --locked); add
  docs/CI.md enumerating the branch-protection check names; refresh the PR
  checklist and README.

NOTE: the required-status-check names change with this — branch protection must
be updated to the names in docs/CI.md when this merges, or PRs will block on the
old (now-absent) checks.
@lance0
lance0 merged commit 45c0660 into master Jun 25, 2026
15 checks passed
@lance0
lance0 deleted the ci/harden-pr-gates branch June 25, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant