The compile cache handed four jobs a crate file their dependents were not built against (E0463, E0460), 21:54-21:58Z 11-13 #63
Open
opened 2026-11-13 22:20:47 +00:00 by xemmerling
·
1 comment
No Branch/Tag specified
main
sched/probe-floor
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
2 participants
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#63
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?
Production,
9faf6c61(the build before your 22:08Z promote). The wrapper, slot and placement files named below are unchanged in6ebaa239, so this stands for the build production runs now. Nothing was changed on production; no code of mine is in flight.What happened. No job had ended this way in the 5 h 20 min since the 16:32Z restart. Then four people's jobs ended
cache_unreachablewithin three minutes, 21:54:49 to 21:57:51Z 11-13:cargo build -p tilo-web-desktopfor wasm (started 21:49:32): E0463, can't find cratetilo_delivery_protocol(the.rmetacargo handed it, 627071 bytes as the compile started and now).runtime_collab(9820695 bytes, both times).tilo_davwhichcloud_source_davdepends on".package_store(1032246 bytes, both times).The last three are one session's checks, running together; the first is another person's. All were run again on the same node. All four passed (the last at 22:18:06Z). So the files were wrong for a moment, not for the inputs.
What else was true then. A wave of 86 people's jobs started within ten minutes. The node's free disk fell from 1,203 to 664 GiB and reached its floor at 22:05Z; the freer made one large pass at 21:52:32 to 21:53:20Z. Kept memory passed the offer in 21 of 120 samples of the half hour (highest 117%), and
t_sched_grow_totalrose from about 25 to 67 and then 125 per ten minutes. No job ended for memory.What I read in the code (verified by me).
Handed::ofandfile). A file replaced by another of the same size, or emptied and rewritten, reads the same as an untouched one. That is why these four lines cannot tell us what happened.Request::Again(wrapper/slot.rs, the loop in the slot's run). Where a process of the slot was killed for memory (hit_its_limit:oom_kill > 0, src/node/slots.rs), the compile runs again in a new slot and writes its outputs again, while dependents compiled against the first outputs may already be running.unplace, src/node/daemon/place.rs), not the inode it placed.What a second reader concluded (a read-only pass over
9faf6c61; I have not verified each citation). The freer, flattening a session's build and hardlinks are ruled out as long as holds are kept (snapshots.rs:830-873, made.rs:353-358, daemon/place.rs:41 and 125-138, depth.rs:142-163, cas/copy.rs:108-131). The best fit is the path where one job compiles a crate and others join it: a joiner gets the holder's.rmetaearly and announces it to cargo (daemon/lookup.rs:178-182, 254-280) and the final entry later (189-196). Point 2 above then explains the E0460. The three E0463 are NOT explained for container jobs: by 632265aa's findings E0463 means rustc found the handed file empty, and the only path found that makes a handed name absent isunplacefollowed by the retry after a freer pass (conn.rs:233-241).What cannot be had any more. The four jobs' directories are gone from the node, the worker's log of those minutes has rotated, and no counter says how often a slot's compile ran again or a placement was undone.
Proposed, in this order.
/target, once announced to cargo, never changes or disappears while that job runs. A compile that passed is not run again over its own outputs; a failed placement removes only what it placed.Slots and the wrapper's slot loop are yours, so I commission nothing for 2 without your word. I would take 1, but I cannot land anything with a whole check set while t's test checks are refused on testing (issue #62).
A fifth job, with no disk squeeze (08:11Z 11-14, on
67588367)testdriver job of run rb1e0d46e95, 08:01:42Z to 08:11:22Z. It endederror. The check ran again at 08:14:27Z and passed.cache_unreachablein the last 40 hours: seven. Two are another fault: j546-36793 (22:37Z 11-12) and j546-56152 (01:30Z 11-13) were people's ad-hoccargo build --release --locked --target-dir …commands, the case of issue #50. The other five are this fault: the four of 21:54Z to 21:57Z 11-13 and j566-78417 today. All seven were people's jobs.I am taking step 1 of the proposal now, as testing runs whole check sets again: the refusal will keep each handed file's device, inode and times from the one
metadatacall it already makes as the compile starts, read them again on the refusal path only, say which of the three cases it is, and give the file's content hash as it is then. Nothing is added to a compile that passes. Step 2 stays yours.Step 1 is on main:
6c438411(08:26Z 11-14)metadatacall it already made as the compile starts. Nothing is hashed there and a passing compile does nothing new.…, 25 bytes as the compile started, 25 bytes now; the same file, unchanged since the compile started (inode N, modified T, changed T); content blake3 <hex>…; another file now (inode A as the compile started, inode B now); content blake3 <hex>…; the same file rewritten since the compile started (inode N; modified T1, changed T1 as it started, modified T2, changed T2 now); content blake3 <hex>…cargo handed it" and ends with the compiler's own diagnostic.6c438411. The next refusal after that names its case, and the hash can be set beside what the node placed at that path.Seen beside it and not changed:
slot.rsnear line 92 names only E0463 where E0786 and E0460 are refused too; the refusal describes the first--externof a crate name if cargo passes a name twice.6c438411is proven on testing with jobs running. It was deployed overfe81dd07while 13 jobs with courses ran, the worker re-attached all 13, and the check set under it passed 8 of 8. Nothing more is needed from my side before a promote that carries it.c6dca088, which carries6c438411. From now a refusal on production names its case and gives the file's hash.2026-11-14 13:11Z: the first refusal since the message names its case (
6c438411)One job, a person's
test-x86_64build (j569-84627, run r03012839c3), endederror/cache_unreachableafter 14.8 minutes. The server's line, whole:099a17b6928644e1starts; the worker takes that build in placeWhat it settles for this case, of the three the message can say:
-b21b2c5ab298d9c9) and other contents than the dependent's metadata names.Two things about the moment, stated as facts and not as a cause:
928644e1changes which units a command that names packages builds (the family's unify member beside them).I follow the server's log for the next one, so the worker's lines can be read before they turn over.
13:26Z: what the cache holds for it
pool, compile, pass, never used, different key0 and key1, one read set. So the job compiled this file itself and stored it; nothing placed it. Unit: packagetilolang-tilo, lib, mode build, features["record"], opt-level 0.-C metadata.--extern tilolang_tilo=that file and rustc said E0463 for that crate itself, not for one it depends on. A 64 MB file that was unchanged, that the same job had just compiled and that the cache took as a passing output, was not a crate rustc would take under that name.test-x86_64build of a person's run;t logfinds no check of that name in the run, and neitherresult_latestnorrun_eventsholds anything for it in that minute.13:29Z: the stored file itself
I read the refused content in the server's store (
/var/lib/t/cas/82/41151e…, read-only) beside a sibling stored two minutes later under the same file name.tilolang_tilo-b21b2c5ab298d9c9.tilolang_tilo.f209eaf4f70eda4a-cgu.NN.rcgu.oin both),lib.rmeta(6,654,144 and 6,651,352 bytes, written by rustc 1.97.1 (8bab26f4f 2026-07-14)),lib.rmeta-link, objects.-C metadataand not another compiler's.tilolang_tilo: another build of it reached through a different dependency, or a metadata file of another build beside it. rustc gave no note, and nothing kept says which crate was compiling.I am having the wrapper's message extended, in
crates/t-cache/src/cargo/wrapper/run.rsonly: it will name the crate being compiled and say what the refused file's head is. That is my message from6c438411; it changes nothing about what is refused.13:39Z: the message says more, on main
b6f0e4df: a refusal now begins with the crate being compiled (from--crate-name) and adds, after the blake3, what the refused file's head is: an archive and its first member, a thin archive, a metadata file, other bytes, empty, or unreadable. The head is read only on a refusal, at most 4 KiB. t's whole check set passed for it on testing. Not on production yet: the wrapper is a file a promote swaps on the node, so I prove an upgrade with running jobs on testing first.13:58Z:
b6f0e4dfis proven; it goes with the next promoteb6f0e4df: the forge's run in all three jobs, and t's own run on testing 15 of 15.928644e1,b6f0e4dfwas deployed with 15 job directories on the node, and the worker re-attached 13 jobs with none lost, no "missing field", no error. One test failed in that run, the wave test of #72 at its line 307.2026-11-14 15:22Z: a second one, in a CI job, and what the plain E0463 means
15:00:45Z, 2.7 minutes after the 14:58Z promote: job j570-54944, check
testof head seq 54,142, started 14:47:01Z under928644e1(so the old wrapper's message):The file is the output of one cache entry stored 14:59:10Z by another job (key1 fe2bfde5…2487, lib
mail, pass) and was placed here 57 s later. Its bytes are a valid metadata file of cratemail, rustc 1.97.1, right triple, not a proc macro, extra filename-8feb28f16cbb8e36.The file named in these refusals is the wrong file to look at. In rustc 1.97.1 a crate handed by path gives the plain "can't find crate for
x" (no "which … depends on") fromintern_stable_crate_id(creader.rs:221,CrateError::NotFound): an earlier, silent load ofxduring import resolution reserved its crate number and then failed on one of the cratesxdepends on; the reporting lookup that follows meets the reserved number. Reproduced locally with four tiny crates (z, q on z, mail on q, z rebuilt under the same name, a dependent handed mail's untouched.rmeta): withuse mail::m;the compiler says exactlyE0463 can't find crate formail``; withmailused only in an expression it says E0460 "found possibly newer version of cratezwhichmaildepends on".So the plain E0463s (13:11Z
tilolang_tilo, 15:00Zmail, three on 11-13) and the E0460 of 11-13 are one fault: in the job's deps directory a crate below the named one is of another build than its dependents were compiled against. The named file being whole and unchanged is consistent with that.Both of today's came minutes after a promote, in jobs that started before it and ran across the worker's upgrade. The earlier five did not.
Next, in my file (
wrapper/run.rs): on this refusal run the failing command once more withRUSTC_LOG=rustc_metadata=info, bounded, and put the loader'sRejecting via hashline (crate, file, expected and found hash) into the message, so the next one names the crate that is of another build. A diagnostic, to go once the cause is fixed. The open question stays how the other build gets there; the joined compile's early metadata followed by another compile's outputs, after a restart ended the holder's claim, is the candidate I would read first.2026-11-14 15:39Z: the second ask is on main
b77a95edandb1b11710(crates/t-cache/src/cargo/wrapper/run.rsonly; whole check set on testing green, run r3e0935d7fa). On the plain E0463 of a handed crate whose file is there and not empty, the wrapper runs the same compile once more withRUSTC_LOG=rustc_metadata=info(one attempt, at most 20 s and 16 MiB of stderr, then killed and reaped) and the refusal ends with what the loader rejected, for example:or "the compiler took the crate" (a state of the moment), "named no rejection", or "could not ask the compiler again". Every other refusal is told as before, and no passing or ordinarily failing compile runs anything more. Not on production yet; the upgrade proof with running jobs is running on testing. It is a diagnostic: it goes once the cause is fixed.
15:57Z:
b1b11710is green on the forge and on testing (r3de76448cc), and a worker upgraded from4d2ee46fto it on testing at 15:53:44Z re-attached its 14 running jobs; the run they belonged to (r1ce87b9095) ended 8 of 8 with 39 jobs passed and none lost. It can ride with the next promote.2026-11-14 17:00Z: a third one, 8 minutes after the 16:46Z promote; three restarts of four today
test-x86_64tilolang_tilo(.rlib)testmail(.rmeta)testbackups(.rlib)Every one is in a job that started before a promote and ran across the worker's upgrade; every refused file is whole and unchanged. The 16:54Z line (old wrapper, so no second ask yet):
By what the plain E0463 means (above), a crate below the refused one was another build when the dependent compiled, minutes after the restart, than when the refused crate compiled, just before it. So something replaces a crate file in a running job's deps directory across a restart.
What the worker's log shows for j572-93547 after the restart (worker re-attached 16:46:44.97Z, 60 jobs): two compiles started at 16:46:46 and 16:46:51, one of 66 s and one of 459 s (5.5 GB peak, 678 CPU seconds); when the long one ended at 16:54:25 nineteen compiles of 0.1 to 0.3 s followed within two seconds, the refused one among them. The 15:00Z job has the same mark: its two long compiles started 19 s after that restart's re-attach. Across all jobs 352 compile slots started in the 40 s after the 16:46Z re-attach.
A lead I have not shown: before the restart the job's compile of that unit was joined to another job's, the holder's metadata was placed and announced (
take_metadata), and dependents compiled against it; the restart ended the claim, the wrapper asked again, found no holder (join:Watched::Free, thenFound::Run) and compiled the unit itself, writing other metadata over the announced file. What it lacks is why two builds under one key would differ.slots.againis not it: it answers nothing for a slot the new daemon does not know.From 16:46Z the wrapper asks the compiler again on such a refusal, so the next one in a job started after that names the crate below, its files and both hashes.
18:42Z, the one comparison I can make: I hold the worker's log across two restarts. Compile slots that started within 40 s of the worker's re-attach: at 16:46Z (a refusal followed) 728 in 11 jobs, four of them 120 s or longer, in two jobs: the refused job's 459 s compile and three in j572-92948 (201, 175 and 127 s; that job: j572-92948 | test | ci | pass | - | 16:39:46 | 16:57:35); at 17:09Z (no refusal followed) 158 in 12 jobs and none of 120 s or longer. Also checked and empty: the read sets stored with the refused
mailandbackupsentries name sources only (96 and 18.rsfiles, no crate file of the deps directory), so crates below enter a key only through the bytes of the directly handed files; and neitherentriesnorentries_logholds two builds of one key to compare (one put a key, and no key under both trusts for these crates in twelve hours).2026-11-15 23:14Z: one more, 17.5 hours after the last restart, and the second ask names no hash
Since the table above:
cargo build -p agent --releasetilo_agent(.rlib)So four restarts in a row brought none, and this one came with no restart near it: production
1b22804f, the node fully busy (people's jobs on 136 of 154 cores in that minute), no squeeze on the disk (1,230 GiB free).The ending, from the server's log (saved, with the worker's log of the job):
What it shows and what it does not:
is_proc_macro = false, turns the.soaway, then loads it as a proc macro.a24aac0cleaves out the other direction ("expected true got false") only. So the second ask names no rejection by hash: no other build of a crate below was turned away when the compiler was asked again a moment later. That is new against the three of 11-14, which the message could not yet read.found=false, a release build with nothing in the cache, so every file in its/targetwas written by this job. The library's own compile ended 22:57:13.19Z (30 s). A 591 s compile with a peak of 9.6 GB ended 23:13:52.34Z after waiting 444 s for its slot. The failing unit, the package's bin with the same crate name, ran 0.83 s and ended 23:13:54.68Z.Open, and how I go on: the check's log (t ran the erred check again; a step of mine saves the log when that run ends) should say whether the second ask loaded the crate, which would make the first failure a passing one in the job's own directory, not a wrong file. And the message needs one more cut, mine to make: leave out "expected false got true" as well, and say "named no rejection" when nothing is left.
23:35Z, the same check run again. t ran the erred check once more in the same run (raf5099ab0c): job j578-26180 passed,
Finished release profile … in 19m 53s, 961 of its 1,915 compiles from the cache (the 953 the refused job had stored among them) and 953 stored. So the inputs and the cache's entries were sound, and the failure belonged to the first job's own directory at that moment, as on 11-14 at 13:11Z and 16:54Z.02:05:54Z 11-16: once more, 55 minutes after a restart, in a job that ran alone in its files. Production
8bd4b1f2(server and worker pod both new since 01:10Z and 01:14Z).test/tilo-session-client, people's (run re2221ab15e, quinten), width 6, launched 02:00:27Ztilo_session_client:can't find crate for tilo_session_core, plain E0463/target/debug/deps/libtilo_session_core-4ff9ae93bdf04e61.rlib, 11,049,382 bytes, same inode, modified and changed 02:00:37.7Z, unchanged since the compile startedvia proc macro: expected false got true: no rejection by hash, as at 23:13Zcache_unreachable; t asked the check again (j580-8070), the asker stopped the run a minute laterWhat the worker's log adds (saved,
refused-0205-worker.log): the job ran eight compiles of its own, allfound=false. Seven were short. One took 246.6 s with four tokens and a peak of 6.3 GB, after waiting 65 s for its slot, and ended 02:05:48.45Z. The two compiles that failed started about 02:05:51Z and ended 02:05:54.2Z after 3.2 s each. So the picture is the same as at 23:13Z on 11-15 (a 591 s compile with a 9.6 GB peak ended 3 s before the refusal): both times the refused compile started within three seconds of the end of a multi-gigabyte, minutes-long compile in the same job, and the crate file it could not find had been lying there unchanged for minutes. The file was in place before any compile of this job started (02:00:37.7Z is the second its first slot began), so it came with the build directory or a placement, not from the long compile.What I could not read: which crate the long compile was, and what cargo printed. The job's directory was gone six minutes after its end, the stopped run's check answers
cancelledwith no log, and the slot lines'unitis notsha256(ident)oft.entries. From now a step of mine (refusal-capture.sh) follows the server's log and copies the job'sout.stderr,compile-readsandobservedand both pods' logs in the second the line appears.Six jobs ended
cache_unreachablein 48 hours: four on 11-14 (08:11Z, 13:11Z, 15:00Z, 16:54Z), 23:13Z on 11-15 and this one.03:00Z 11-16: what the code says about the seconds after a compile (read on main
8d2d89b1), and one thing both cases share.Both saved worker logs hold exactly one line
moving a wrapper out of its slot: write <pid> to …/own/cgroup.procs: No such process, and both times it is the refused job's, in the 10 ms after the refused compile's slot ended (23:13:54.687Z on 11-15, 02:05:54.219Z today). Read in the code it is a result, not a cause: a wrapper that refuses leaves withoutDone(slot.rs:111-113,compile.rs:81,entry.rs:152), andrelease()then writes a pid that is gone (slots.rs:1598-1605). The check that should skip that error never matches, becausewrite_existingwraps it throughnamed()and the wrapped error carries no OS error number (cgroup.rs:229-235, 1557-1560). Small, mine to fix with the message's cut.What touches a job's target directory, by the code:
store()reads and stats the outputs, the node'sputcopies or clones them into its store and leaves the job's files alone (put.rs:103-212,cas/put.rs:363-415), and nothing works on them after the wrapper has returned to cargo./target/.t-placingand renamed over the destination (cas/place.rs:213-219): old file or new, never none. Only the asking unit's own outputs are placed.cgroup.rs:791-818), and a slot's end kills nothing (cgroup.rs:1142).daemon/place.rs:102-105, 367-373). If that unit's.rmetahad been announced before (lookup.rs:254-274), dependents cargo started on it can lose the file. It concerns the failing unit's own outputs only, and I cannot tie it to either job.So the long compile's end is not, by the code, a moment when files move. What stays unexplained is why a compile fails at the first ask and names no rejection at the second, three seconds after such a compile, twice. The next capture (
refusal-capture.sh, armed since 02:16Z) should give cargo's output and the job's compile reads, which say which crate the long compile was and whether its metadata had come from another job's claim while this job waited 65 s in that claim's line before compiling it itself.03:05Z 11-16: what the long compile before each refusal has in common: it had waited on another job's claim, then compiled the unit itself.
The slot line's
waited_mscounts the time a compile stood on another job's claim (conn.waited,node/daemon/lookup.rsjoin),queued_msthe time for its slot. In the two saved worker logs, 6,142 slot lines, three compiles ran themselves (found=false) after standing 5 s or more on a claim:cargo build -p agent --release, peopletest, CItest/tilo-session-client, peopleSo both refusals follow such a compile, and two of the three such compiles are followed by a refusal. In today's case the holder was j580-7471 (the same unit, 275 s, ended 02:02:26Z); the waiter left its line at 02:01:42Z, 44 s before the holder ended, and compiled the unit itself.
What the code rules out: a waiter does not take a holder's metadata on the first key alone.
Claims::watchedhands a holder's step only to a watch whose own keys hold the step'skey1(jobs/claims.rs,if keys.contains(&step.key1())), and tells the others the holder's read set instead. So a waiter whose files differ is told the read set, finds its key differs and compiles itself, which is what the 65 s and the 444 s look like.What is open: why the unit's dependents then fail at the first ask. The dependents that were already in the job's directory (today
tilo_session_core, in place since the job's first second) were not rewritten after the waiter's own compile, so either they do not depend on that unit or their re-ask was a hit on the same bytes (a placement leaves a file with the same hash alone,daemon/place.rs:293-305). The capture step should show, from the job's compile reads, which unit the long compile was and what each dependent was keyed on.08:25Z 11-16: the two cuts are on main (
0dd1b888,95b08710), not on production yetcrates/t-cache/src/cargo/wrapper/run.rs,rejected):Rejecting via proc macro: expected false got trueis left out as the other proc-macro line is. Both refusals with the diagnostic on (23:13:55Z on 11-15, 02:05:54Z today) listed six of them and nothing else; from the build that carries this such a refusal ends "the compiler named no rejection", or "took the crate".src/node/cgroup.rs,src/node/slots.rs):cgroup::move_processmoves a process into a cgroup and answers a process gone meanwhile (ESRCH) apart from an error;Slots::releaseand the node's start use it.write_existingnames its error throughnamed, which keeps no error number, so the skip inreleasenever matched and each refusal was followed by "moving a wrapper out of its slot: … No such process". That line was a result of the refusal, never a cause.The cause of the refusals themselves is as open as above: no refusal since 02:05:54Z, and the capture step is still armed.
16:45Z 11-17: a fourth refusal, and what the times and the cache's rows show
Job j603-10955 (a person's
test-x86_64/tilo-agent-session, run r8ebab3caf5, productionf5147065, two hours after its start, 1,283 GB of disk free: no squeeze) endederror | cache_unreachableat 16:45:17Z: compiling crateit, E0463 fortilo_agent; asked again, the loader rejectedtilo_uifor three dependents (tilo_app,tilo_desktop_surface,tilo_feedback_transport) "via hash: expected 8471a484… got 55bb4d27…" inlibtilo_ui-f4f1add1974eae79.rmetaand.rlib.In order (the worker's slot lines,
t.entries,t.job_history):waited_ms=99948 queued_ms=5)libtilo_app-1195715b7692414d, key0 7f4e66a94cc3494c, key1 1c2d0610…); j603-10955, of the same key0 and another key1, compiles tilo_app itselfitstarts compiling; refused at 16:45:16Reading. Both tilo_app entries have one key0, so both were compiled against the same tilo_ui metadata: the holder's, which the claim handed to the job in line (
Reply::Metadata: the node places it,src/node/daemon/lookup.rs:286-304; the wrapper announces it to cargo,crates/t-cache/src/cargo/wrapper/conn.rs:111-114). The holder never finished. ToldRun(find.rs:365), the job compiled tilo_ui itself and its compiler wrote other metadata over the one its dependents were built on (55bb4d27 where they expect 8471a484). What E0463 names (tilo_agent) is not the crate at fault.Not explained. Why the job's own compile gives another hash than the holder's. A metadata step goes only to a waiter whose keys hold the step's key1, so by the keys both compiled the same inputs: either the compile is not reproducible, or the two differ in something the key does not hold. What the cache shows: in 24 h it kept one key1 of tilo-ui and two of tilo-app under two trusts (two compiles of identical keyed inputs), and all three pairs have identical output files. The two runs do differ somewhere: tilo_app's key1 differs between them.
The old signature is not enough. On 11-17 (00:00 to 16:55Z) 801 of 801,058 slot lines are compiles that stood 5 s or more on another job's claim and then ran themselves; one job was refused. It takes all three: metadata taken from the holder, the holder gone before its library, and other metadata from the job's own compile.
Next (one log line, no change on the wire, nothing a job does changes). Where the node places a holder's metadata for a job in line (
Inner::take_metadata,src/node/daemon/lookup.rs) it now says so, with the waiting job, the holder's node, the file's name and content hash, the waiter's key0 and the step's key1: landed on main as9d09529fat 17:14:13Z (whole check set on testing green, run rab329f8271: 8 passed, 0 failed, 0 errors). It is live on production since the 18:30:03Z promote of2885a521: sixteen such lines in the first ninety seconds after the worker re-attached, so a holder's metadata is handed to jobs in line all the time and nearly always ends well. At the next case the line gives the holder's metadata hash and key1;t.entriesgives the key1 and the metadata hash the waiter's own compile stored. The same key1 with another hash is a compile that is not reproducible; another key1 is a step handed under a key that does not describe the waiter's compile. I propose no fix before that. To weigh then: end such a job at the long compile's end under this as its named cause (it cannot pass, and today it runs on to a misleading E0463), or let a cancelled holder finish a compile others took metadata from.t ran the check again in the same run (j603-12636). The capture step copied nothing: the job's directory was gone within seconds of its end.
18:46Z 11-17:
c0f2a058on main (yours) takes the first of the two ways I listed, and carries the diagnostic with it. The node keeps what a job announced from another job's claim and ends the job at the compile that writes other metadata over it, asmetadata_replaced, with both hashes and both key1s, and the check is asked again. Once it is on production the next case says by itself which of the two causes it is: the same key1 with another hash is a compile that is not reproducible, another key1 is a step handed under a key that does not describe the waiter's compile. What stays open here is only that: why two compiles of one key differ. I will add the firstmetadata_replacedend to this issue and close it if the answer is in the keys.01:25Z 11-18: the next case came across a worker's upgrade, and was told
cache_unreachable, notmetadata_replacedThe job. j605-532,
test-x86_64/tilo-agent-sessionof probe run r34481520a9: started 01:15:33Z on7710cc0d(which hasc0f2a058), ended 01:25:58Z onab189001aserror | cache_unreachable. It is the one job of t's own that erred across your 01:21:32Z promote (my check ten minutes after: 54 other jobs that ran across it ended on their own).What it was handed (my line from
9d09529f, "a holder's metadata is placed for a job in line", all with holder node t-worker-ci-x86-1):Then the upgrade. Server start 01:21:32Z; the worker "fetched the server's build" at 01:21:42.67Z and "re-attached to the jobs on disk jobs=58" at 01:21:51.39Z. From 01:21:57Z the job's slot lines carry the new daemon's slot ids, and about 35 of its compiles end within nine seconds. At 01:25:58Z rustc: compiling
it, can't find cratetilo_agent; with its loader's log on: "cratetilo_ui(whichtilo_appdepends on) in libtilo_ui-d31143600bc07638.rmeta and .rlib via hash: expected 0e1b1289… got a942919e…", and five more candidates of tilo_ui. The same signature as 16:45Z: the file it had been handed 16 seconds before the restart held other metadata at the end.Why
c0f2a058did not name it. What a job announced is kept in the daemon's memory alone:Inner::announced(src/node/daemon/inner.rs:96) begins empty in each daemon (handle.rs:83), and nothing insrc/node/attach.rsfills it for the jobs a worker re-attaches.Inner::replaced(put.rs:115) then finds no entry for the job and says nothing. What a compile replaced is kept with the job (run-t/metadata-replaced,src/cargo/job.rs: "kept in the job's directory, not in the daemon's memory"); what it announced is not. So across an in-place upgrade the check of the invariant is blind for every job that announced before it, and an upgrade is when holders go: the new daemon knows no claim the old one held, a job in line asks again, is told to run and compiles the unit itself while the holder's compile goes on too.What I propose, and will commission unless you take it or object (one developer of mine builds locally at a time; the next slot is this): what a job announces is written with the job as it is announced, beside
run-t/metadata-replaced, and read back for the jobs a worker re-attaches, soreplacedsees it in the new daemon; a test that re-attaches a job across a daemon's restart and then has its compile write other metadata, red on main. It changes a job's files on the node, so it gets the upgrade proof before any promote of mine. It does not touch the other question, which stays open: why the job's own compile of a unit gives other metadata than the holder's.02:08Z 11-18: that fix is on main,
da23690a(not on production). Each announcement is appended, as it is made, tometadata-announcedat the top of the job's directory (<data>/jobs/<job>/metadata-announced, besidecompile-reads), one JSON record a line (cargo::job::Announcement: path, hash, key1, unit, holder), written by the worker's cache daemon inInner::announce_metadata. It is not underrun-t, which is bound into the job: the job neither sees nor can write it. A daemon that holds nothing of a job reads the file inDaemon::serve_jobbefore it binds the job's socket (Inner::read_announced), so no compile of a re-attached job reaches the new daemon before it holds what the old one announced. A file or a line that does not read is one error line and the rest counts; a job from before this build has no file and is served as before. No wire type, nothing a job is told, nothing in the server. Five tests; the one that announces, restarts the daemon and then has the compile write other metadata is red without the read-back ("the compile is refused: Ok"). The job directories' fixture gains the file (format b8a1ec5908b86ed4). t's whole check set green on testing for it on84cb9365.It adds a file to a job's directory, so I run the upgrade proof for
da23690aon testing before I promote (jobs running there across the deploy must all re-attach). Then one promote of main's head for this and #93's change together, on the conditions written in #93.02:19Z 11-18: the upgrade proof holds for
da23690a(testing). A whole check set forced with a nonce ran at84cb9365; with 18 job directories on the node, all with a course,da23690awas deployed: the worker "fetched the server's build" at 02:19:50Z and "re-attached to the jobs on disk jobs=14" at 02:19:51Z, none reaped as unattachable, no "missing field", no ERROR line, no panic; the run across it passed its 8 checks (32 jobs, all pass). Forge run onda23690apending; then the promote, behind the gates written in #93.01:25Z 11-18 (j605-532): why the job's own tilo_ui differed from the holder's
tilo_appwas built against the holder's metadata. The holder'slibtilo_ui-d31143600bc07638.rmeta(blob a9121f3c…, key1 03220645…) was placed for the job at 01:21:16Z and stored by the holder at 01:24:11Z. Its crate root holds SVH 0e1b1289…, exactly whattilo_appexpected. At the refusal the file held SVH a942919e…. No cache entry has those bytes: the holder's is the only entry under that file name. So the job's own compile wrote them (unit 3c12182b, ended 01:25:36Z, after the 01:21Z restart and re-attach).Two compiles of one key gave two crates because rustc folds
RUSTC_BOOTSTRAPinto the crate hash. With rustc 1.97.1, the same library and arguments give one SVH with it set and another without;-Zthreadsat 1, 4, 8 or 14 changes nothing. The wrapper setRUSTC_BOOTSTRAPonly for a slot given threads (the head of the critical path) and for links. Keys don't hold the slot.Since 2026-11-17 01:46Z the cache holds two passing compiles with differing metadata bytes for 316 keys. Nine of those keys have two SVHs: jiff (twice), jiff-tzdb, tempfile, fs4, memfd, gethostname, trash and rustix-linux-procfs. The rest differ only in a table's byte order. Which of the two tilo_ui compiles had threads can't be read any more: slot lines don't log threads, and the holder's line has rotated.
Fix, landing next: every unit's compile runs with
RUSTC_BOOTSTRAP=1whatever its slot, here, uncached and on a peer, as links already did. The slot only adds-Zthreads. Build-script probes are unchanged. A test compiles one unit in a slot with threads and once without, using a compiler whose metadata holds the variable. It is red on main and green with the fix.da23690a0stays the check for what is left, such as a holder on an older wrapper during an upgrade. One point on it, Xaver: a record that can't be written or read leaves the job unchecked, so the check fails open. I'd rather it fail the job, or not announce the metadata, in that case. A silent pass is the same as having no check.