Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions capsules/model-provider/src/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3941,13 +3941,17 @@ mod tests {
}
let root_writer = if hold_root {
let held = open_journal_directory(&root).unwrap();
held.try_lock().unwrap();
// Take the lock with the provider's bounded retry: a child forked on
// another test thread can briefly hold a copy of an earlier lock fd (#381).
lock_journal_directory(&held).unwrap();
Some(held)
} else {
None
};
let runs_writer = open_journal_directory(&root.join("runs")).unwrap();
runs_writer.try_lock().unwrap();
// Take the lock with the provider's bounded retry: a child forked on
// another test thread can briefly hold a copy of an earlier lock fd (#381).
lock_journal_directory(&runs_writer).unwrap();
assert_eq!(
RunJournal::open(root.clone()).err().unwrap().code(),
"selection_unavailable"
Expand Down Expand Up @@ -4260,7 +4264,9 @@ mod tests {
let root = temp_root("briefly-held-writer");
let journal = RunJournal::open(root.clone()).unwrap();
let holder = open_journal_directory(&root.join("runs")).unwrap();
holder.try_lock().unwrap();
// Take the lock with the provider's bounded retry: a child forked on
// another test thread can briefly hold a copy of an earlier lock fd (#381).
lock_journal_directory(&holder).unwrap();
let release = std::thread::spawn(move || {
std::thread::sleep(std::time::Duration::from_millis(100));
drop(holder);
Expand Down Expand Up @@ -4333,7 +4339,9 @@ mod tests {
#[cfg(unix)]
let _writer = {
let writer = open_journal_directory(temp.parent().unwrap()).unwrap();
writer.try_lock().unwrap();
// Take the lock with the provider's bounded retry: a child forked on
// another test thread can briefly hold a copy of an earlier lock fd (#381).
lock_journal_directory(&writer).unwrap();
writer
};
assert!(RunJournal::open(root).is_err());
Expand Down
50 changes: 26 additions & 24 deletions capsules/object-provider/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions elastos/.cargo/audit.toml

This file was deleted.

50 changes: 26 additions & 24 deletions elastos/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion elastos/crates/elastos-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ tempfile = "3.10"
# Archive extraction (for capsule artifacts)
flate2 = "1.0"
tar = "0.4"
zip = { version = "2.4.2", default-features = false, features = ["deflate-flate2", "flate2"] }
zip = { version = "9.0.4", default-features = false, features = ["deflate-flate2"] }
libc = "0.2"

# Built-in Carrier transport (P2P for updates, gossip messaging, DHT discovery).
Expand Down
Loading
Loading