From c4e6ff9dfe90033dff307324e349d0805c6a81df Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:37:18 +0000 Subject: [PATCH 1/2] chore(deps): update dependency @testing-library/user-event to v14.6.12 --- pnpm-lock.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d7835121a7..e57a8df265 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -253,7 +253,7 @@ importers: version: 16.3.3(@testing-library/dom@10.4.2)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) '@testing-library/user-event': specifier: ^14.6.1 - version: 14.6.10(@testing-library/dom@10.4.2) + version: 14.6.12(@testing-library/dom@10.4.2) '@types/node': specifier: ^26.6.5 version: 26.6.6 @@ -1416,8 +1416,8 @@ packages: '@types/react-dom': optional: true - '@testing-library/user-event@14.6.10': - resolution: {integrity: sha512-tA4stGNp3mLGOGO+lh87UA56Tz4c8NVGBSkyIF58O+W/bs2Re9BCI9xihnL70+DsThncFznE0skS88SM1D2hyg==} + '@testing-library/user-event@14.6.12': + resolution: {integrity: sha512-8yQV8v+eToBhsUO4oYrZY7fzhpTEMZx4IDx0/iuER/x0Xuy0NdqQOhsaaUNlvXE03N7vQ+4RCXUieKC0NJty9w==} engines: {node: '>=12', npm: '>=6'} peerDependencies: '@testing-library/dom': '>=7.21.4' @@ -3647,7 +3647,7 @@ snapshots: '@types/react': 19.3.0 '@types/react-dom': 19.3.0(@types/react@19.3.0) - '@testing-library/user-event@14.6.10(@testing-library/dom@10.4.2)': + '@testing-library/user-event@14.6.12(@testing-library/dom@10.4.2)': dependencies: '@testing-library/dom': 10.4.2 From 02fc05f717ae2a73c18bb2825d76e710f3725478 Mon Sep 17 00:00:00 2001 From: ScriptedAlchemy Date: Mon, 16 Nov 2026 12:55:53 -0800 Subject: [PATCH 2/2] test(code-index): pin retired pack inode in descriptor census Retention unlinks the retired pack while sibling tests open files on the same filesystem, so a reused inode number made the post-unlink holder census count an unrelated descriptor. Hold a pin on the pack for the whole test and exclude only that descriptor from the census. Co-Authored-By: Claude Opus 5.5 --- .../tests/publication_store.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/crates/tracedecay-code-index-runtime/src/code_index_scheduler/tests/publication_store.rs b/crates/tracedecay-code-index-runtime/src/code_index_scheduler/tests/publication_store.rs index d13aba7f89..86806d3754 100644 --- a/crates/tracedecay-code-index-runtime/src/code_index_scheduler/tests/publication_store.rs +++ b/crates/tracedecay-code-index-runtime/src/code_index_scheduler/tests/publication_store.rs @@ -1924,11 +1924,17 @@ fn ordinary_retention_waits_for_active_pack_reads_and_leaves_no_idle_payload_han !expected.is_empty(), "the retired pack contains actual bytes" ); - let inode = std::fs::metadata(&path).expect("original pack inode"); + // Retention unlinks this pack while sibling tests open files on the same + // filesystem. The pin keeps the inode allocated, so its number cannot be + // reused by an unrelated descriptor; the census counts every other holder. + let pin = std::fs::File::open(&path).expect("pin the retired pack inode"); + let pin_entry = std::os::fd::AsRawFd::as_raw_fd(&pin).to_string(); + let inode = pin.metadata().expect("original pack inode"); let holders = || { std::fs::read_dir("/proc/self/fd") .expect("inspect actual process descriptor table") .filter_map(Result::ok) + .filter(|entry| entry.file_name().to_str() != Some(pin_entry.as_str())) .filter_map(|entry| std::fs::metadata(entry.path()).ok()) .filter(|metadata| metadata.dev() == inode.dev() && metadata.ino() == inode.ino()) .count() @@ -2008,11 +2014,7 @@ fn ordinary_retention_waits_for_active_pack_reads_and_leaves_no_idle_payload_han .any(|item| item.generation_id == generation_ids[0]) ); assert!(!path.exists(), "the old-only pack pathname is reclaimed"); - assert_eq!( - holders(), - 0, - "idle owners must not keep a deleted inode allocated" - ); + assert_eq!(holders(), 0, "idle owners must not hold the deleted inode"); assert!( publication .load_generation(&generation_ids[1])