Repository navigation
ci: full checks on main pushes, changed-file lint on PRs, Slack alert when main breaks - #37282
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
6119423b-d84a-40a5-91ee-e9674c1dfe35
Files selected for processing: 12-
.github/scripts/check-required-pr-context.mjs.github/workflows/main-health-alert.yml.github/workflows/pr.ymlconfig/scripts/ast-grep-gates.mjsconfig/scripts/git-pull-request-diff-base.mjsconfig/scripts/git-pull-request-diff-base.test.mjsconfig/scripts/lint-change-scope.mjsconfig/scripts/lint-change-scope.test.mjsconfig/scripts/main-health-alert.mjsconfig/scripts/main-health-alert.test.mjsconfig/scripts/pr-main-push.test.mjsconfig/scripts/pr-ready-check-reuse.test.mjs
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
Scoped-lint timing (probe PR #37283, one changed
|
| Baseline 41362424273 | Scoped probe | |
|---|---|---|
| Root oxlint / JS plugins / anti-slop / ast-grep / oxfmt | 22s / 32s / 13s / 36s / 4.5s | 0–1s each (1 file) |
| Lint phase until type-aware finishes | 84s | 43s |
| Job | 3:21 (no orcad smoke) | 3:15 including the 52s orcad smoke this file triggers; ~2:40 estimated without it |
The probe's typecheck failed on WorktreeCardDetailsHover.fixture.tsx. That error was on main itself: #37262 broke it and #37276 fixed it. It came from this branch's older main base, not from the probe. It's exactly the kind of red main the new alert reports.
f64b236 to
4a60ee7
Compare
… when main breaks PR Checks now also runs on every push to main, with each commit in its own concurrency group so main runs never cancel one another. On a push the path router gets an empty diff, which already fails closed to every job, and the input-scoped steps (localization extraction, VM rollback replay, orcad smoke) run in full. Advisory E2E lanes stay PR-only. On PRs the per-file passes (root oxlint, JS-plugin oxlint, anti-slop, ast-grep and oxfmt) check only the changed paths. Everything is checked when the diff cannot be resolved, a lint toolchain input changes (oxlint/oxfmt/ast-grep configs and plugins, package.json, the lockfile, .gitignore, pr.yml), or more than 1500 paths change. Whole-program checks stay unscoped. A new workflow follows completed main runs and posts to the release Slack webhook only when main turns red, and once when it turns green again.
4a60ee7 to
83cf791
Compare
Summary
This is a trial setup in three parts:
PR Checksnow also runs onpush: main:main-checks-<sha>, no cancel-in-progress), so main runs never cancel each other. PRs keeppr-checks-<number>with cancel-in-progress.Main health alertworkflow follows completed main runs. It posts only on green→red, and once on red→green.What runs where
code_paths)e2e, real IME, real WSL)PR checks passedaggregateScoping details
config/scripts/git-pull-request-diff-base.mjs. On a push with no payload base it now returns the first parent, which is the main tip the commit landed on. The changed-file list uses the samegit diff --name-only --no-renames -zform as the localization and orcad scope steps.config/scripts/lint-change-scope.mjsdecidesfullorchanged.changedmode it writes one NUL-delimited list per pass. Each list holds only paths that still exist, under that pass's scanned roots.fullmode it writes nothing, and the passes run exactly as before..oxlintrc.jsonat any level,config/oxlint-*.json,config/oxlint-plugins/**,config/sgconfig.yml,config/ast-grep/**, the flaky-test baseline, the ast-grep gate scripts,.oxfmtrc.json,.gitignore,.prettierignore, anypackage.json,pnpm-lock.yaml,pnpm-workspace.yaml,.npmrc,pr.yml, or the planner itself;--no-error-on-unmatched-patterncovers selections where every path is ignored. Oxlint and oxfmt both apply their ignore patterns and nested configs to paths passed explicitly; I checked this locally.docs/siteenables oxlint's import plugin, so any change there lints all ofdocs/site.Slack alert
config/scripts/main-health-alert.mjsruns onworkflow_runcompletion ofPR Checkson main, for push runs only. It ignores cancelled and skipped runs.SLACK_USER_IDS_BY_GITHUB_LOGIN(JSON, GitHub login → Slack member ID) get a real<@U…>mention. Everyone else gets the GitHub profile link that the release Slack pings use today.SLACK_WEBHOOK_URLsecret and its message shape (textplus an mrkdwn section block).DRY_RUN=1, it prints the payload instead of posting. The unit tests cover the transitions, the mentions, the message, and a dry run against a stubbed GitHub API. Nothing was posted to Slack.Testing
lint-change-scope,main-health-alertandpr-main-pushtests.docs/sitepage and a deleted file. Each pass checked only its own paths and exited 0.oxfmt,oxlint, the anti-slop pass,pnpm check:code-quality:changed origin/main,pnpm check:flaky-test-pattern-ratchet,pnpm tc:nodeandactionlintpass.Timing
This PR edits
pr.yml, which is itself a fail-open input, so its own run lints everything. A scoped measurement is in the comments below.