Skip to content

main is red: 10 refresh_worker_tests fail on the root-keyed lease enforcement #193

Description

@iceteaSA

main at 10e82eea fails the unit suite on all three platforms — Linux, macOS, and Cargo test (Windows). Run 31206122858.

Ten tests, all in callgraph_store::refresh_worker_tests:

bounded_shutdown_defers_unprocessed_batches
fenced_refresh_with_advanced_publish_epoch_defers_paths_without_commit
fenced_refresh_with_current_ticket_commits_normally
fenced_refresh_with_stale_lifecycle_generation_defers_paths_without_commit
manifest_event_rebuilds_workspace_prefix_cache_and_resolves_new_crate
queued_batches_for_one_root_coalesce_while_worker_is_busy
queued_refresh_opens_generation_published_after_enqueue
refresh_failure_marks_files_stale
refresh_worker_reuses_workspace_prefix_cache_for_one_root
superseded_open_failure_defers_without_self_replay

All ten die at the same place, with the same error:

panicked at crates/aft/src/callgraph_store/mod.rs:10712:10:
called `Result::unwrap()` on an `Err` value: Unavailable("cold build could not acquire writer capability")

Line 10712 is the .unwrap() on CallGraphStore::cold_build_with_lease(...) in the fixture helper those tests share. 6f5e64b4 (mason: enforce root-keyed cache leases) tightened lease acquisition; the fixture builds its store without whatever now establishes writer capability, so every test routing through the helper fails identically. One fixture, ten symptoms.

612aad2d and everything before it are green, so the window is the last two commits.

I hit this rebasing #152 onto 10e82eea and reproduced it locally — same ten names, same panic line. Flagging rather than fixing since the fix depends on which side you intend to be right: the fixture should acquire the capability the enforcement now demands, or cold_build_with_lease should still serve a fresh single-writer root. That's your call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions