Skip to content

Say which failing tests block a push, and name one skip variable per browser engine - #395

Merged
ahernsean merged 4 commits into
mainfrom
claude/agents-test-scope
Oct 7, 2026
Merged

ahernsean merged 4 commits into
mainfrom
claude/agents-test-scope

Conversation

@ahernsean

@ahernsean ahernsean commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

AGENTS.md disagreed with itself about what has to pass before a push. "Your tests should be specific, then push" says a local full-suite pass is strictly worse than pushing once the focused tests pass. The paragraphs after "Commits with failing tests must not be pushed" said a markdown commit doesn't require "the suite", and that for any code change "the rule above applies in full". Read together, that means a code commit needs the whole suite. On PR #394 an agent held a push for the full 600-test browser suite because of that reading.

This PR changes those paragraphs to say:

  • "Failing tests" means tests that were run and failed: the focused tests, on every engine they cover. Tests the diff cannot reach are CI's to run.
  • The browser suite works the same way. A report_client.html change runs the browser tests that cover it (selected with -k) on both engines, plus their mutation checks. The rest of the module is CI's. "Both engines" says which browsers a focused run covers, not how many tests it runs.
  • Both engines run unless their opt-out is set, and a run counts as green on both only when neither is exported. The text names the variables that actually decide this; nothing reads REQUIRE_WEBKIT_CONTAINER_TESTS.
  • Each engine has one skip variable, named for the engine: SKIP_CHROMIUM_TESTS and SKIP_WEBKIT_TESTS. They replace SKIP_WEBKIT_CONTAINER_TESTS and SKIP_BROWSER_TESTS. The old WebKit name described how WebKit is launched, and it is launched natively first, as on CI, falling back to a container only when that fails. The only way to skip Chromium was SKIP_BROWSER_TESTS, which skipped WebKit as well. The engines are peers in the test classes, so their opt-outs are now peers too, and a run covering neither engine sets both. The test module, the web session hook, and AGENTS.md are updated. A machine still exporting an old name runs the engine, and if the engine cannot start, the failure message names the new variable.
  • A markdown-only commit needs no tests at all. A code commit runs its focused tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PpacbZRqT46b4Duhxq5QNQ

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T02:30:51.785706Z af3f95c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af3f95ca7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
@ahernsean ahernsean changed the title Say which failing tests block a push Say which failing tests block a push, and name one skip variable per browser engine Oct 7, 2026
ahernsean and others added 4 commits October 6, 2026 22:40
"Commits with failing tests must not be pushed" sat beside a paragraph
saying a code commit needs "the suite", which reads as the whole suite
and contradicts the focused-test rule above it.  Name the bar as the
focused tests on every engine they cover, browser tests included, and
leave the rest to CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpacbZRqT46b4Duhxq5QNQ
No test reads REQUIRE_WEBKIT_CONTAINER_TESTS; WebKit runs by default and
only the SKIP_* variables turn it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpacbZRqT46b4Duhxq5QNQ
SKIP_WEBKIT_CONTAINER_TESTS named how WebKit is launched, which is
native first and a container only as a fallback, and SKIP_BROWSER_TESTS
was the only way to skip Chromium, and skipped WebKit with it.  The
engines are peers, so each now has one opt-out: SKIP_CHROMIUM_TESTS and
SKIP_WEBKIT_TESTS.  A run covering neither sets both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpacbZRqT46b4Duhxq5QNQ
@ahernsean
ahernsean force-pushed the claude/agents-test-scope branch from 2573e4c to b5f1756 Compare October 7, 2026 02:40
@ahernsean
ahernsean enabled auto-merge October 7, 2026 02:41
@ahernsean
ahernsean merged commit 8b6f55e into main Oct 7, 2026
5 checks passed
@ahernsean
ahernsean deleted the claude/agents-test-scope branch October 7, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant