Skip to content

Commit 1c28b88

Browse files
authored
fix: serialize configure locator updates (#416)
Summary: - Apply configure updates and long-lived locator reconfiguration under the same configuration write lock. - Keep refresh-state sync from interleaving with shared locator reconfiguration. - Add a regression test that blocks locator configuration and verifies configuration readers cannot observe the new state early. Validation: - cargo test -p pet test_configure_publishes_state_after_shared_locators_are_configured - cargo test -p pet jsonrpc::tests::test_ - cargo fmt --all - cargo clippy --all -- -D warnings Fixes #385
1 parent 2ac76d5 commit 1c28b88

2 files changed

Lines changed: 369 additions & 46 deletions

File tree

crates/pet-virtualenvwrapper/src/environments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ mod tests {
190190

191191
#[test]
192192
fn get_project_reads_existing_project_path_from_project_file() {
193-
let project_root = create_test_dir("project-root");
193+
let project_root = fs::canonicalize(create_test_dir("project-root")).unwrap();
194194
let prefix = create_test_dir("wrapped-env");
195195
let executable = create_virtualenv(&prefix);
196196
fs::write(

0 commit comments

Comments
 (0)