Why
The platform-schema-conformance.yml workflow works but has several rough edges that affect reliability, speed, and consistency with the rest of the repo's CI infrastructure.
- No
--locked — cargo test without --locked could silently update Cargo.lock if upstream publishes compatible versions, making builds non-reproducible
- No build cache — every run recompiles
serde + toml from scratch (~30-60s wasted)
actions/checkout@v4 — the rest of the repo uses @v6; inconsistency causes noise during repo-wide action bumps and misses security improvements shipped in v6
- No concurrency group — rapid pushes (e.g. contributor fixing schema errors in sequence) queue duplicate runs, wasting CI minutes
Benefits
- Reproducible builds —
--locked guarantees the same dependency versions every run
- 30-60s faster CI — Rust cache eliminates redundant compilation
- Consistent security posture — checkout@v6
persist-credentials improvement
- Cleaner CI tab — concurrency group auto-cancels superseded runs, contributor sees only the latest result
- Better contributor DX — faster feedback loop on schema changes
Proposed Changes
name: platform-schema conformance
concurrency:
group: platform-schema-${{ github.ref }}
cancel-in-progress: true
jobs:
conformance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: "crates/platform-schema -> target"
- run: cargo test --locked --manifest-path crates/platform-schema/Cargo.toml
Context
Identified during group review of #1295. Ref: #1294.
Why
The
platform-schema-conformance.ymlworkflow works but has several rough edges that affect reliability, speed, and consistency with the rest of the repo's CI infrastructure.--locked—cargo testwithout--lockedcould silently updateCargo.lockif upstream publishes compatible versions, making builds non-reproducibleserde+tomlfrom scratch (~30-60s wasted)actions/checkout@v4— the rest of the repo uses@v6; inconsistency causes noise during repo-wide action bumps and misses security improvements shipped in v6Benefits
--lockedguarantees the same dependency versions every runpersist-credentialsimprovementProposed Changes
Context
Identified during group review of #1295. Ref: #1294.