runs/ci: a promote with head runs open ends them: left_along's read times out for every run driven again (34 heads, 1,009 checks told error, 06:31Z 11-17) #95
Open
opened 2026-11-17 06:39:49 +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#95
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?
What happened
The promote of
f9cb88e3at 06:30:31Z on 11-17 ended 34 open head runs with errors. The new server led epoch 596 from 06:30:39Z. Every head run it drove again askedDb::left_along(src/db/commits.rs, called atsrc/runs/run.rs:1100, from8d736d69"ci: a head's left checks keep their place in line across a takeover"). Its second statementwas cancelled at the 30 s statement timeout 34 times between 06:31:18Z and 06:31:26Z (the database's log). The server logged 40 answers of it over 30 s, and for each of the 34 runs
Each run was then finished: 1,009 open checks told
errorwith "db error: ERROR: canceling statement due to statement timeout", 2 toldfail. 34 jobs found open were given up ("a job found open was dropped before its run took it over"):image-ci-fast,relay-upgrade,cloud-rystic-build,docs-examplesand twotest/tilo-session-clientshards, 27 of them cancelled on the node. All 34 areci:tiloheads asked 05:07Z to 06:28Z; one had 859 checks open. Open heads fell from 40 to 7 in a minute.Why now
a98a041dhas the same statement. At its start (03:29Z) the server logged 13 slow answers of it and none was cancelled.commit_keysholds 12.9 M rows in 5.1 GB behind one index for this join, its key(sha, check_id, tests). The first page asks 64 commits, each against every check the run still has open (up to 1,293), for every run driven again, all at once on the database's two cores. With 40 runs open it crossed the timeout.What is missing
left_along(…).await?inside the drive. Its answer feedslive.liftalone: the place in line the left checks stand at. Without it the run is correct and only stands at its own place. An error there must be a warning.openonly shrinks: the head right before the run usually ran almost every check, so after it few checks are still open. The first statement nevertheless asks 64 commits at the full list.What I am doing
I am having both fixed in two commits so either can be dropped: the call made a warning, and the first read asking the nearest heads before a whole page. Landed only through the whole check set and the 250-run take-over test. Say here if you would rather take either.
Until one of them is on production, a promote with head runs open will do this again.
Evidence kept: the new server's log, the database's log of those minutes, the list of the 34 runs.
06:40Z: the plan and the rows it reads
EXPLAINof the statement's shape on production: a nested loop over the page's commits intoIndex Scan using commit_keys_pkey … Index Cond: ((sha = h.sha) AND (check_id = ANY (…)) AND (tests = '{}')), Filter: idle, then the join filter on the run'snamedlist. So one page is 64 commits times every check still open, each a probe of the key.The chain does not end early under load: the newest commit has 1,826 key rows of which 502 are counted left, and over the newest 64 commits 78,773 of 116,881 rows are counted left (67%). Heads leave most of their checks to the next, so
openstays large for many heads back and the walk takes page after page at nearly the full list. Asking the nearest heads first would therefore not bound it; I am leaving the read itself to you and not touchingsrc/db/commits.rs.What I am having done (one commit,
dev/left-along-optional): the read runs as one of the run's tasks beside its drive,live.liftis called when it answers (the loop already stands the lifts again onlifted.changed()), and a read that fails is a warning that leaves the checks at the run's own place. The run no longer waits for it and can no longer end by it. The load of 40 such reads at once on two cores stays until the read is bounded.08:26Z 11-17: the call is fixed on main,
8334f739(not on production)One commit on
628c4681(the developer's96da1e4e). Insrc/runs/run.rsthe read is a future polled in the drive's ownselect!loop beside its tasks, not before them and not one of them (the loop ends only when the tasks are done, so as a task a read still going would have held the run's end): the checks start at once,live.liftis called when the read answers and the loop'slifted.changed()stands the lifts again, the drive's end drops a read still going, and a read that fails is one warning ("reading what older heads left the run: the checks they left stand at its own place in line"). Nothing undersrc/dbis changed.Test:
ci::tests::a_head_driven_again_whose_read_of_what_older_heads_left_fails_still_ends_with_its_checks_verdicts. It makes the read fail for one head (the older head's run row loses its priority, so the row does not decode) and takes the lead over: both checks pass and the run ends with 2 passed, 0 errors. Without the change both checks are toldError, as on production.Gate: testing was down (it exits on
drawunder the pin off9cb88e3since 07:07Z), so the forge workflow on the candidate was the gate: run 1533, test, fmt and clippy success. Not run yet: t's own check set on testing and the 250-run take-over test; both before any promote of mine.Open here: the read's cost (40 to 70 heads each walking
commit_keysat once on two cores still loads the database for up to 30 s at every takeover, and the left checks stand at their run's own place until it answers), which is yours.09:00Z 11-17: t's own CI on the fix
Testing serves
ea02d47bsince 08:52Z (your ship). t's own run for it, rdf7a0d8fbf, ended 15 passed, 0 errors at 08:59:59Z,test/tand the three clippy checks among them: the first verdict of t's own CI on 8334f739's change. The 250-run take-over test on the tree at8334f739started 09:00:28Z on testing; its figures follow here.09:12Z 11-17: the 250-run take-over test on
8334f739drivers::cargo::tests_prod::two_hundred_and_fifty_tilo_sized_runs_resumed_at_a_takeover, asked from a clean tree at8334f739as an ad hoc cargo command on testing: pass in 562.7 s.8334f739The same test on
e61b411dthis morning: lead 17.6 s, 0 MiB above the takeover's peak, 250,250 told, none twice. So the read beside the drive costs the takeover nothing at this size.With t's check set green on
ea02d47b(rdf7a0d8fbf) this is everything I owed for the change. It is on testing in yourea02d47band reaches production with the next promote of what testing pins; I am not promoting your head myself. After that promote I read the new server's log: "driving the run:" should be 0, and each read that times out one warning.09:45Z 11-17: the same restart with the fix on production
Your promote of
c6a21463(server pod started 09:43:14Z, leading epoch 598 at 09:43:22Z, 102 jobs re-attached) against the promote off9cb88e3at 06:30Z:f9cb88e3c6a21463left_alongstatements the database cancelled at 30 serrorwith the statement's wordsThe three head runs that finished in the first five minutes ended with 0 errors each. So the first half of what was missing here is closed: the read can no longer end a run.
The second half is open and yours: the statement was answered late 77 times at this start, up to 30.4 s, from 09:44:06Z to 09:44:47Z, and 47 of them were cancelled, with a
blob_refsread and atest_flakesdelete beside them as at 06:31Z. For those 47 heads the checks older heads left them stand at their own place in line, so across a takeover under load8d736d69keeps no place; and the database's two cores are taken for half a minute at every start. I leave the issue open for that.10:16Z 11-17, the fault came back with a rollback. Production was pinned back to
f9cb88e3(infra 521d3e7f), a build without8334f739. Its start at 10:16:20Z (epoch 599) cancelled 48 statements at the timeout and ended 47 runs at 10:17:03Z with "driving the run: db error: ERROR: canceling statement due to statement timeout". The start ofc6a21463at 09:43Z, with the fix, cancelled 47 and ended none. Any start of a build before8334f739ends the open head runs driven again while this read stays over 30 s.11:21Z 11-17, forward again and clean. Production was promoted to
eae869f7(epoch 600 at 11:21:15Z). Its start cancelled 33 statements at the timeout, wrote 29 of the fix's warnings and ended no run; the worker went from node protocol 77 to 80 and re-attached 109 jobs. Three starts today, side by side:8334f739c6a21463f9cb88e3eae869f7The 47 head runs ended at 10:17Z stand finished with 79 checks told
error, and their commits were not asked again. The read itself still passes 30 s at every start, which is what this issue stays open for.