From bf0f819a31a7ce0fa04e9502ec3ed2a582874ca8 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 1 Nov 2026 18:46:15 -0800 Subject: [PATCH] docs(agents): require check:changed before every push (#37281) * docs(agents): require check:changed before every push, ban --no-verify * docs(agents): drop maxWorkers from the push rule --- AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f03d354be39..9aceb79a189 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,10 +4,10 @@ - **Test**: `pnpm test [path/to/file.test.ts] --maxWorkers=2`; incremental: `pnpm test:changed [path] --maxWorkers=2` ([details](.github/CONTRIBUTING.md#targeting-local-tests)). Separate rendered UI E2E checks need explicit, reproducible viewport/state. - **Lint/format**: Basic: `pnpm exec oxlint `; full lint gate: `pnpm lint`; formatting: `pnpm exec oxfmt --check ` (fix: `--write`). Applicable gates include `pnpm check:code-quality:changed ` and `pnpm check:flaky-test-pattern-ratchet`. -Optional: `pnpm check:changed --maxWorkers=2`; if selection fans out excessively, use scoped checks and report limits. Use the PR base (default `origin/main`; `ORCA_CODE_QUALITY_BASE=` for stacks). `--base=HEAD` and dirty-only checks provide incremental evidence only. - > [!IMPORTANT] -> Always lint changed files before making/pushing-to PRs (so CI never fails on it) +> Run `pnpm check:changed` after your last edit/rebase, right before every push. Never `--no-verify`. + +If selection fans out excessively, use scoped checks and report limits. Use the PR base (default `origin/main`; `ORCA_CODE_QUALITY_BASE=` for stacks). `--base=HEAD` and dirty-only checks provide incremental evidence only. # Don't Poll the CI