Skip to content

ci(spec): run the full gate or the individual checks, never both - #2210

Merged
kdy1 merged 1 commit into
e2e-inc:mainfrom
DeryFerd:ci/spec-nightly-skip-duplicate-check
Nov 25, 2026
Merged

kdy1 merged 1 commit into
e2e-inc:mainfrom
DeryFerd:ci/spec-nightly-skip-duplicate-check

Conversation

@DeryFerd

@DeryFerd DeryFerd commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What

A nightly-agent-device dispatch now runs pnpm check or the eleven named steps, never both. Pushes and pull requests keep the named steps, so a failure still points at one check.

Why

pnpm check is a superset of the steps below it, and .github/workflows/spec.yml:45-47 ran it on a compatibility dispatch while the eleven steps at :48-69 ran unconditionally. One 4-vCPU runner inside a 15-minute budget did the whole gate twice, which is the budget the job's timeout exists to protect. Fixes #2203.

How it works

  1. Each of the eleven steps from Lint to MCP Registry entry matches the runner gains if: ${{ inputs.agent-device-version == '' }}.
  2. The Full nightly check step keeps its inverse condition, so exactly one arm runs.
  3. A comment above the pair states the split: a dispatch runs the gate in one step, a push or pull request runs the same checks as separate steps so CI names the one that failed.
  4. Two steps stay unguarded because they are not part of pnpm check: MCP Registry accepts the entry, which needs the publisher action, and Agent skill scripts. The browser install and the testbed below them also keep running on both arms.

Issue

Fixes #2203

Verified

Ran it locally: no - this is a workflow change, and no local runner executes GitHub Actions. What was run is a parse and structure check of the edited file with the yaml parser already in the workspace:

parsed OK; jobs: check, test, bun, install, gate
check job steps: 23
nightly arm (!= ''): 1 -> Full nightly check
pull-request arm (== ''): 11
unguarded: actions/checkout | pnpm/action-setup | actions/setup-node | ./.github/actions/workspace-install | ./.github/actions/mcp-publisher | MCP Registry accepts the entry | Agent skill scripts | Install browsers | Testbed | Testbed, scroll_to
gate needs: check, test, bun, install
jobs missing from gate.needs: none

That output is the assertion the change needs: one nightly step, eleven guarded steps, every setup and publisher step unguarded, and the gate still covering all four jobs. The first real dispatch of nightly-agent-device is the end-to-end check, and its check job should show the eleven steps skipped and pnpm check run.

Checklist

  • Changeset added (pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.
  • Breaking change: title carries !, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).
  • Docs updated in the same PR: the docs/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.

View guided diff

@github-actions github-actions Bot added the size:S Up to 29 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 24, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Checked at f78287f against main 5711573.

The duplicate is real. On main, Full nightly check (pnpm check) runs on a workflow_call with agent-device-version set, and then the eleven named steps run again with no condition. The 2026-11-23 nightly run (45138608125) shows both: pnpm check took 24s and the repeated steps about 17s, in a 4m50s job. It costs seconds, not the 15-minute budget, but the fix is correct and costs nothing.

PR and push behaviour stays the same. On pull_request, push, and merge_group there is no inputs value, so inputs.agent-device-version == '' is null == '', which GitHub coerces to 0 == 0 and evaluates as true. The existing != '' guard on Full nightly check already relies on the same coercion. The eleven guarded steps are exactly the ones pnpm check covers. docs:check is the only extra item in pnpm check, and it stays nightly-only, as before. The publisher validation, the skill scripts, the browsers, and the testbed stay unguarded.

Must fix

  • None.

Should fix

  • None.

Nits

  • PR body: "the budget the job's timeout exists to protect" overstates it. The nightly measurement above puts the duplicate at about 17s.

CI: mergeable_state is blocked because spec gate failed. test (24) and test (24.8.0) were cancelled at the 15-minute timeout-minutes limit inside Unit and integration tests. This PR only touches the check job, which passed. The same timeout hits other PRs today and is being fixed separately (#2225 splits the test job, #2226 raises its timeout). Re-run after one of those lands, or re-run now.

Verified: actionlint .github/workflows/spec.yml at the PR head is clean (repo actionlint config). Diff reviewed against main's spec.yml and package.json check script.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 24, 2026

@kdy1 kdy1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note

This text was drafted with AI and posted after human approval.

  • Harness: T3 Code
  • AI agents: coordinator: Claude Opus 5.5 (claude-opus-5-5), reviewer: GPT-6.2 Astra (gpt-6.2-astra), reviewer: GPT-6.2 Sol (gpt-6.2-sol), reviewer: Claude Opus 5.5 (claude-opus-5-5), reviewer: Claude Sonnet 5.5 (claude-sonnet-5-5)

Verdict: Approve

This review approves the pull request. The P3 items are optional and do not block the merge.

Thank you for this fix, @DeryFerd. I checked both arms of the condition against the nightly and pull request runs and found no problem in the behavior. The only finding is a small inaccuracy in the new comment.

Reviewed commit: f78287f60374b704ca6aceb2979335308091148f

  • P3 (non-blocking): 1 (1 inline)

with:
agent-device-version: ${{ inputs.agent-device-version }}
# One arm or the other, never both: a compatibility dispatch runs the whole
# gate in one step, and a push or pull request runs the same checks as

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

P3 · Non-blocking · The new comment says separate steps run the same checks as pnpm check

Optional. This does not block the merge.

The comment says that a push or pull request "runs the same checks as separate steps". The separate steps do not include docs:check, which is part of pnpm check (package.json:13). On a push or pull request, spec does not run docs:check; the separate docs.yml workflow runs it on pull requests and in the merge queue when its path filter matches. The behavior is correct and did not change. Only the comment describes more coverage than the separate steps give, which can mislead the next person who edits this job.

@kdy1
kdy1 added this pull request to the merge queue Nov 25, 2026
Merged via the queue into e2e-inc:main with commit 0d31e1e Nov 25, 2026
40 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:S Up to 29 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A nightly agent-device dispatch runs the full check suite twice

3 participants