Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
ci: extend advisory CODEOWNERS and fix CI_ARCHITECTURE matrix wording
Add paths for pack-guard xtask sources, nextest profiles, workspace MSRV,
and workflow helper scripts. Pin the same set in test_workflow_policy.py.
Clarify that requiring partition matrix checks would pend only docs-only PRs.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Nov 10, 2026
commit c5eb285add3c1ea1eeb093c492744b98ccc93199
12 changes: 12 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@
/.cursor/rules/ @lazyxeon
/deny.toml @lazyxeon
/AGENTS.md @lazyxeon
/.config/nextest.toml @lazyxeon
/Cargo.toml @lazyxeon
/docs/scripts/generate-sitemap.sh @lazyxeon
/scripts/aravath-sha256.sh @lazyxeon
/scripts/check-aravath-network.sh @lazyxeon
/scripts/check_benchmark_thresholds.ps1 @lazyxeon
/scripts/export_benchmark_history.sh @lazyxeon
/scripts/export_benchmark_jsonl.ps1 @lazyxeon
/scripts/generate_benchmark_graphs.py @lazyxeon
/scripts/tsan_suppressions.txt @lazyxeon
/tools/xtask/src/fetch_assets.rs @lazyxeon
/tools/xtask/src/main.rs @lazyxeon
Comment on lines +22 to +23

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pack-guard.yml runs cargo run -p xtask -- ci-guard. That compiles the crate. tools/xtask/src/lib.rs is pub mod fetch_assets, and main.rs calls xtask::fetch_assets::ci_guard. A #[path] on that module, or a [lib] path / [[bin]] path edit in tools/xtask/Cargo.toml, points the required check at a file this list does not name.

git check-ignore matches these two files. It does not match tools/xtask/src/lib.rs, tools/xtask/Cargo.toml, tools/xtask/tests/fetch_assets.rs, or tools/xtask/build.rs. /.github/ and /scripts/ci/ are directory patterns for this reason. /tools/xtask/ is the same shape. The sentence that says these paths cover the pack-guard xtask sources is ahead of this list. The policy tuple has to change with the pattern.

4 changes: 2 additions & 2 deletions docs/current/CI_ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ The rollup check-run name is `PR Rust checks`. The app id is 15368 (`github-acti

`gh pr checks` prints the check-run `name`. It does not prefix the workflow name. The compare job's check-run name is `compare`, not `determinism-replay / compare`.
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

`.github/CODEOWNERS` is advisory. It names @lazyxeon on `/.github/`, `/.cargo/`, `/scripts/ci/`, `/rust-toolchain.toml`, `/CLAUDE.md`, `/GROK.md`, `/.cursor/rules/`, `/deny.toml`, and `/AGENTS.md`. Those paths cover the workflows, composite actions, CI scripts, the audit ignore file, the Linux replay rustflags, the toolchain pin, and the constitution files. The file does not block a merge. On the `pull_request` rule, set `require_code_owner_review` to false and leave the other parameters on that rule as they are. The owner applies that with the status-check swap below. This file does not edit ruleset 7941616.
`.github/CODEOWNERS` is advisory. It names @lazyxeon on `/.github/`, `/.cargo/`, `/scripts/ci/`, `/rust-toolchain.toml`, `/CLAUDE.md`, `/GROK.md`, `/.cursor/rules/`, `/deny.toml`, `/AGENTS.md`, `/.config/nextest.toml`, `/Cargo.toml`, `/tools/xtask/src/fetch_assets.rs`, `/tools/xtask/src/main.rs`, `/scripts/check-aravath-network.sh`, `/scripts/aravath-sha256.sh`, `/scripts/check_benchmark_thresholds.ps1`, `/scripts/export_benchmark_history.sh`, `/scripts/export_benchmark_jsonl.ps1`, `/scripts/generate_benchmark_graphs.py`, `/scripts/tsan_suppressions.txt`, and `/docs/scripts/generate-sitemap.sh`. Those paths cover the workflows, composite actions, CI scripts, pack-guard xtask sources, nextest `ci-pr*` profiles, workspace MSRV, benchmark and Aravath helper scripts, the audit ignore file, the Linux replay rustflags, the toolchain pin, and the constitution files. The file does not block a merge. On the `pull_request` rule, set `require_code_owner_review` to false and leave the other parameters on that rule as they are. The owner applies that with the status-check swap below. This file does not edit ruleset 7941616.

Require these contexts, each with integration id 15368. On the #700 head every one of them completed success, and none of the three ruleset contexts above was present. The same nine were success on docs-only #597 and #616 and on `.github/dependabot.yml` pull request #645.

Expand Down Expand Up @@ -239,7 +239,7 @@ Require:
- `pack-managed paths untracked + ignore surfaces current`
- `OpenSSF Scorecard Analysis`

Do not require the individual `Test (ubuntu, N/3)`, `Test (windows, N/3)`, or `Gate` names as branch-protection checks. On a docs-only pull request the archive and partition jobs are skipped by their job `if:`. GitHub counts a skipped required check as passing, so requiring them would not catch a failed archive build: the partitions behind it are skipped too. A skipped matrix job also reports only its unexpanded name, such as `Test (ubuntu, ${{ matrix.partition }}/3)`, so `Test (ubuntu, 1/3)` would never report and would leave every pull request pending. `Gate (fmt, clippy, check)` still runs (player-facing name check and workflow policy); only its `Rust CI setup` step is conditional (`.github/workflows/ci.yml:122`). `PR Rust checks` is the rollup.
Do not require the individual `Test (ubuntu, N/3)`, `Test (windows, N/3)`, or `Gate` names as branch-protection checks. On a docs-only pull request the archive and partition jobs are skipped by their job `if:`. GitHub counts a skipped required check as passing, so requiring them would not catch a failed archive build: the partitions behind it are skipped too. A skipped matrix job also reports only its unexpanded name, such as `Test (ubuntu, ${{ matrix.partition }}/3)`, so `Test (ubuntu, 1/3)` would never report and would leave docs-only (matrix-skipped) pull requests pending. `Gate (fmt, clippy, check)` still runs (player-facing name check and workflow policy); only its `Rust CI setup` step is conditional (`.github/workflows/ci.yml:122`). `PR Rust checks` is the rollup.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test (ubuntu, 1/3) reports when the partition runs. On #728 head 8bd9fa4dde57861dd7a4c3aa5fa04f28937cd3e1 these check runs completed success at app 15368: Test (ubuntu, 1/3), Test (ubuntu, 2/3), Test (ubuntu, 3/3), Test (windows, 1/3), Test (windows, 2/3), and Test (windows, 3/3).

On docs-only f2949be1 the skipped check is Test (ubuntu, ${{ matrix.partition }}/3) (and the Windows twin), conclusion skipped. Requiring the expanded name leaves that pull request pending. It does not leave a pull request pending when the partitions run.

This sentence now limits the pending effect to docs-only pull requests, and it still says Test (ubuntu, 1/3) would never report. Those clauses disagree. Line 53 still says the per-partition names would never report. The expanded name is absent on the skipped run and present when the job runs.


Do not require `Test (ubuntu, build archive)`, `Test (windows, build archive)`, or either platform's `Test (*, N/3)` jobs individually. The rollup fails if an archive build fails or any partition fails. Do not require scope- or path-gated jobs individually: `net-tests` (every pull request; job skipped when scope is cold), trace sync, doc-truth, docs, Miri `miri-ecs-hotpath`. PBR, Editor CI, and AW Editor tests do not run on pull requests.

Expand Down
12 changes: 12 additions & 0 deletions scripts/ci/test_workflow_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@ def _broken_action_ref_violation(old: str, new: str):
"/.cursor/rules/",
"/deny.toml",
"/AGENTS.md",
"/.config/nextest.toml",
"/Cargo.toml",
"/docs/scripts/generate-sitemap.sh",
"/scripts/aravath-sha256.sh",
"/scripts/check-aravath-network.sh",
"/scripts/check_benchmark_thresholds.ps1",
"/scripts/export_benchmark_history.sh",
"/scripts/export_benchmark_jsonl.ps1",
"/scripts/generate_benchmark_graphs.py",
"/scripts/tsan_suppressions.txt",
"/tools/xtask/src/fetch_assets.rs",
"/tools/xtask/src/main.rs",
)


Expand Down
Loading