Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,31 @@

[alias]
xtask = "run --package xtask --"
# The local mirror of CI. A green run here means a green run on the PR — the gate
# list is `run_local_ci_gates` in xtask/src/main.rs, kept alongside the workflows
# in .github/workflows/ so the two can be read against each other.
ci = "run --locked --release --package xtask -- run-local-ci-gates"
# Just the source-walking gates: no workspace build, so it is the fast pre-commit
# check. `cargo ci` is the full one.
gates = "run --locked --release --package xtask -- check-all-source-gates"

# `--release` on both, because these gates are syn-parsing ~7k files and the
# profile dominates: 11s release vs 24s debug. That is the difference between a
# pre-commit check you run and one you skip. CI deliberately does NOT mirror this
# — its job already compiles xtask in debug for `cargo test -p xtask`, and adding
# a second profile there would cost more compile time than the 13s it saves.
#
# `--locked` because the workflows use it. Without it these aliases can resolve a
# different dependency graph than CI, or quietly rewrite Cargo.lock, and then go
# green on a build the PR will not reproduce — which is exactly the promise
# `cargo ci` exists to make.

# Incremental compilation stays ON here, deliberately. It was briefly disabled
# after `target/debug/incremental` was found holding 419 GB, but measuring the
# thing that actually matters says otherwise: a one-line edit to
# streamlib-engine then `cargo check -p streamlib-engine` takes 3s incremental
# and 8s without, and one crate's incremental state is ~300 MB. The 419 GB was
# months of accumulation across crates, profiles and feature permutations, which
# `rm -rf target/debug/incremental` reclaims in seconds — a periodic prune, not a
# 2.7x slower edit loop. CI sets CARGO_INCREMENTAL=0 in the workflows instead,
# where it is unambiguously right: a runner never rebuilds after an edit.
76 changes: 0 additions & 76 deletions .github/workflows/check-boundaries.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/check-device-wait-idle.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/check-no-escalate-in-lifecycle.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/check-no-in-process-placement.yml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/check-no-inventory-submit.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/check-no-unbounded-cstr-from-ptr.yml

This file was deleted.

Loading
Loading