Repository navigation
ci(BS-001): CODEOWNERS and the required-check replacement #702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
b45289a
2077bb0
8a9fd3a
2ce7233
c5eb285
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
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
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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`. | ||
|
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. | ||
|
|
||
|
|
@@ -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. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On docs-only This sentence now limits the pending effect to docs-only pull requests, and it still says |
||
|
|
||
| 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. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pack-guard.ymlrunscargo run -p xtask -- ci-guard. That compiles the crate.tools/xtask/src/lib.rsispub mod fetch_assets, andmain.rscallsxtask::fetch_assets::ci_guard. A#[path]on that module, or a[lib] path/[[bin]] pathedit intools/xtask/Cargo.toml, points the required check at a file this list does not name.git check-ignorematches these two files. It does not matchtools/xtask/src/lib.rs,tools/xtask/Cargo.toml,tools/xtask/tests/fetch_assets.rs, ortools/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.