Skip to content

Commit addfb80

Browse files
ci: Give the PR risk label test job its own check name (#1847)
The `Default` ruleset on `main` (and `Release branches` on `release/**`) requires one status check: `test` from GitHub Actions. That is meant to be the aggregate `test` job in `test.yml`, which `needs` discovery, install, quality, every project matrix job, the npm runtime jobs, and the CLI asset catalog. `pr-risk-labels-test.yml` also had a job with the id `test` and no `name`, so its check run was also called `test` and came from the same app. On a PR that touches the risk label workflow or its tests, that short job could satisfy the required check before the full Test workflow finished. This PR gives that job its own name and records in `docs/operations/github-actions.md` that the `test` check name is reserved. This PR does not change the rulesets. They require only `~DEFAULT_BRANCH` and `release/**`, so PRs that target other branches, such as stacked PRs, have no required checks. That is how #1797 merged into `feat/toolkit-core-markdown` while `sentry` and `test` were still running. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A7ce4fa19419509f244098772 --> -- [View Session in Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A7ce4fa19419509f244098772/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <126780+BYK@users.noreply.github.com>
1 parent 7216425 commit addfb80

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/pr-risk-labels-test.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ permissions:
1818

1919
jobs:
2020
test:
21+
# `test` is the required check name; see docs/operations/github-actions.md.
22+
name: PR risk label tests
2123
runs-on: ubuntu-latest
2224
timeout-minutes: 5
2325
steps:

‎docs/operations/github-actions.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ docs depend on `sentry`). Root-level changes and non-PR events check every
1818
enabled project. Each project has its own build, lint, typecheck, test, policy,
1919
and E2E steps when those scripts exist. The always-present `test` job checks
2020
discovery, installation, repository quality, and every selected project.
21+
It is the required status check for `main` and `release/**`, so no other
22+
job may use the check name `test`: GitHub would accept that check in its place.
2123
Package-specific checks and exceptions live in `package.json#sentryCi`; see
2224
[Package CI checks](#package-ci-checks). The standalone smoke-test suite remains
2325
in its own workflow.

0 commit comments

Comments
 (0)