Repository navigation
ci: split PR gate into parallel named checks + scheduled supply-chain - #90
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Hardens the CI gate. The single
fmt · clippy · build · testjob 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.cargo audit+cargo deny check advisories bans sources licenses, governed by a newdeny.toml(RUSTSEC-2023-0071 ignored, matching.cargo/audit.toml).live NetBox 4.5 GraphQL searchran a filter that matched zero tests. Renamed to…GraphQL backendand addedgraphql_backend_status_and_vrf_detail_work, which opts the VRF surface into GraphQL and asserts a real seededci-vrfdetail renders (search stays REST by design). Fixture confirmed inseed.py.smoke.shmirrors the host-practical PR gates (+cargo deny, +--locked);docs/CI.mdenumerates the check names; PR checklist + README refreshed.Branch protection
mastercurrently 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.mdlists 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-auditas a required PR check would let a daily RustSec drop fail unrelated PRs; the weeklySecurityworkflow already covers it, so required-on-every-PR vs scheduled-only is a future call.Validation
deny.tomlis valid; the new integration test compiles and itsci-vrffixture is seeded.