-
Notifications
You must be signed in to change notification settings - Fork 0
release-train: develop -> staging #243
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e1bce83
feat(ci): watch for PRs bricked by a required check that never report…
LukasWodka bb6ecdc
fix(kanban): the deploy-state guard was matching a column that no lon…
LukasWodka 84d344b
fix(ci): set up Python before pip in the bricked-PR audit, so it can …
LukasWodka eb0d8bd
fix(kanban): finish #1592 step 3 — writers first, then the fallback (…
LukasWodka 9bb10bd
fix(kanban): abort when the Status option cannot be resolved, instead…
LukasWodka aff1081
feat(kanban): assert the board has every Status column the writers em…
LukasWodka ed77044
fix(kanban): the column check missed three writers, and could not tel…
LukasWodka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Bricked PRs selftest | ||
|
|
||
| # The watcher's product is a DISTINCTION, not a list: a context absent because | ||
| # it will never report, versus absent because the run has not started, versus a | ||
| # branch that could not be read. Get any of those wrong and the report is either | ||
| # ignorable or misleading -- both were observed while building it (backend#1721), | ||
| # so the paths are asserted rather than trusted. | ||
| # | ||
| # Same shape as blocked-gate-selftest.yml: offline, no token, path-filtered | ||
| # because it only needs to run when the thing it tests changes. | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - scripts/bricked-prs.py | ||
| - scripts/tests/bricked-prs-selftest.py | ||
| - .github/workflows/bricked-prs.yml | ||
| - .github/workflows/bricked-prs-selftest.yml | ||
| push: | ||
| branches: [main, develop, staging] | ||
| paths: | ||
| - scripts/bricked-prs.py | ||
| - scripts/tests/bricked-prs-selftest.py | ||
| - .github/workflows/bricked-prs.yml | ||
| - .github/workflows/bricked-prs-selftest.yml | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: bricked-prs-selftest-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| selftest: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | ||
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| python-version: '3.12' | ||
| # bricked-prs.py imports caller-drift.py for the protection reader, and | ||
| # that module hard-fails without PyYAML by design. | ||
| - run: pip install --quiet pyyaml | ||
| - run: python scripts/tests/bricked-prs-selftest.py |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Bricked PRs | ||
|
|
||
| # A required status check that never reports leaves a PR approved, with nothing | ||
| # red to point at, and permanently unmergeable (backend#1721). It is the one CI | ||
| # failure mode with NO red signal at all -- nobody is notified, and no reviewer | ||
| # sees a problem, because there is no failure, only an absence. So it needs a | ||
| # watcher; nothing inside a PR can detect it. | ||
| # | ||
| # Runs in tracebloc/.github only, like the other org-wide crons. | ||
|
|
||
| on: | ||
| schedule: | ||
| # Every four hours. The failure is not urgent -- a bricked PR stays bricked | ||
| # -- but it is invisible, so the cost is the hours a human spends not | ||
| # realising. Four hours bounds that without adding noise. | ||
| - cron: "17 */4 * * *" | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: bricked-prs | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| audit: | ||
| name: Required checks that never report | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | ||
| # Without this the `pip install` below hits PEP 668 on ubuntu-latest | ||
| # (24.04): the runner's Python is externally managed, pip refuses, the step | ||
| # fails and THE AUDIT NEVER RUNS. A scheduled guard that cannot start is | ||
| # worse than none — nothing reports, and silence reads as "no bricked PRs". | ||
| # bricked-prs-selftest.yml already does this before the same install; this | ||
| # is that shape, not a new idea (Bugbot, #243). | ||
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| python-version: '3.12' | ||
| - name: Install PyYAML | ||
| run: pip install --quiet pyyaml | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| - name: Audit | ||
| env: | ||
| # Needs to read branch protection, rulesets and PRs across the org. | ||
| GH_TOKEN: ${{ secrets.PROJECTS_KANBAN_TOKEN }} | ||
| run: python3 scripts/bricked-prs.py | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # The board's Status column names and the workflows that write them are two | ||
| # systems that must agree, and nothing checked that they did. | ||
| # | ||
| # The rename window for `FR on staging` was carried by hand across three PRs | ||
| # (backend#1592). In between, the writers emitted a column the board did not | ||
| # have, and only a fallback made it work — while an unresolvable Status was a | ||
| # `::warning::` on a GREEN run (fixed in #246), so a frozen board and a working | ||
| # board were indistinguishable. | ||
| # | ||
| # Runs on PRs that touch the writers OR this check, and daily — because the | ||
| # board can be renamed in the UI at any time, with no PR to hang a check on. | ||
| # That is the failure this is really for: a rename nobody pairs with a code | ||
| # change. | ||
| name: Kanban column conformance | ||
|
|
||
| on: | ||
| pull_request: | ||
| # MUST LIST EVERY FILE IN `WRITERS`. It listed only the original two, so a PR | ||
| # touching just set-pr-status.yml or fr-pass-comment.yml never ran this check | ||
| # and a bad column write could merge until the next cron (Bugbot, #248). The | ||
| # selftest asserts this list against WRITERS, so they cannot drift apart. | ||
| paths: | ||
| - ".github/workflows/advance-deploy-env.yml" | ||
| - ".github/workflows/kanban-closure-router.yml" | ||
| - ".github/workflows/set-pr-status.yml" | ||
| - ".github/workflows/fr-pass-comment.yml" | ||
| - ".github/workflows/kanban-columns.yml" | ||
| - "scripts/kanban-columns-check.py" | ||
| - "scripts/tests/kanban-columns-selftest.py" | ||
| schedule: | ||
| # 06:15 UTC, before caller-drift at 06:30 — a board rename breaks promotions, | ||
| # so it should be the first thing the morning tells you. | ||
| - cron: "15 6 * * *" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: kanban-columns | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| selftest: | ||
| name: Selftest the checker | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | ||
| # Guard the guard: a checker that cannot fail is worse than no checker, | ||
| # because its green is read as conformance. | ||
| - run: python3 scripts/tests/kanban-columns-selftest.py | ||
|
|
||
| check: | ||
| name: Written Status names exist on the board | ||
| # Gate on selftest: a conformance PASS emitted by a checker whose own | ||
| # failure paths have regressed is a false green (the checker can't fail, so | ||
| # its success means nothing). Sibling guards caller-drift + standards-sync | ||
| # gate their audit on selftest for exactly this reason. (Bugbot, #247.) | ||
| needs: selftest | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | ||
| - name: Check | ||
| env: | ||
| # Reads the org project's Status field. | ||
| GH_TOKEN: ${{ secrets.PROJECTS_KANBAN_TOKEN }} | ||
| run: python3 scripts/kanban-columns-check.py |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.