sched/order: in a wave a head's image chain starts when the older heads' test waves drain; ten heads stood up to 12 min on it alone (02:49-03:07Z 11-17) #93
Open
opened 2026-11-17 03:10:34 +00:00 by xemmerling
·
0 comments
No Branch/Tag specified
main
sim/session-home
speed/session-home-main
overbook-reland
overbook-demand
speed/sources
speed/end-cost
speed/session-home
speed/storage
speed/delivery
overbook
roots-hotfix
privileged-vm
image-store
sandbox-bump
found-by-package
mac-node
dev/schema-step-order
t-join-release
t-work-booking
t-ahead-deadlock-wip
t-hotfix-9ae
t-width-work
t-id-token-renew
t-claim-unkept
t-resume-live
t-run-record
t-all-lockfiles
t-relay-offset
t-blame-event
t-freer-links
t-load-tests
t-jobserver2
t-starved-timeout
t-client-pack
t-offline-config
t-test-plan
t-told-resume2
t-jobserver
t-told-resume
t-outbound2
t-crash-open-bench
t-told-once
guest-never-below-given
admit-page-cache-active
pooled-admission
driver-give-back
no-sizes
one-driver-per-check
archive/vm-root-share
archive/build-out-kept
archive/cargo-perf
archive/virtiofs-readdir-alloc
archive/vm-outputs-stream
archive/stable-verify-priority
archive/agents-1
archive/stack-parallel
archive/cpu-admission
archive/narrow-from-every-log
archive/old-t
archive/worker-store-gc
archive/failing-builds-kept
archive/vm-cargo-home
archive/lifecycle
archive/bench-own-cores
archive/place-test-binaries-nocopy
archive/vm-net-upload-stall
archive/booking-current-use
archive/archive-dep-out-dirs
archive/any-arch-shards
archive/prepare-stall-progress-ns20
archive/s2
archive/next-set-20
archive/store-full-waits
archive/fetch-caps-by-node
archive/vm-step-phases
archive/arm-only-for-arm
archive/deploy-all-workers
archive/lifecycle-staging
archive/lifecycle-1-wire
archive/fast-gate
archive/cargo-key-narrow
archive/log-leads-followup
archive/gate-limit
archive/prepare-stall-vm-bytes
archive/lifecycle-2-ends
archive/cache-hits-bind
archive/failing-reused
archive/oci-archive-direct
archive/prepare-stall-progress
archive/test-quarantine
archive/crash-safe-on-18
archive/build-script-etxtbsy
archive/old-release
archive/next-set-19c
archive/wait-reasons
archive/cache-put-best-effort
archive/hang-not-t-time
archive/shard-test-results
archive/vm-carry-on-17
archive/check-test-filter
archive/artifact-path-beneath
archive/stall-room-xfs
archive/build-dir-no-recopy
archive/cache-hits-link
archive/outputs-no-follow-on-copy
archive/outputs-no-follow
archive/next-set-19
archive/hang-detect
archive/stable-verify-stable-plan
archive/freer-target-only
archive/lease-pricing-narrow
archive/vm-outputs-once
archive/queue-place-starved
archive/publish-reads
archive/disk-warning-scratch
archive/outputs-no-copy
archive/wd-probe-3min
archive/watchdog-on-d65
archive/log-leads-with-excerpt
archive/queue-place
archive/prep-watchdog-progress
archive/cache-put-stack-room
archive/cache-put-stack
archive/place-by-pace
archive/nested-sync-helper
archive/next-set-18y
archive/archive-bins-by-env-19
archive/next-set-18
archive/disk-want-held
archive/young-booking-back
archive/flaky-tests-1027b
archive/next-set-17
archive/prep-start-at-close
archive/unpack-error-on-17
archive/server-memory-high
archive/vm-start-held
archive/vm-carry-on-14
archive/space-trim-registry-room
archive/file-cache-ns16
archive/unpack-error-final
archive/crash-safe-worker
archive/server-space-trim
archive/status-big-runs
archive/nested-tmp-volatile
archive/publish-refresh
archive/gc-cache-quiet-reads
archive/next-set-16
archive/vm14-proof
archive/csw-node-kill
archive/unpack-link
archive/vm-tests-15
archive/seccomp-allow-field
archive/flaky-tests-1027-ns15
archive/shard-fail-fast
archive/server-node-check
archive/live-log-restart
archive/unpack-no-orphans
archive/flaky-tests-1027
archive/fetch-share-images
archive/fetch-images-red4
archive/forget-cached
archive/put-file-once-ns15
archive/recheck-rank-15
archive/fetch-images-red3
archive/unpack-no-orphans-red2
archive/fetch-io-pass-followups
archive/sandbox-no-fallback-ns15
archive/unpack-no-orphans-red
archive/archive-bins-by-env-ns15
archive/ns15-proof
archive/next-set-15
archive/archive-bins-by-env
archive/vm-guest-panic-15
archive/sandbox-no-fallback
archive/recheck-rank
archive/placement-ahead-bound
archive/carry-keeps-listing
archive/registry-parallel-pull
archive/sandbox-tests-15
archive/attempt-log-live-15
archive/follow-progress-16
archive/follow-progress-15
archive/ns15-archive-base
archive/fetch-io-max-on-13
archive/fetch-images-red2
archive/transient-build-fail-15
archive/test-ended-early-15
archive/archive-keep-cleanup
archive/main-merge-14
archive/sandbox-clone3-fallback
archive/vm-carry-on-13
archive/fetch-io-sweep-15
archive/vm-root-disk-fixes
archive/vm-guest-panic
archive/follow-progress-14
archive/archive-keep-on-demand
archive/vm-exit-unseen
archive/file-cache-share
archive/bwrap-root-userns
archive/transient-build-fail
archive/fetch-io-max
archive/file-cache-guard-11
archive/fetch-io-sweep
archive/archive-build-dir-skip
archive/next-set-14
archive/wrapper-one-read
archive/archive-tmp-links
archive/attempt-log-live
archive/fetch-share-and-order
archive/vm-hang-io-wait
archive/vm-carry-fixes
archive/image-cancel
archive/test-ended-early
archive/sim-on-train3-bundle
archive/hits-layer-wip
archive/t-old-putfile
archive/archive-links
archive/stall-on-13
archive/carried-prep-completes
archive/put-file-once
archive/preview-14
archive/follow-progress
archive/gc-reads-dont-protect
archive/admission-replay-people
archive/people-pickup
archive/gc-pass-visible
archive/hits-layer
archive/own-build-priced
archive/compact-stamps-followup
archive/prepare-timing
archive/sim-on-train3
archive/next-set-13
archive/next-set-12b
archive/sim-on-next-set-12
archive/deploy-doc-no-kill
archive/next-set-12
archive/attempt-logs-real
archive/sim-tests-green
archive/shard-label-index
archive/young-booking
archive/next-set-11
archive/data-dir-config-env
archive/vm-sync-not-host-store
archive/attempt-logs
archive/wrapper-ro
archive/tests-wait-on-events
archive/blame-git-optional-needs
archive/job-file-headroom-impl
archive/next-set-10
archive/blame-verdict-fresh-parent
archive/compact-touched-stamps
archive/interactive-incremental-off
archive/follow-lost-lines-counted
archive/evict-test
archive/next-set-trial
archive/keys-cover-output-bytes
archive/file-cache-guard
archive/blame-after-parent
archive/test-filter-matching-nothing-fails
archive/s1-on-d96
archive/draining-node-queues
archive/tprev-checks-prod-next
archive/s1-dead
archive/follow-live-run
archive/guard-stopped-setup-text
archive/io-error-cause
archive/source-layer-whole
archive/clippy-groups
archive/worker-silence-grace
archive/price-touched
archive/prod-next
archive/batch1
archive/s1-on-prod-next
archive/vmcache/sandbox-copyup-pin
archive/s1-xfs-store
archive/warm-script-builds
archive/vmcache/setup-tag-digest
archive/vmcache/setup-should-fixes
archive/vmcache/setup-any-arch
archive/guard-livelock
archive/host-budget
archive/wire-format-test
archive/admission-replay
archive/switch-safe
archive/stall-window
archive/upgrade-carries-preparing
archive/static-init
archive/switch-proof-b
archive/carry-tokens
archive/seals-together
archive/switch-safe-storage
archive/switch-safe-worker
archive/batch-b-prev
archive/vmcache/batch-b
archive/carry-vm-helpers
archive/small-llvm-args-failed-log
archive/batch-a
archive/stall-hotfix
archive/prev-pacing
archive/u-try-wip
archive/u-try
archive/u-try-wip2
archive/flatten-verify
archive/poll-free
archive/flatten-tiers
archive/hotfix-cross
archive/pool-stall
archive/disk-pacing
archive/u-builds-from-graph
archive/mac-idle
archive/ship-direct
archive/vmcache/shards
archive/soft-margin
archive/behind-no-target
archive/filtered-binaries
archive/vmcache/setup-layers
archive/direct-off-prev
archive/probe-budget
archive/vm-helper-exit
archive/jobs-soft-bound
archive/vmcache/vm-disks
archive/vmcache/failure-outputs
archive/narrowed-not-verdict
archive/scratch-direct-off
archive/handover-holds
archive/memory-lines
archive/drain-destroys
archive/pool-size
archive/drain-own-frees
archive/test-schema-drop
archive/deploy-disk
archive/deploy-disk-lines
archive/clone-aware-freeing
archive/absolute-headroom
archive/zfs-pool-size
archive/u-int5
archive/u-load
archive/u-warn
archive/u-steer
archive/revert-stall-once
archive/guard-headroom
archive/u-int3
archive/u-readsets
archive/u-hermetic
archive/mem-virtio
archive/u-buildjobs
archive/u-waits
archive/u-three
archive/u-zfs-stall
archive/u-config
archive/u-lean
archive/u-e2e
archive/u-integrate2
archive/u-jobenv
archive/u-cache-blobs
archive/u-observe2
archive/u-sched-nospread
archive/u-node-bound
archive/u-sched-oom
archive/u-review-store
archive/u-observe
archive/u-review-engine
archive/u-review-srv
archive/u-review-node
archive/u-review-sched
archive/preempt-measured
archive/u-integrate
archive/u-eng
archive/lock-off-runtime
archive/u-vm
archive/u-gone
archive/u-offline
archive/ready-starve
archive/u-notices
archive/heads-never-superseded
archive/u-learn
archive/int
archive/u-graph
archive/u-umount
archive/supersede-followed
archive/preparing-booking
archive/u-xdev
archive/u-env
archive/u-poll
archive/u-wrap
archive/u-room
archive/u-wrap-try
archive/u-fixed
archive/unstall
archive/u-fix3
archive/u-cwd
archive/resume-supersedes
archive/server-heap
archive/u-harness
archive/u-macos
archive/u-node
archive/u-eng2
archive/u-leader
archive/u-cutover
archive/u-cache
archive/u-sched
archive/u-engine
archive/chore/agpl-license
archive/note-x86-disk-room
archive/pass-cost
archive/prod-defects
archive/clippy-false-greens
archive/t-pace-variance-prototype
archive/outputs-reattach
archive/fix-retry-needs
archive/no-supersede-uncached
archive/fix/promoted-view-mtime
archive/rb-merge
archive/ft-sched
archive/ft-node
archive/ft-engine
archive/fx-sim
archive/fx2-mem
archive/fx2-store
archive/fx2-ci
archive/fx-work
archive/fx-ci
archive/fx-sched
archive/fx-req
archive/fx-store
archive/fx-cache
archive/rb-storage
archive/rb-scheduling
archive/rb-sweep
archive/rb-tracking
archive/rb-workers
archive/rb-client
archive/rb-profiles
archive/rebuild
archive/batch-deploy
archive/fix-roll
archive/work
archive/fix-busy
archive/fix-perf
archive/fix-suite
archive/fix-spread
archive/fix-sig
archive/fix-wait
archive/fix-init
archive/sizing
archive/fix-drift
archive/delivery
archive/fix-snap
archive/fix-own
archive/fix-rollout
archive/fix-hang
archive/fix-tree
archive/images
archive/fill
archive/sched-gate-preparing-after
archive/takeover-sim
archive/image-d244b22
archive/image-ce8a09e
archive/image-c9ff4f7
archive/image-489bec9
archive/image-7e07ffb
archive/image-583ea93
archive/image-8e1cd2c
archive/image-fbf0a9c
archive/image-6924e11
archive/image-29cabc3
archive/image-97ebb0e
archive/image-d0e23ac
archive/image-319fce9
archive/image-4f689e1
archive/image-feacbcd
archive/image-d5d9446
archive/image-6b86940
archive/fix/dedup-priority-promotion
archive/image-a5b0fe3
archive/image-462afb1
archive/image-f39d42c
archive/image-6e71fb4
archive/image-0c62329
archive/resources
archive/image-112b6a6
archive/image-8b06530
archive/image-5ae7cd8
archive/fmt-fix-in-t-toml
archive/image-arm64
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
tilo/t#93
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not a fault: a measurement of what the line's order costs a head's tail in a wave, for
sched::order. Production onf4172b7f, 2026-11-17, 02:00-03:07Z: about 30 head runs of tilo asked an hour, 16-19 open at once, the node full.What happened
For ten heads asked 02:14-02:32Z the image chain (
source-date-ci-fast, thenimage-ci-fast, thenimage-ci-fast-smokeandpublish-ci-fast) started only at 02:49Z, all within 25 seconds, and each head then stood on that chain alone after every other check of it was told.CI jobs asked 02:14-02:45Z that waited over 15 minutes for the node: source-date-ci-fast 14 (median 23.7 min), relay-upgrade 11 (25.4), cloud-rystic-build 7 (22.9), and one each of image-ci-fast, sdk-native-build, docs-examples-build, docs-reference-bins, docs-reference. All of the first batch were handed out 02:49:09-02:49:35Z; a second batch (asked 02:41-02:52Z) at 02:59:40-43Z. In the same half hour 2,374
test/*jobs asked after 02:20Z were started, median wait 340 s.The jobs view at 02:39:38Z shows why: one line, every one of these jobs
waits for roomat places 914-1,132, where its run stands; the test jobs ahead of them are the older heads' shards, asked as their binaries were built. That is the order assched/order.rsstates it (tier, the session's cores, the run, the oldest first), working as written.What it cost
When the head's last verdict outside the image chain was told, against the chain's last verdict:
About 53 head-minutes over ten heads, 5 minutes a head on verdicts of 41-49 minutes. The chain is a head's longest run of needs: one second of
source-date-ci-fast, then 8.1-9.7 minutes ofimage-ci-faston two cores in a VM (steady in every hour since 20:00Z, p50 8.4, p90 9.2), then the smoke and the publish, each standing in the line again (image-ci-fast-smokewaited 564 s at the median in that half hour). Started at the ask, the chain ends about 12 minutes later, long before the head's tests do, and the verdict comes with the last test.What moving it would take from the others
Ten chains are 10 x 2 cores x 9.5 minutes, about 3.2 core-hours, the same work, earlier: 1.2% of the node for that half hour, out of the older heads' shards.
Question for the order
Within a run the waiting compiles already stand by the longest critical path (spec, "Order within a node"). Across runs a younger head's one-second job at the head of its longest chain of needs stands behind every one-core shard of every older head. Would a run's chain of needs that outlasts some bound (here 10 minutes in sequence, three jobs) stand at the run's place for its first job only when the node is short, or should its first job stand as "work already started" does? I have no patch; this is yours. The files behind the tables:
~/.cache/t-factory/open-heads-0256/, jobs views saved 02:39Z and 03:06Z.05:28Z 11-17, on
a98a041d: the same checks now stand 34-45 minutes, and they are all a head has leftThis time the line ahead of them is people's work, not older heads' shards. From 04:30Z one person's session asked 63-82 runs each quarter hour (narrow asks: clippy for the wasm target, single test checks; about 180 source states in 90 minutes), and jobs ended per half hour were, in CPU hours:
At 05:25Z the eight oldest open heads had told 1,285 to 1,292 of their 1,293 checks and stood 42 to 59 minutes on what was left:
image-ci-fastwith its smoke and publish,relay-upgrade,cloud-rystic-build. Example: r39e5d37a0d asked 04:25:50Z, its last other verdict came at 04:29:49Z (nearly all answered from kept answers), and its chain's jobs started at 05:24:00Z. Its verdict would have stood about 14 minutes after the ask; it took over an hour. Over the 90 minutes to 05:28Z the wait in line was:source-date-ci-fast34.4 min at the median and 45.2 at the 90th percentile,relay-upgrade33.8 at the median,cloud-rystic-build10.4 and 44.8. In the hour to 05:28Z 25 heads were asked and 7 judged.So the cost of the chain's place is not five minutes a head in general: it is the whole time the node is short, for heads that need nothing else. People standing first is the rule and I do not question it here; the data is that a head whose every other check is answered holds its verdict for an hour on two cores of work. Files:
~/.cache/t-factory/open-heads-0525/,jobs-view-0510.json.07:00Z 11-17, on
f9cb88e3: CI starts nothing at allAfter the 06:30Z start (which ended 34 heads, issue 95) the new heads' work is mostly builds and their first shards, and one person's session holds the node:
(Jobs that had ended by 06:59Z, by when they started.) At 07:00Z the node ran 491 jobs of one session, 20 of five other sessions, and 4 of CI with one probe; booked 160 of 157 cores. Among that session's jobs:
web-desktop-gate-wasmfour times (width about 35),web-desktop-wasmfour times (about 30),lounge-gate-binariestwice (about 31), and 50test/tilo-session, 32test/tilo-relay, 20test/notesshards. CI's line holds 1,219 asks; its first twelve are each short by one core, 626 of the line by four cores (thetestandclippybuilds). CPU hours of jobs ended 06:45Z to 07:00Z: CI 4.3, people 33.4.People standing first is the rule; this is what it does when one session asks more than the node. Whether CI keeps a share is the user's decision and has been put to them.
08:22Z 11-17: heads are done but for these checks, and none is judged
70 head runs are open, the oldest asked 06:23Z; 6 were judged in the hour to 08:13Z of 26 asked. The eight oldest, read one run at a time (checks planned, told, missing; the missing ones' jobs in the jobs view):
Seven of the eight have nothing left but one to three command checks of a few cores, and have stood on them for about 100 minutes. Each of these heads would be judged minutes after those jobs start; they stand in the line behind the newer heads' builds and shards and behind people's jobs, on a node booked to its offer.
Beside them 119 probe runs are open, the oldest asked 02:39Z (single checks, each queued for room; 443 probe jobs wait), and 5 idle runs, the oldest from 01:37Z.
14:06Z 11-17 (production
2868c3f2): six hours measured. A head's verdict waits about an hour for a one-second job to get a place.Each head's own
source-date-ci-fastis the first link of its image chain. CI jobs of the chain and of the other late command checks over the six hours to 14:03Z (t.job_history):What that does to a head, for the 84 head runs judged in the same six hours that ran their own
source-date-ci-fast(of 183 judged):source-date-ci-faststartedBy the hour of the verdict the wait before it started was 59, 106, 31, 31, 24 and 16 minutes (08:00Z to 13:00Z); it fell after the 10:16Z rollback ended 47 heads and emptied the line, and is rising again.
The line at 14:01:48Z (jobs view; node booked 176 of 155 cores offered, 1,184 ci asks queued): the thirteen queued
source-date-ci-fastasks stood at places 209, 1,003, 1,098, 1,716, 1,722, 1,723, 1,730, 1,758, 1,936, 1,940, 1,947, 1,948 and 1,949. r4891dcfaf5, asked 13:17:17Z, had that one ask and nothing else, had run no job in 44 minutes, and stood at place 209; r67ab5ebbf2 (13:19:50Z) at 1,098 and r78185703e4 (13:34:50Z) at 1,722 the same. Ahead of them stand the test shards and policy checks of newer heads: the head asked at 14:00:08Z had its first queued ask at place 180. That fits what the line does with checks a head leaves to the next: they keep the place of the head that left them, while a head's own chain link gets the head's own place, behind all of it.So the chain's first link is a job that needs one core for one second and decides when everything after it may start. Whatever rule lets it go when it is asked would take about an hour off the median head today, for no core time. The order is yours; I am not changing it.
19:44Z 11-17 (production
2885a521), the same thing with no people's wave to blame. CI had started 2,061 jobs in the quarter hour before and was 0.7 h behind; nine heads were open and one was judged per quarter hour. From the jobs view at 19:44:19Z, what each open head still had:test/tilo-session-client(#74)test/tilo-fs,test/tilo-session-clientimage-ci-fast-smokeanddocs-examplesqueued at places 5 and 6source-date-ci-sdk,source-date-ci-fastat places 8 and 9,cloud-rystic-buildat 251source-date-ci-fastat place 264,cloud-rystic-buildat 291source-date-ci-fastat 295,cloud-rystic-buildat 306source-date-ci-fastat 307source-date-ci-fastat 309,cloud-rystic-buildat 312Four heads asked 5 to 22 minutes earlier had nothing left but their chain's first link, and it stood behind the bulk of a head asked one minute before the reading: 497, 699, 711 and 713 asks were ahead of the four
source-date-ci-fastasks at places 264 to 309, every one of them an ask of r921441d595. So the newest head's wave is served before older heads' last one-second job. Thirty-nine jobs were on the node, 9 of them CI's.Followed to 20:06Z. The five
source-date-ci-fastjobs started together between 19:47:55Z and 19:48:31Z, once the newest head's bulk had been handed out: 25.1, 25.4, 16.4, 12.3 and 8.7 minutes after they were asked, each then running 2 to 8 seconds. rf5388a7f75 was judged 35 minutes after it was asked, 25 of them before that job started; the two oldest heads were judged at 54 and 46 minutes, in the second theirtest/tilo-session-clientjob ended; four of the nine were still open.21:14Z 11-17: the chain's later link waits the same way. Each link of a head's image chain over the three hours to 21:14Z (
t.job_history, CI jobs that ended):So a head spends about a quarter of an hour waiting for one core twice, before and after the one link that does work. At 21:14Z twelve heads were open and CI was 1.1 h behind: five heads (18 to 39 minutes old) had nothing left but
image-ci-fast-smoke, two of them running it and three queued at places 1, 2 and 3 of the line, each "short by 1 core"; the three oldest (45 to 65 minutes) stood ontest/tilo-session-clientalone (#74). The node had 155 of 155 cores booked: people's 33 jobs used 89.9 cores and CI's 15 used 66.3 (20 s ofcpu.stat). A one-core job at the head of the line waited while another class held the slots, which is #97's rule meeting this chain.23:32Z 11-17: a restart closed 19 heads that stood on their chain alone
Your promote of
7710cc0drestarted production's server at 23:32:19Z. Seventeen head runs ended between 23:32:38Z and 23:32:40Z and two more by 23:33:32Z, each with its verdict, none with an error, none stopped. What ended in those 19 heads from the restart on (run_events):publish-ci-fastimage-ci-fast-smokecloud-rystic-buildsource-date-ci-fastimage-ci-fastpublish-ci-fasttest/tilo-workspace-hostNothing else was open in them. Each head's last other check had ended between 22:58:05Z and 23:28:50Z, so before the restart they had stood open 3.5 to 34.2 minutes (median 22.3; 6.2 head-hours together) on one to five chain checks that were asked, waited in the queue for room (the wave of this issue, with people holding the node, #97), and that a newer head had reached meanwhile.
Why the restart closed them and the newer head did not.
Run::superseded_now(src/runs/run.rs) answers the rule "ascis asked", and the sweep asks it of a head it plans (src/ci/sweep.rs:712). A check asked before a newer head reached it stays in the queue afterwards: nothing asks the rule of it again until its run is driven again, which the restart did for all of them at once.What it costs. No cores, they never started. But the head stays open and unjudged for as long as the queue holds its chain: 19 of the 23 heads open at 23:27Z were only this. It is in a wave, when the chain waits longest, that an older head's verdict waits for a place in the queue it will never use, and those asks stand in the queue before others.
Proposal, small; I will commission it unless you object. When a head reaches a publishing-only check (
Db::reachmoves the branch's mark for it), the older heads of the branch that have that check asked and not yet started are told superseded by the same rule and in the same words, and their asks leave the queue. The rule itself stays as it is: a newer head that merely exists still leaves nothing, and a check already started goes on.00:19Z 11-18: no head judged for 47 minutes; 43 of 52 open heads wait for the chain alone
Since the 19 heads the restart closed (23:32Z to 23:33Z) no head run has been judged: the goal line reads 0 judged in each quarter hour at 23:54Z, 00:00Z and 00:10Z, while 49 heads were asked in the hour to 00:13Z and CI's lag went from 0.4 h (22:58Z) to 1.6 h. No job erred; CI holds about a third of the node (46 to 67 cores, people the rest, #97).
For every open head run, its planned checks without a result (one statement over
run_eventsat 00:19Z, set against the jobs view of 00:15Z):What the 43 heads with at most five wait for, by check (heads):
cloud-rystic-build38,publish-ci-fast24,source-date-ci-fast23,image-ci-fast-smoke23,image-ci-fast23,test/tilo-session-client4,test/tilo-fs1,docs-site1. Of the 19 with exactly one, 15 wait forcloud-rystic-build. The chain's asked links (source-date-ci-fastin 23 heads,cloud-rystic-buildin 15) stand queued for room at places 1,420 to 1,474 of the queue (median 1,444), behind the newest head's test asks; the links behind them are not asked yet.Example: head run ra2c22e5105, asked 23:38:14Z, planned 1,303 checks; by 23:38:17Z 1,291 were left to a newer head, 10 had passed, one was skipped for a secret; it has stood open since on
cloud-rystic-buildalone.So tonight the verdict of 43 heads waits for a job of one core and a few seconds at the back of the queue, and each new head that arrives adds one more such head and pushes those places further back. This is both halves of this issue at once: the order (a head's last link behind a newer head's whole fan of tests), and the superseding told only when a run is driven.
I am commissioning the proposal above now rather than waiting longer for an objection: at a head's reach of a publishing-only check, the older heads' asked-and-not-started asks of that check are told superseded in the same words. Nothing lands before t's whole check set and the 250-run take-over test; an objection here stops it. The order itself stays yours.
A display fault seen on the way (separate, small): the jobs view still lists a head's checks that were left to a newer head as queued with no place: for ra2c22e5105 484 items at 00:15Z, 37 minutes after all of them were told skipped. The view's count of waiting asks (and "wait for None" in my readings: 6,178 at 00:15Z) is mostly that.
How that wait ended, read at 00:43Z. The queue drained down to the links: 15 head runs were judged between 00:24Z and 00:43Z, none with an error. Eleven of them ended in the second their own
cloud-rystic-buildpassed; nine of those eleven had run nothing else themselves or next to nothing (summaries of 1 to 12 passes) and had been open 3,169 to 3,610 seconds, 54 minutes at the median, for that one job. So the publishing step ran eleven times in ten minutes for eleven commits that newer heads had long reached, after each head had waited most of an hour for it. With the change being built those asks are told superseded when the newer head reaches the check: no wait and no job.00:52Z, the change as it is being built (forge branch
dev/superseded-at-reachwhen pushed; nothing landed). It reuses the heads-leave machinery, no new one:Runs::reachedis called whereRun::superseded_nowrecords a reach and finds this head the newest there; each older live head of the branch whose ask of the check waits unstarted takes it into itsleftmap under the lock that marks a check started (Live::reached_first), its drivers drop the waiting work as for any left check, and its drive tells it inleave's words. One point I sent back in review: the superseding head's ask must stand at the superseded head's place in line, asLive::leave_to_newerlifts every check it leaves. At the newest head's own place no head's link would ever start while heads arrive faster than the queue drains to them (tonight: 49 heads an hour, a link 54 minutes from the front), which is the 2026-10-27 failure your comment there records. So the link keeps the oldest waiting head's place, passes from head to head, and runs once, for the newest head that reached it.sched::orderitself is not touched.What the drained queue then ran, 00:20Z to 00:48Z (all runs, from
run_events). 44 head runs were judged in those 28 minutes, none with an error, none stopped. The chain's checks in that time:source-date-ci-fastcloud-rystic-buildimage-ci-fastimage-ci-fast-smokepublish-ci-fastSo the first links ran once per waiting head, 48 and 49 times, and the image was built 24 times in half an hour, for a chain of which three heads published. With the change the first links are told superseded while they wait, and the chain behind them is never asked in those heads.
A question your
af1953d0raises, yours to answer. It says a tag naming{commit}"is each head's own and always pushed", and keys such a check by the commit. The superseding rule does not look at tags: tonight it left 26 of 29publish-ci-fast(which pushessha-{commit}) superseded, as it has since 11-03. My change applies that same rule sooner and changes nothing about which heads it covers. If a commit's own tag must be pushed for every head, the rule needs an exemption for such checks, and then those heads' chains will go on standing in the queue; say so here and I will build the change to match.01:54Z 11-18: the change is on main,
84cb9365(not on production)It is the developer's
830a8252picked on yourd41aae82. What it does, as landed:Run::superseded_nowwithreaching),Runs::reachedleaves each older live head's waiting, unstarted ask of that check to it (Live::reached_first, under the lock that marks a check started), and the older run's drive tells it inleave's words; a dependent not yet asked ends through the existingleftbranch.Live::leave_to_newerlifts a left check, to the earliest place when one reach supersedes several (Live::liftkeeps the earlier). After your101797e8that place still orders it among runs; only its rank among jobs at that place is the new longest-first.run::drive's last pass).src/schedorsrc/node.Seven tests in
src/ci/tests.rs; the ones for the waiting ask, the three heads' place and the admission order are each red without their part of the change.Gates. The 250-run take-over test on the commit, from a clean tree on testing, before it landed: "a takeover over 250 open runs led in 16.2s; every one planned again 16.2s after it began, 250 live; peak memory 6225 MiB, the most resident 6233 MiB, 0 MiB above the 6233 MiB at the takeover" (570 s). Then t's whole check set on testing for the candidate on
d41aae82: green.My question about
{commit}tags is answered by yourd41aae82(a pass publishes as the run's effect, forward only; an older head's pass moves nothing a newer head moved): nothing to exempt.Promote. Main's head carries your
d41aae82too, which is on testing since about 01:27Z and not on production. I ship84cb9365to testing now (a fast-forward of your pin) and read it there. I will promote main's head myself once the forge run on it is green and testing has served it cleanly, not before 02:30Z and not within 45 minutes of another restart, unless you promote first; ifd41aae82is not ready for production, say so here or pin otherwise, I read both before I promote. After it: heads open on their chain alone, andcloud-rystic-buildandsource-date-ci-fastruns per hour, against tonight's 48 and 49 in half an hour.02:36Z 11-18: not promoted; I hold for your
3c246317. Main's head moved to your3c246317on top ofda23690a(this change and #63's) while my gate waited for the forge run, which your push cancelled; the gate promoted nothing. One restart should carry your scope change and these two, and yours is yours to prove and promote: when you promote main's head they ride with it. If production still servesab189001at 03:15Z and testing still servesda23690a, I promoteda23690aalone then (an ancestor of main), provided a forge run from 1563 on is green and nothing is said here. If you have moved testing to your head by then I do nothing.The measure to read after either promote, against production on
ab189001at 02:24Z: 8 of 13 open heads had nothing open but the chain, and in the hour before itimage-ci-fastpassed 30 times,source-date-ci-fast30,cloud-rystic-build28, whilepublish-ci-fastpassed 11 times and was superseded 12.03:44Z 11-18: live with your promote of
7d7c6593(03:29:31Z), and it does what it shouldIn the first fourteen minutes the server logged "superseded by a newer head that reached it" six times, the first at 03:34:26Z (run r02894e289f,
cloud-rystic-build), then 03:35:57Z, 03:36:11Z and, forsource-date-ci-fast, 03:41:10Z. The chain's checks ended since 03:30Z, all runs:cloud-rystic-buildsource-date-ci-fastimage-ci-fastimage-ci-fast-smokepublish-ci-fastAgainst the hour before on
ab189001(28, 30 and 30 passes of the first three, for 11 publishes), the first links now end told while they wait. Too short a window to give a rate, and your narrower heads change the count of chains too; I read a full hour next and whether a head still publishes in it. The order half of this issue stays open: the one link that remains waits at the oldest superseded head's place, which is the best the lift can give it.04:30Z 11-18: the first full hour on a build with the fix (
7d7c6593, 03:30Z to 04:30Z)30 head runs were asked in the hour and 27 were judged by 04:31Z, a median 11.2 minutes after they were asked (the longest 19.0). The chain's checks as their finished events tell them, all runs:
The server logged "superseded by a newer head that reached it" 54 times in the hour (3, 11, 12, 7, 8, 13 by ten minutes): a waiting check is told as the newer head reaches it and none waits for its own turn first. No head stood open on the chain alone. The hour before the fix had image-ci-fast pass 30 times, source-date-ci-fast 30, cloud-rystic-build 28 and publish-ci-fast 11. The narrower heads of
3c246317are on the same build, so the two changes are not told apart by these counts.What stays open is the order half: 13 images were built and 7 published. Six heads built an image and were then superseded at the publish, so an image a newer head publishes instead is still built for nothing. That is the queue order's to settle, not this fix's.
09:19Z 11-18 (production
d748ed8d): the order half after a stop of heads (issue 102). Nine heads a few checks short of a verdict stand behind the newest heads' bulk.After the 32-minute stop of issue 102 the heads came in a burst: two that planned 1,304 checks each (r45c892302c 08:41:46Z, r8a8a34ccf0 08:42:32Z) and seventeen more by 09:15Z. From 08:40Z to 09:20Z two heads were judged (r2769cea34e at 08:53Z after 2.4 minutes, rc59749b3cd at 09:17Z after 35.5), 18 are open and the priority check has CI 1.1 h behind, 0.6 h an hour before. Nothing is stuck: CI started 803 jobs in the 15 minutes to 09:13Z at a median wait of 115 s.
The line at 09:19:27Z (jobs view: CI 79 jobs running and 1,298 asks queued for room, each one core short; people 32 running, none queued; the spare tier 505 queued):
Six of the nine have at most four checks left, ordinary one-core tests (
test/tilo-quick-settings,test/tilo-session,test/tilo-net,test/tilo-session-client,test/tilo-image-policy-check); two of those six also wait for a runningrpms-source-x86_64.How I read it against
sched/order.rs(I did not trace each leave): the oldest run first holds for the two wide heads at the front. The 279 asks of heads asked 09:12Z to 09:15Z stand ahead of heads asked 08:53Z to 09:07Z because a check a head leaves to a newer one keeps the leaving head's place (Live::leave_to_newer,reached_first), so the newest heads' bulk stands at an older head's age while what an older head kept for itself stands at its own.What it costs here: about 640 asks ahead of a head's last check are 12 minutes at the rate CI had before 09:15Z (53 starts a minute) and more since people's wave came back at 09:15Z (people 49 to 75 cores, CI 73 to 86). The six heads with at most four checks left need 12 one-core jobs between them; standing first they would be judged a queue's length earlier and the count of open heads would fall by a third. Data for the order, which is yours. I change nothing here. I read at 09:44Z how the nine ended and add it.
09:44Z 11-18: the nine, 25 minutes on. None of the nine was judged. Four other heads were between 09:17Z and 09:44Z: rc59749b3cd after 35.5 minutes, rd01c49db3e after 10.3, rc8456a61c8 after 50.0 and r679ede4e1f, the last head before the stop, after 90.1.
test/tilo-quick-settingsqueued, one ask aheadtest/tilo-netqueued, three asks ahead;test/click-test-clientrunningrpms-source-x86_64and four tests runningrpms-source-x86_64runningtest/tilo-image-policy-checkqueued, 11 asks aheadThe 25 minutes are not the order's alone: from 09:26Z to 09:38Z a people's wave left CI's group 8 to 36 cores (issue 97's last section), and at 09:29Z the asks ahead of these last checks had grown from about 640 to about 1,120. What the order adds is that the heads nearest a verdict waited through all of it behind heads asked after them.
10:20Z 11-18: how the nine ended. Seven were judged between 09:49Z and 10:00Z, 48 to 60 minutes after they were asked: r05609b08eb 50.4, rf214b08e82 55.7, r394bb3b245 51.5, rae015f4e88 54.1, r3533775b0f 50.6, rd2d7a70432 48.3, rfc58a070e5 59.9. Two are still open after 81 and 76 minutes, r9a5bcb439d and r288707e8a8, each on one running
test-x86_64/tilo-agent-sessionjob (set up 09:23:59Z and 09:50:21Z; that check's failing CI jobs run up to 64 minutes today), which is tilo's test and not the order's. For comparison, the heads asked from 10:00Z on, with the line short again, were judged after 4.1 to 19.5 minutes (seven heads, 535 to 784 checks planned).14:33Z 11-18 (production
d748ed8d): checks that run for seconds waited 52 to 58 minutes, and two heads' verdicts waited with them.No stop and no promote this time: an ordinary wave of people's jobs from 13:20Z to 13:47Z (issue 97) and the queue it left. Two heads, from
ci_runsandjob_history:The jobs they ended on:
policy/interfacespolicy/app-window-inputs-contractpolicy/app-resource-action-contractpolicy/formatspolicy/loop-never-blockspolicy/unit/lock_updatehakarisource-date-ci-sdksuite-workspace-releasedocs-reference-binsEleven jobs of r7caa3e2893 that were asked in its first three seconds started between 14:28:12Z and 14:29:19Z. They need nothing the head builds, take one core each and ran about eight minutes together. At 14:29Z the six of r1ac2ebc872 stood at places 71 to 232 with 98 asks ahead, 70 of them of ra3c153d500, a head asked two minutes after it.
How the rule gets there, as I read
sched/order.rs: within a run the longest job goes first and the short ones fill in around it, so a run's shortest jobs are its last in line; across runs, asks a newer head was left stand at an older head's place. On a full node both put a head's one-core, seconds-long jobs behind everything else, and the head is judged when the line is empty, not when its work is done. These two heads had done their work within minutes and waited most of an hour for the line.Either of two rules would have judged them some fifty minutes earlier for a few core-minutes: a run's jobs that take one core for seconds start as they are asked, or the jobs that finish a head go before those that do not. The order is yours; this is what it cost today. The reading is a statement per run on
job_history(asked, started and ended of its jobs that ended in the last minutes before its verdict).