Skip to content

Let Sweep runs differ in any input, pass its arguments to every script, and read byte slices on runners - #1213

Draft
dfed wants to merge 4 commits into
mainfrom
claude/slices-on-runners
Draft

dfed wants to merge 4 commits into
mainfrom
claude/slices-on-runners

Conversation

@dfed

@dfed dfed commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

Three changes to the Sweep workflow, which runs one script of a branch over many items on up to 40 Linux runners.

  • Two Sweep runs now cancel one another only when every input is the same. The concurrency group named the ref, the script and the arguments, so a run that differed only in its prepare script cancelled the run it was the control of.
  • The arguments input now reaches the prepare and summary scripts as well as the shard script, so one dispatch can say what all three work on.
  • .github/scripts/slice-sweep/ is a set of the three scripts that reads a byte slice of any commit against 2.4.5 on runners: prepare builds the commit's tool, 2.4.5's and the readers of approved differences once; each shard runs the byte gate over its share of the seeds; the summary prints the verdict with the head, base, switches and readers. A lane's second slice mode waited hours for one machine; this reads it in the time of two tool builds.

Generated output: unchanged

Tests

The shard and summary scripts were run with stand-in tools over 60 graphs in three shards: counts, approved entries, differing graphs and their diffs join as one verdict. The prepare script's builds run only on a runner, so its first dispatch is its test.

Found and not fixed

  • The slice scripts fetch the gate from the branch that holds it, which is not on main. Left: the gate's scripts move to main with the change that retires that branch.

Generated by Claude Code

A lane's hand-back slices one mode and the other waited for one machine's batch, for hours. The three scripts under
.github/scripts/slice-sweep build the head's tool, 2.4.5's and the readers once, run the byte branch's gate over the
seeds on up to 40 runners, and print the slice's verdict in the claim block's layout. Sweep now also passes its
arguments to the prepare and summary scripts, which is how they learn the head and the mode.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
The concurrency group named the ref, the script and the arguments, so a run that differed only in its prepare
script cancelled the run it was the control of. The group now names every input.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
@dfed dfed self-assigned this Dec 2, 2026
Two shallow fetches into one clone at once fail on its shallow.lock, so the
slice sweep's prepare script fetches and checks out both trees before it
builds them side by side.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Timing of e2c21f5

Wall times measured in this run. A wall time, peak memory, size or growth row over its limit is reported here and fails no check; a shape the tool cannot generate still fails "Check Generate Time on Linux". Every run rewrites this comment, and a check that did not run in it is not listed.

generate, head against base: 0 failure(s), and 1 finding(s) reported and not failed.

Reported and not failed:

  • RG-ring-of-instantiators: at 2000 layers generate took 2.36 times as long as at 1000 layers (0.574 s against 0.243 s); the limit is 2.3, and the graph has 2.00 times the layers
Every shape and row

generate time and peak memory, head against base: median of 5 alternating runs; a shape fails at 2 times the base's wall time or 1.3 times its peak memory, there or on the median peak of 5 more runs with one allocator arena, and C1500-mock-chain, E32-inline-mocks, S12-mocks, S16 at 1.1 times with one arena. APP100x800x3, APP300x3000x3, E24-public-mock, MR20x1000-many-roots, ORD400-ordinary are compared on their runs with one arena alone, at 1.3 or at the shape's own memory limit.

Shape Runs Base wall / CPU Head wall / CPU Head / base (wall) Base peak Head peak Head / base (peak) Generated code Verdict
every shape 0 not compared: the head tool is the base tool

.safedi size, head against base: a module fails at 2 times the base's bytes.

Shape Module Base bytes Head bytes Head / base Verdict

Growth, the head tool alone: each row at its layers and at 2 more, or at the two numbers it names; median of 3 alternating runs for time, and of 3 more with one allocator arena for peak memory. A measure fails at 2 times the smaller graph's, or at the limit beside it.

Row Layers Wall: fewer layers, more, ratio Peak memory .safedi bytes Generated code Verdict
P-seam-hole-at-every-screen 6 and 8 0.257 s, 2.102 s, 8.19 (limit 13) 60.7 MB, 200.6 MB, 3.30 (limit 5.5) 291416 bytes, 3379022 bytes, 11.60 (limit 12.5) 80978 bytes, 123266 bytes, 1.52 within the limits
L-label-declared-again 9 and 11 0.047 s, 0.051 s, 1.07 47.6 MB, 48.4 MB, 1.02 10443 bytes, 12982 bytes, 1.24 17699 bytes, 22475 bytes, 1.27 within the limits
K-mock-at-every-screen 6 and 8 0.061 s, 0.273 s, 4.51 (limit 6.5) 51.6 MB, 82.1 MB, 1.59 3135 bytes, 4255 bytes, 1.36 972037 bytes, 9574045 bytes, 9.85 (limit 10.5) within the limits
M-public-mock-layers 6 and 8 0.098 s, 0.271 s, 2.78 (limit 5) 50.7 MB, 58.3 MB, 1.15 6955 bytes, 9179 bytes, 1.32 428063 bytes, 3552741 bytes, 8.30 (limit 9) within the limits
MH-public-mock-hole-at-every-screen 6 and 8 0.227 s, 1.779 s, 7.82 (limit 12.5) 62.1 MB, 182.5 MB, 2.94 (limit 5.5) 224758 bytes, 2506094 bytes, 11.15 (limit 12.5) 751871 bytes, 6212036 bytes, 8.26 (limit 9) within the limits
Q-seam-own-module-paths 9 and 11 0.237 s, 0.095 s, 0.40 48.8 MB, 49.1 MB, 1.01 10422 bytes, 12665 bytes, 1.22 59796 bytes, 75892 bytes, 1.27 within the limits
B-cycles-through-instantiators 3 and 5 0.059 s, 0.062 s, 1.05 (limit 27) 46.2 MB, 46.2 MB, 1.00 (limit 3.6) 1706 bytes, 2680 bytes, 1.57 4492 bytes, 7990 bytes, 1.78 within the limits
W-ring-of-screens-that-open-each-other 10 and 12 0.034 s, 0.035 s, 1.02 (limit 4) 46.0 MB, 46.1 MB, 1.00 2498 bytes, 2962 bytes, 1.19 7147 bytes, 8555 bytes, 1.20 within the limits
WL-ring-of-screens-receiving-labels 2 and 4 0.207 s, 0.594 s, 2.87 (limit 5.5) 62.6 MB, 99.8 MB, 1.59 (limit 2.4) 46751 bytes, 60851 bytes, 1.30 50201 bytes, 76701 bytes, 1.53 within the limits
BM-mocks-of-cycles-through-instantiators 2 and 4 0.074 s, 1.881 s, 25.34 (limit 48) 49.6 MB, 166.3 MB, 3.35 (limit 6.5) 1262 bytes, 2221 bytes, 1.76 108891 bytes, 28647642 bytes, 263.09 (limit 275) within the limits
F9-public-mock-seam-chain 3 and 5 0.232 s, 2.415 s, 10.41 (limit 16) 53.6 MB, 202.5 MB, 3.78 (limit 6) 108330 bytes, 3474647 bytes, 32.07 (limit 36) 279360 bytes, 4961431 bytes, 17.76 (limit 19) within the limits
H-seam-holes-in-cycles 3 and 5 0.108 s, 1.229 s, 11.38 (limit 22) 48.7 MB, 88.8 MB, 1.82 (limit 2.6) 22299 bytes, 1376085 bytes, 61.71 (limit 65) 28228 bytes, 121080 bytes, 4.29 (limit 5) within the limits
TA-all-to-all-tangle 4 and 6 0.110 s, 2.216 s, 20.13 (limit 27) 50.1 MB, 163.4 MB, 3.26 (limit 4.7) 32535 bytes, 1247861 bytes, 38.35 (limit 47) 78851 bytes, 5566907 bytes, 70.60 (limit 83) within the limits
LS-layered-screens-opening-screen-above 6 and 8 0.038 s, 0.042 s, 1.10 46.6 MB, 46.9 MB, 1.01 3824 bytes, 5040 bytes, 1.32 11776 bytes, 15982 bytes, 1.36 within the limits
LST-layered-screens-opening-screen-above-over-twin-cycle 4 and 6 0.059 s, 0.534 s, 9.02 (limit 13) 48.6 MB, 79.8 MB, 1.64 1358 bytes, 1811 bytes, 1.33 3427 bytes, 4893 bytes, 1.43 within the limits
LSH-seam-layered-screens-opening-screen-above-hole-at-leaves 3 and 5 0.109 s, 1.936 s, 17.79 (limit 26) 50.1 MB, 140.6 MB, 2.80 (limit 4.5) 29722 bytes, 1005186 bytes, 33.82 (limit 38) 79021 bytes, 3078304 bytes, 38.96 (limit 47) within the limits
O-only-if-available-at-every-screen 6 and 8 0.036 s, 0.039 s, 1.06 45.9 MB, 46.5 MB, 1.01 3364 bytes, 4438 bytes, 1.32 9413 bytes, 12671 bytes, 1.35 within the limits
R-received-instantiator-at-every-screen 6 and 8 0.039 s, 0.043 s, 1.11 46.3 MB, 46.9 MB, 1.01 3230 bytes, 4316 bytes, 1.34 21143 bytes, 31547 bytes, 1.49 within the limits
N-rename-at-every-screen 8 and 10 0.039 s, 0.041 s, 1.06 46.8 MB, 47.2 MB, 1.01 4432 bytes, 5507 bytes, 1.24 13439 bytes, 16889 bytes, 1.26 within the limits
V-renames-in-alternate-layers 10 and 12 0.045 s, 0.049 s, 1.10 47.6 MB, 48.2 MB, 1.01 6952 bytes, 8388 bytes, 1.21 22258 bytes, 27706 bytes, 1.24 within the limits
VO-only-if-available-renames-in-alternate-layers 10 and 12 0.046 s, 0.049 s, 1.07 47.4 MB, 48.1 MB, 1.01 7027 bytes, 8475 bytes, 1.21 22277 bytes, 27729 bytes, 1.24 within the limits
PR-parents-router 8 and 10 0.038 s, 0.040 s, 1.04 46.6 MB, 46.6 MB, 1.00 4300 bytes, 5373 bytes, 1.25 15705 bytes, 19869 bytes, 1.27 within the limits
PRS-seam-parents-router 8 and 10 0.075 s, 0.079 s, 1.04 47.3 MB, 47.4 MB, 1.00 7954 bytes, 9849 bytes, 1.24 17103 bytes, 21357 bytes, 1.25 within the limits
T-leaves-reached-twice-at-depth 1 and 3 0.399 s, 1.258 s, 3.15 (limit 6) 84.1 MB, 161.2 MB, 1.92 (limit 3.8) 214719 bytes, 665319 bytes, 3.10 (limit 3.5) 419959 bytes, 1288909 bytes, 3.07 (limit 3.5) within the limits
CH-chain-of-instantiators 1000 and 2000 0.212 s, 0.427 s, 2.01 (limit 2.3) 65.6 MB, 85.5 MB, 1.30 (limit 2.3) 107683 bytes, 219498 bytes, 2.04 (limit 2.3) 207492 bytes, 423492 bytes, 2.04 (limit 2.3) within the limits
RG-ring-of-instantiators 1000 and 2000 0.243 s, 0.574 s, 2.36 (limit 2.3) 66.0 MB, 89.8 MB, 1.36 (limit 2.3) 112707 bytes, 229523 bytes, 2.04 (limit 2.3) 234611 bytes, 477611 bytes, 2.04 (limit 2.3) time over the limit
DC-chain-of-declarations-at-depth 2 and 4 0.643 s, 1.334 s, 2.08 (limit 2.3) 104.7 MB, 165.3 MB, 1.58 (limit 2.3) 341402 bytes, 693402 bytes, 2.03 (limit 2.3) 703337 bytes, 1415337 bytes, 2.01 (limit 2.3) within the limits
LC-chain-inside-lazy-cycle-function 2 and 4 1.076 s, 2.271 s, 2.11 (limit 3.2) 145.4 MB, 245.1 MB, 1.69 (limit 2.3) 565618 bytes, 1174902 bytes, 2.08 (limit 2.3) 1182142 bytes, 2394938 bytes, 2.03 (limit 2.3) within the limits
DL-deep-lazy-cycle 300 and 600 0.072 s, 0.122 s, 1.68 (limit 2.3) 50.9 MB, 54.8 MB, 1.08 (limit 2.3) 24944 bytes, 50144 bytes, 2.01 (limit 2.3) 53193 bytes, 106593 bytes, 2.00 (limit 2.3) within the limits
TS-leaves-reached-from-two-screens 2 and 4 0.619 s, 1.286 s, 2.08 (limit 2.3) 105.1 MB, 165.0 MB, 1.57 (limit 2.8) 317851 bytes, 647451 bytes, 2.04 (limit 2.3) 565355 bytes, 1150955 bytes, 2.04 (limit 2.3) within the limits
TC-leaves-reached-three-times-down-chain 2 and 4 0.389 s, 0.836 s, 2.15 (limit 3.6) 83.2 MB, 120.1 MB, 1.44 (limit 2.1) 211144 bytes, 431644 bytes, 2.04 (limit 2.3) 455533 bytes, 915033 bytes, 2.01 (limit 2.3) within the limits
TW-components-on-two-wide-screens 2 and 4 0.792 s, 1.673 s, 2.11 (limit 2.5) 121.0 MB, 193.4 MB, 1.60 (limit 2.3) 440981 bytes, 875561 bytes, 1.99 (limit 2.3) 790823 bytes, 1558723 bytes, 1.97 (limit 2.3) within the limits
BL-back-links-to-feature-entries 1 and 3 0.044 s, 0.045 s, 1.02 47.3 MB, 47.1 MB, 1.00 7344 bytes, 7394 bytes, 1.01 25102 bytes, 25352 bytes, 1.01 within the limits
BL4-back-links-to-most-feature-entries 4 and 6 0.045 s, 0.045 s, 1.01 (limit 6) 46.8 MB, 47.0 MB, 1.01 (limit 2.4) 7425 bytes, 7475 bytes, 1.01 25477 bytes, 25727 bytes, 1.01 within the limits
BLO-back-links-with-state-only-if-available 1 and 3 0.058 s, 0.083 s, 1.44 (limit 8) 48.6 MB, 49.9 MB, 1.03 7409 bytes, 7459 bytes, 1.01 25156 bytes, 25406 bytes, 1.01 within the limits
BLS-back-links-with-feature-labels-over-shared-tree 1 and 3 0.516 s, 0.834 s, 1.62 106.1 MB, 141.4 MB, 1.33 (limit 2.3) 260378 bytes, 435233 bytes, 1.67 375861 bytes, 642061 bytes, 1.71 within the limits
MB-calling-mocks-of-many-hole-types 40 and 80 0.251 s, 0.502 s, 2.00 (limit 2.2) 58.3 MB, 66.9 MB, 1.15 36220 bytes, 69448 bytes, 1.92 2316408 bytes, 4639408 bytes, 2.00 (limit 2.2) within the limits
LP-lifelike-chain-under-the-plugin 5 and 10 0.426 s, 0.875 s, 2.05 (limit 2.35) 73.4 MB, 97.0 MB, 1.32 0 bytes, 0 bytes, 1.00 3542265 bytes, 6777708 bytes, 1.91 (limit 2.2) within the limits
LPB-lifelike-chain-with-back-edges 5 and 10 1.390 s, 2.890 s, 2.08 (limit 2.3) 141.7 MB, 227.5 MB, 1.61 (limit 2.3) 0 bytes, 0 bytes, 1.00 (limit 2.3) 15693355 bytes, 26376804 bytes, 1.68 (limit 2.3) within the limits

Two packages resolving at once both download the release's tool bundle
into SwiftPM's one cache, and the second fails on a file that already
exists, so the slice sweep's prepare script resolves each tree as it
checks it out and only then builds the two side by side.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
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.

2 participants