Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c5b8390
chore(ci): plan determinism partitions by reviewed weight (#4117)
schlessera Nov 17, 2026
9c6d8d2
chore(ci): run an oversized determinism selection as planned partitio…
schlessera Nov 17, 2026
4489420
docs(ci): record the determinism recalibration and partition ruling (…
schlessera Nov 17, 2026
82930c3
Merge remote-tracking branch 'origin/chore/4117-shard-determinism' in…
schlessera Nov 17, 2026
b8af3dd
Merge remote-tracking branch 'origin/main' into feat/repeat-browser-s…
schlessera Nov 17, 2026
e0e9b6c
chore(ci): plan changed browser specs as project/file pairs and weigh…
schlessera Nov 17, 2026
bdd6a20
chore(ci): repeat changed browser specs under CPU load in the pinned …
schlessera Nov 17, 2026
64676db
chore(ci): require the browser_determinism job before merge when a sp…
schlessera Nov 17, 2026
f05fadb
docs(ci): record the browser spec repetition ruling and amend the hyb…
schlessera Nov 17, 2026
09633b1
Merge remote-tracking branch 'origin/main' into feat/repeat-browser-s…
schlessera Nov 17, 2026
4aac467
Merge remote-tracking branch 'origin/main' into chore/4117-shard-dete…
schlessera Nov 17, 2026
0df7ea4
Merge remote-tracking branch 'origin/main' into chore/4117-shard-dete…
schlessera Nov 17, 2026
e2d0af2
Merge remote-tracking branch 'origin/main' into chore/4117-shard-dete…
schlessera Nov 17, 2026
fab8ef1
Merge remote-tracking branch 'origin/chore/4117-shard-determinism' in…
schlessera Nov 17, 2026
062f501
Merge remote-tracking branch 'origin/main' into feat/repeat-browser-s…
schlessera Nov 17, 2026
e3d887f
test(ci): keep the weight-table control independent of the table's si…
schlessera Nov 17, 2026
03b28f9
test(ci): give each proof-system lane scenario its own test (#4189)
schlessera Nov 17, 2026
e4d58bb
Merge remote-tracking branch 'origin/main' into feat/repeat-browser-s…
schlessera Nov 17, 2026
04324b1
Merge remote-tracking branch 'origin/main' into feat/repeat-browser-s…
schlessera Nov 17, 2026
04ff634
Merge remote-tracking branch 'origin/main' into feat/repeat-browser-s…
schlessera Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .agents/skills/work-issue/references/ci-and-merge.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ PR adds or modifies a Bun test file, `determinism` repeats those files under
CPU load at every cadence, drafts included, and `draft gates` and `proof`
require it. The job is `determinism (1)`; a selection too heavy for one job
runs as several numbered partitions, and all of them must pass. A failing repetition is fixed in the test, never rerun
([the gate](../../../../docs/process/testing.md#changed-tests-repeat-under-load)). Read actual GitHub checks
([the gate](../../../../docs/process/testing.md#changed-tests-repeat-under-load)).
`browser_determinism` is the same rule for Vitest specs: when a PR adds or
modifies a browser, layout or story spec, it repeats those specs under CPU
load in the pinned container, as `browser_determinism (1)` or several
numbered partitions
([the gate](../../../../docs/process/testing.md#changed-browser-specs-repeat-under-load)). Read actual GitHub checks
and logs for the current head, never an old Depot receipt or latest-main run.
GitHub checks/statuses may include additional gates. No rows,
queued/running checks or cancelled runs are not green.
Expand Down
70 changes: 66 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ concurrency:

# Drafts run cheap gates; synchronize gives fast feedback. Open/ready/reopen
# requests final affected confirmation. The proof gate refuses intermediate feedback.
# One job is selected at every pull-request cadence, drafts included: `determinism`
# repeats the Bun test files a change adds or modifies under CPU load (#4109),
# in as many partitions as the planner publishes (#4117).
# Two jobs are selected at every pull-request cadence, drafts included: `determinism`
# repeats the Bun test files a change adds or modifies under CPU load (#4109), and
# `browser_determinism` repeats its Vitest browser, layout and story specs in the
# pinned container (#4163). Each runs in as many partitions as the planner
# publishes (#4117).
# Independent jobs start together; each PR owns its cancellation group (#1326).
jobs:
changeset:
Expand All @@ -42,6 +44,8 @@ jobs:
pack: ${{ steps.plan.outputs.pack }}
determinism: ${{ steps.plan.outputs.determinism }}
determinism_shards: ${{ steps.plan.outputs.determinism_shards }}
browser_determinism: ${{ steps.plan.outputs.browser_determinism }}
browser_determinism_shards: ${{ steps.plan.outputs.browser_determinism_shards }}
red_main_oid: ${{ steps.plan.outputs.red_main_oid }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
Expand Down Expand Up @@ -708,10 +712,68 @@ jobs:
if-no-files-found: warn
retention-days: 7

browser_determinism:
# A changed browser, layout or story spec that passes once can still fail on someone else's merge (#4163).
needs: changeset
if: ${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.browser_determinism == 'true' }}
runs-on: ubuntu-24.04
# 20 minutes proof (build, image and repeated passes) + 5 minutes for other steps.
timeout-minutes: 25
# One partition while the selection fits one job's capacity; an oversized
# selection is split by reviewed weight (scripts/proof-shards.ts).
strategy:
fail-fast: false
matrix:
shard: ${{ fromJSON(needs.changeset.outputs.browser_determinism_shards) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.4.2"
- run: bun install --frozen-lockfile
- name: Recompute affected proof on the actual checkout
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
BEFORE_SHA: ${{ github.event.before }}
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Repeat changed browser, layout and story specs under CPU load
timeout-minutes: 20
env:
BROWSER_REPEAT_SHARDS: ${{ strategy.job-total }}
run: bun scripts/ci-proof.ts browser_determinism --shard=${{ matrix.shard }}/"$BROWSER_REPEAT_SHARDS"
- name: Proof receipts and failure diagnostics
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: browser-determinism-proof-${{ matrix.shard }}
path: |
tmp/browser-determinism-report.json
tmp/browser-determinism/
tmp/proof-checkout.json
tmp/proof-resources.json
packages/ui-kit/.vitest-attachments/
packages/ui-react/.vitest-attachments/
.vitest-attachments/
tmp/hygiene-proof/
tmp/cold-capture/
tmp/share-review/
packages/ui-kit/**/__screenshots__/**/*-[0-9]*.png
packages/ui-react/**/__screenshots__/**/*-[0-9]*.png
!packages/ui-kit/**/__screenshots__/**/*-linux.png
!packages/ui-react/**/__screenshots__/**/*-linux.png
include-hidden-files: true
if-no-files-found: warn
retention-days: 7

proof:
name: ${{ github.event_name != 'pull_request' && 'integrated or exhaustive proof' || github.event.pull_request.draft && 'draft gates' || 'proof' }}
# Evaluate even after failures or skips; never interpret missing selected proof as green.
needs: [changeset, verify, pack, unit, runtime, runtime_host, browser, layout, captures, endurance, determinism]
needs: [changeset, verify, pack, unit, runtime, runtime_host, browser, layout, captures, endurance, determinism, browser_determinism]
if: ${{ always() && !cancelled() }}
runs-on: ubuntu-24.04
timeout-minutes: 3
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/heavy-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
pack: "${{ steps.plan.outputs.pack }}"
determinism: "${{ steps.plan.outputs.determinism }}"
determinism_shards: "${{ steps.plan.outputs.determinism_shards }}"
browser_determinism: "${{ steps.plan.outputs.browser_determinism }}"
browser_determinism_shards: "${{ steps.plan.outputs.browser_determinism_shards }}"
red_main_oid: "${{ steps.plan.outputs.red_main_oid }}"
base_sha: "${{ steps.admit.outputs.base_sha }}"
steps:
Expand Down Expand Up @@ -490,6 +492,45 @@ jobs:
include-hidden-files: true
if-no-files-found: warn
retention-days: 7
browser_determinism:
needs: changeset
if: "${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.browser_determinism == 'true' }}"
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
shard: "${{ fromJSON(needs.changeset.outputs.browser_determinism_shards) }}"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
fetch-depth: 0
ref: "${{ inputs.head_sha }}"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
- run: bun install --frozen-lockfile
- name: Recompute affected proof on the actual checkout
env:
BASE_SHA: "${{ needs.changeset.outputs.base_sha }}"
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: "Repeat changed browser, layout and story specs under CPU load"
timeout-minutes: 20
env:
BROWSER_REPEAT_SHARDS: "${{ strategy.job-total }}"
run: "bun scripts/ci-proof.ts browser_determinism --shard=${{ matrix.shard }}/\"$BROWSER_REPEAT_SHARDS\""
- name: Proof receipts and failure diagnostics
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: "browser-determinism-proof-${{ matrix.shard }}"
path: "tmp/browser-determinism-report.json\ntmp/browser-determinism/\ntmp/proof-checkout.json\ntmp/proof-resources.json\npackages/ui-kit/.vitest-attachments/\npackages/ui-react/.vitest-attachments/\n.vitest-attachments/\ntmp/hygiene-proof/\ntmp/cold-capture/\ntmp/share-review/\npackages/ui-kit/**/__screenshots__/**/*-[0-9]*.png\npackages/ui-react/**/__screenshots__/**/*-[0-9]*.png\n!packages/ui-kit/**/__screenshots__/**/*-linux.png\n!packages/ui-react/**/__screenshots__/**/*-linux.png\n"
include-hidden-files: true
if-no-files-found: warn
retention-days: 7
aggregate:
name: draft heavy feedback
needs:
Expand All @@ -504,6 +545,7 @@ jobs:
- captures
- endurance
- determinism
- browser_determinism
if: "${{ always() && !cancelled() && github.event_name == 'workflow_dispatch' }}"
runs-on: ubuntu-24.04
timeout-minutes: 3
Expand Down
Loading
Loading