You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bundle pull: test that SessionWalk::fill holds no permit while it reserves more #2215
area:clidecdn binary: get, gateway, pool, publish, origin, setupkind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Nothing tests that SessionWalk::fill (crates/cli/src/commands/bundle_pull.rs) holds no lane permit when it calls RangeSessions::permits. The bundle pull lane cap is deadlock-free only while that holds (#2208, #2212).
Why it matters
Today it holds because of how the loop is written:
the permits of a failed open are removed with retain;
a second reservation batch follows only a pass in which every open failed.
A future change that keeps a permit across a batch could deadlock two entries at --max-lane-streams 1, and no test would catch it. FakeSessions::Permit is a plain usize, so a test cannot see which permits are outstanding.
Proposed test
Make the fake permit a drop guard that increments and decrements a shared outstanding counter.
area:clidecdn binary: get, gateway, pool, publish, origin, setupkind:testTest coverage, flakes, fixtures or the e2e harnessprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity