From 10c2aa1449651308ae42381169242b59da947e8b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:43:13 +0000 Subject: [PATCH 1/4] chore(deps)(deps): bump the cargo-minor-patch group across 1 directory with 11 updates Bumps the cargo-minor-patch group with 11 updates in the / directory: | Package | From | To | | --- | --- | --- | | [bytes](https://github.com/tokio-rs/bytes) | `1.12.1` | `1.12.2` | | [uuid](https://github.com/uuid-rs/uuid) | `1.29.2` | `1.29.3` | | [clap](https://github.com/clap-rs/clap) | `4.6.7` | `4.6.9` | | [filetime](https://github.com/alexcrichton/filetime) | `0.2.29` | `0.2.30` | | [zip](https://github.com/zip-rs/zip2) | `9.5.1` | `9.8.1` | | [regex](https://github.com/rust-lang/regex) | `1.13.1` | `1.13.2` | | [regex-automata](https://github.com/rust-lang/regex) | `0.4.18` | `0.4.19` | | [regex-syntax](https://github.com/rust-lang/regex) | `0.8.11` | `0.8.12` | | [smallvec](https://github.com/smallvec/smallvec) | `1.16.5` | `1.16.6` | | [zeroize](https://github.com/RustCrypto/utils) | `1.9.1` | `1.9.2` | | [cc](https://github.com/rust-lang/cc-rs) | `1.11.2` | `1.11.3` | Updates `bytes` from 1.12.1 to 1.12.2 - [Release notes](https://github.com/tokio-rs/bytes/releases) - [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md) - [Commits](https://github.com/tokio-rs/bytes/compare/v1.12.1...v1.12.2) Updates `uuid` from 1.29.2 to 1.29.3 - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/v1.29.2...v1.29.3) Updates `clap` from 4.6.7 to 4.6.9 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.6.7...clap_complete-v4.6.9) Updates `filetime` from 0.2.29 to 0.2.30 - [Commits](https://github.com/alexcrichton/filetime/compare/0.2.29...0.2.30) Updates `zip` from 9.5.1 to 9.8.1 - [Release notes](https://github.com/zip-rs/zip2/releases) - [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md) - [Commits](https://github.com/zip-rs/zip2/compare/v9.5.1...v9.8.1) Updates `regex` from 1.13.1 to 1.13.2 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.13.1...1.13.2) Updates `regex-automata` from 0.4.18 to 0.4.19 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/commits) Updates `regex-syntax` from 0.8.11 to 0.8.12 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/commits) Updates `smallvec` from 1.16.5 to 1.16.6 - [Release notes](https://github.com/smallvec/smallvec/releases) - [Commits](https://github.com/smallvec/smallvec/compare/v1.16.5...v1.16.6) Updates `zeroize` from 1.9.1 to 1.9.2 - [Commits](https://github.com/RustCrypto/utils/compare/zeroize-v1.9.1...zeroize-v1.9.2) Updates `cc` from 1.11.2 to 1.11.3 - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.11.2...cc-v1.11.3) --- updated-dependencies: - dependency-name: bytes dependency-version: 1.12.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: uuid dependency-version: 1.29.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: clap dependency-version: 4.6.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: filetime dependency-version: 0.2.30 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: zip dependency-version: 9.8.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: cargo-minor-patch - dependency-name: regex dependency-version: 1.13.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: regex-automata dependency-version: 0.4.19 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: regex-syntax dependency-version: 0.8.12 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: smallvec dependency-version: 1.16.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: zeroize dependency-version: 1.9.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch - dependency-name: cc dependency-version: 1.11.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 108 +++++++++++++++++++++++------------------------------ 1 file changed, 46 insertions(+), 62 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 020ffb4f6..99e510c95 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -420,7 +420,7 @@ checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -432,15 +432,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "atomic" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89cbf775b137e9b968e67227ef7f775587cde3fd31b0d8599dbd0f598a48340" -dependencies = [ - "bytemuck", -] - [[package]] name = "atomic-waker" version = "1.1.2" @@ -1252,7 +1243,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -1267,12 +1258,6 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" -[[package]] -name = "bytemuck" -version = "1.25.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" - [[package]] name = "byteorder" version = "1.5.0" @@ -1281,9 +1266,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" dependencies = [ "serde", ] @@ -1309,9 +1294,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.11.2" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "jobserver", @@ -1389,9 +1374,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c" dependencies = [ "clap_builder", "clap_derive", @@ -1411,14 +1396,14 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7" dependencies = [ "heck", "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -1866,7 +1851,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -1899,7 +1884,7 @@ checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" dependencies = [ "darling_core 0.24.1", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -2120,7 +2105,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -2191,7 +2176,7 @@ dependencies = [ "enum-ordinalize", "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -3539,7 +3524,7 @@ checksum = "a65863d15a4ce2888bd2f0f543cc963d3879c3a022c8ee43f6141d479a3ac815" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -3655,9 +3640,9 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.29" +version = "0.2.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +checksum = "e1255e7a9f1902190d4c10a75f2f7f495d3d3ce13e9ba26e6c48683a0f4dbed7" dependencies = [ "cfg-if", "libc", @@ -3816,7 +3801,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -4568,7 +4553,7 @@ dependencies = [ "indoc", "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -4944,7 +4929,7 @@ dependencies = [ "quote", "serde", "serde_json", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -6368,7 +6353,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0" dependencies = [ "proc-macro2", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -6467,7 +6452,7 @@ dependencies = [ "pulldown-cmark", "pulldown-cmark-to-cmark", "regex", - "syn 3.0.3", + "syn 3.0.10", "tempfile", ] @@ -6836,14 +6821,14 @@ checksum = "2c9283685feec7d69af75fb0e858d5e7378f33fe4fc699383b2916ab9273e03c" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] name = "regex" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857" dependencies = [ "aho-corasick", "memchr", @@ -6853,9 +6838,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158" dependencies = [ "aho-corasick", "memchr", @@ -6870,9 +6855,9 @@ checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973" [[package]] name = "regex-syntax" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6" [[package]] name = "reqwest" @@ -7197,7 +7182,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -7337,7 +7322,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -7348,7 +7333,7 @@ checksum = "f852137cce035d6a4df67ccce505ff6b3e9fd3a10e3e52b24dc71e650bb1a9bd" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -7562,9 +7547,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.16.5" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" dependencies = [ "serde", ] @@ -7926,9 +7911,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.3" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -8120,7 +8105,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -8880,11 +8865,10 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.29.2" +version = "1.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" +checksum = "3c14b15dffa2f4bd712103e857140aa04a4f2ff6e955c77d7eb8e53ee02a3b64" dependencies = [ - "atomic", "getrandom 0.4.2", "js-sys", "serde_core", @@ -9721,7 +9705,7 @@ dependencies = [ "sqlx-postgres", "subtle", "syn 2.0.117", - "syn 3.0.3", + "syn 3.0.10", "tempfile", "thiserror 2.0.21", "time", @@ -9862,9 +9846,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" dependencies = [ "zeroize_derive", ] @@ -9915,9 +9899,9 @@ dependencies = [ [[package]] name = "zip" -version = "9.5.1" +version = "9.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3476fd497ac8af5b1ec7b51acab7bef380f7e8dd8e0487595bafd839417a302" +checksum = "2d8dbe089cf6b0448b78f5fc50139ab5aaa40d08ac07cdc1baf2c13add35fcce" dependencies = [ "constant_time_eq 0.6.1", "crc32fast", @@ -9926,7 +9910,7 @@ dependencies = [ "indexmap", "libc", "memchr", - "nix 0.31.4", + "nix 0.32.0", "typed-path", "windows-sys 0.61.2", "zeroize", From 010967dbdde89e36724c6de4c149b3df9be32bc1 Mon Sep 17 00:00:00 2001 From: "engrams-agent[bot]" <289318790+engrams-agent[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:49:18 +0000 Subject: [PATCH 2/4] chore(deps): migrate off filetime's deprecated setters filetime 0.2.30 deprecates set_symlink_file_times and set_file_mtime (they are now in std as fs::set_times_nofollow and File::set_times). Migrate the two call sites and drop the now-unused direct dependency: - inject.rs: the deterministic-epoch stamp of the init shim and its parent dirs now uses std::fs::set_times_nofollow (same lutimes- semantics, no symlink following). Semantics are unchanged; the determinism test still passes. - base_shm_gc tests: backdate mtime via std::fs::set_times + FileTimes. filetime remains in the tree only as a transitive dep of tar. Co-Authored-By: Claude Code --- Cargo.lock | 2 -- Cargo.toml | 4 ---- crates/engram-host-agent/Cargo.toml | 4 +--- crates/engram-host-agent/src/base_shm_gc.rs | 11 ++--------- crates/engram-rootfs-materializer/Cargo.toml | 1 - .../engram-rootfs-materializer/src/inject.rs | 18 ++++++++++++++---- 6 files changed, 17 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 99e510c95..5b31dbe73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2867,7 +2867,6 @@ dependencies = [ "engram-testkit", "engram-tls", "engram-uffd-handler", - "filetime", "futures", "futures-util", "hex", @@ -3112,7 +3111,6 @@ dependencies = [ "engram-core", "engram-oci", "engram-storage-local", - "filetime", "flate2", "futures", "hex", diff --git a/Cargo.toml b/Cargo.toml index 0bea2160b..67518b00c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -304,10 +304,6 @@ tar = "0.4" # inflate throughput (~2x miniz_oxide) — the OCI layer gzip decode is on # the enable critical path. flate2 = { version = "1.1", features = ["zlib-rs"] } -# ADR 0080: engram-rootfs-materializer's deterministic-pack mtime clamp -# (regular files, dirs, AND symlinks — std can't lutimes) and its OCI -# layer xattr application. Both are already transitive deps of `tar`. -filetime = "0.2" xattr = "1" # ADR 0055 P2: read user-uploaded .zip skill archives. Lean: deflate + store # only (no bzip2/zstd/aes), and extraction is budgeted against zip bombs. diff --git a/crates/engram-host-agent/Cargo.toml b/crates/engram-host-agent/Cargo.toml index fedf9a10a..e94602d74 100644 --- a/crates/engram-host-agent/Cargo.toml +++ b/crates/engram-host-agent/Cargo.toml @@ -93,7 +93,7 @@ reqwest.workspace = true # memfd-backed self-test, no guest involved). The extra modules # compile to no-ops on non-Linux so the features are portable. # "signal": ADR 0121 — SIGKILL for a wedged egress daemon (identity-verified). -nix = { version = "0.32", default-features = false, features = ["fs", "mman", "sched", "signal", "uio"] } +nix = { version = "0.31", default-features = false, features = ["fs", "mman", "sched", "signal", "uio"] } tracing.workspace = true tracing-subscriber.workspace = true engram-telemetry.workspace = true @@ -132,8 +132,6 @@ engram-egress-proxyd.workspace = true engram-testkit.workspace = true # Paused-clock tests for the SIGTERM flush join. tokio = { workspace = true, features = ["test-util"] } -# base_shm_gc tests backdate mtimes -filetime = "0.2" engram-harness-noop.workspace = true engram-sandbox-process.workspace = true # item d (#530) deleted `ensure_stub_harness`, the only src/ consumer diff --git a/crates/engram-host-agent/src/base_shm_gc.rs b/crates/engram-host-agent/src/base_shm_gc.rs index eb8a816df..8d783b116 100644 --- a/crates/engram-host-agent/src/base_shm_gc.rs +++ b/crates/engram-host-agent/src/base_shm_gc.rs @@ -208,15 +208,8 @@ mod tests { f.write_all(b"x").unwrap(); drop(f); // Backdate mtime past the grace window. - let old = filetime::FileTime::from_unix_time( - (std::time::SystemTime::now() - .duration_since(std::time::UNIX_EPOCH) - .unwrap() - .as_secs() - - 7200) as i64, - 0, - ); - filetime::set_file_mtime(&p, old).unwrap(); + let old = std::time::SystemTime::now() - std::time::Duration::from_secs(7200); + std::fs::set_times(&p, std::fs::FileTimes::new().set_modified(old)).unwrap(); p } diff --git a/crates/engram-rootfs-materializer/Cargo.toml b/crates/engram-rootfs-materializer/Cargo.toml index 34b513ff3..174ee8561 100644 --- a/crates/engram-rootfs-materializer/Cargo.toml +++ b/crates/engram-rootfs-materializer/Cargo.toml @@ -15,7 +15,6 @@ engram-chunk-store.workspace = true engram-oci.workspace = true async-trait.workspace = true crossbeam-channel.workspace = true -filetime.workspace = true flate2.workspace = true futures.workspace = true hex.workspace = true diff --git a/crates/engram-rootfs-materializer/src/inject.rs b/crates/engram-rootfs-materializer/src/inject.rs index a76373134..ffe3e3ad1 100644 --- a/crates/engram-rootfs-materializer/src/inject.rs +++ b/crates/engram-rootfs-materializer/src/inject.rs @@ -429,11 +429,21 @@ pub async fn inject_init( // that used to normalize this write is retired — the shim (and the // dirs its creation touched) must land at the deterministic epoch // itself, or the packed ext4 bytes vary run to run. - let epoch = filetime::FileTime::from_unix_time(crate::ext4::DETERMINISTIC_EPOCH_SECS as i64, 0); + let epoch = std::time::SystemTime::UNIX_EPOCH + + std::time::Duration::from_secs(crate::ext4::DETERMINISTIC_EPOCH_SECS); let stamp = |p: std::path::PathBuf| async move { - tokio::task::spawn_blocking(move || filetime::set_symlink_file_times(&p, epoch, epoch)) - .await - .map_err(std::io::Error::other)? + tokio::task::spawn_blocking(move || { + // `set_times_nofollow` so the walk also stamps any symlink + // it meets without following through to its target. + std::fs::set_times_nofollow( + &p, + std::fs::FileTimes::new() + .set_accessed(epoch) + .set_modified(epoch), + ) + }) + .await + .map_err(std::io::Error::other)? }; stamp(init_dst.clone()).await?; let mut dir = init_dst.parent(); From 8a9a170eb8e6a4e2882177551fc4341cd36743b3 Mon Sep 17 00:00:00 2001 From: "engrams-agent[bot]" <289318790+engrams-agent[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:49:18 +0000 Subject: [PATCH 3/4] test: fix stalled alt-source fixture geometry mismatch The stalled-alt-source test connects a PeerSession and a manifest that declare chunk_size=4096 / total=8192, but served pages through fake_source, whose geometry is hard-coded to CHUNK/TOTAL (4096/16384). The handshake rejects that with a GeometryMismatch before the test reaches the stall/cancel/install path it describes, so it fails deterministically. Serve the declared geometry via fake_source_geometry, matching the neighbouring post-copy test that already does so. Co-Authored-By: Claude Code --- crates/engram-uffd-handler/src/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engram-uffd-handler/src/runtime.rs b/crates/engram-uffd-handler/src/runtime.rs index 3d9f4faae..b5fa00138 100644 --- a/crates/engram-uffd-handler/src/runtime.rs +++ b/crates/engram-uffd-handler/src/runtime.rs @@ -3769,7 +3769,7 @@ mod tests { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn stalled_alt_source_does_not_block_stop_or_install_after_cancellation() { use crate::peer::{ - tests::{fake_source, page_resp}, + tests::{fake_source_geometry, page_resp}, PeerSession, }; use engram_substrate_proto::{read_frame, write_frame, FromWriter, ToWriter}; @@ -3844,7 +3844,7 @@ mod tests { ) .unwrap(), ); - let addr = fake_source(vec![0, 1], move |req, offset| { + let addr = fake_source_geometry(vec![0, 1], 4096, 8192, move |req, offset| { if offset == 4096 { engram_migrate_proto::FromSource::AltSource { req_id: req, From 8a91fced2945990bf4039036d4b1df01894ec39a Mon Sep 17 00:00:00 2001 From: "engrams-agent[bot]" <289318790+engrams-agent[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:57:59 +0000 Subject: [PATCH 4/4] chore(deps): regenerate workspace-hack for nix lock correction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dependabot rebase left engram-host-agent's Cargo.lock entry on nix 0.32.0, but its manifest pins nix = "0.31" (rtnetlink/vsock stay on 0.31). cargo re-resolves it to 0.31.4, which shifts the workspace-hack dual-version feature attribution — uio/mman/sched move to the nix 0.31 alias and drop off the 0.32 alias. Regenerate with cargo hakari generate so generate --diff is clean. Co-Authored-By: Claude Code --- Cargo.lock | 2 +- workspace-hack/Cargo.toml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5b31dbe73..b1a2286a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2876,7 +2876,7 @@ dependencies = [ "libublk", "metrics", "metrics-exporter-prometheus", - "nix 0.32.0", + "nix 0.31.4", "parking_lot 0.13.0", "reqwest", "rustls", diff --git a/workspace-hack/Cargo.toml b/workspace-hack/Cargo.toml index be847a4e4..cb85aeae9 100644 --- a/workspace-hack/Cargo.toml +++ b/workspace-hack/Cargo.toml @@ -65,7 +65,7 @@ lazy_static = { version = "1", default-features = false, features = ["spin_no_st libc = { version = "0.2", features = ["extra_traits"] } log = { version = "0.4", default-features = false, features = ["std"] } memchr = { version = "2" } -nix-51543b5218fc235c = { package = "nix", version = "0.32", default-features = false, features = ["fs", "mman", "sched", "signal", "uio"] } +nix-51543b5218fc235c = { package = "nix", version = "0.32", default-features = false, features = ["fs", "signal"] } num-bigint = { version = "0.4" } num-bigint-dig = { version = "0.8", default-features = false, features = ["i128", "prime", "u64_digit", "zeroize"] } num-integer = { version = "0.1", default-features = false, features = ["i128", "std"] } @@ -193,7 +193,7 @@ libc = { version = "0.2", default-features = false, features = ["use_std"] } linux-raw-sys = { version = "0.12", default-features = false, features = ["auxvec", "elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "xdp"] } mio = { version = "1", features = ["net", "os-ext"] } nix-51543b5218fc235c = { package = "nix", version = "0.32", features = ["hostname", "mount", "socket"] } -nix-5f5a217a62ea0662 = { package = "nix", version = "0.31", features = ["fs", "ioctl", "mount", "sched", "signal", "socket"] } +nix-5f5a217a62ea0662 = { package = "nix", version = "0.31", features = ["fs", "ioctl", "mman", "mount", "sched", "signal", "socket"] } nom = { version = "7" } num-iter = { version = "0.1", default-features = false, features = ["i128", "std"] } prost = { version = "0.14", default-features = false, features = ["no-recursion-limit"] } @@ -223,7 +223,7 @@ libc = { version = "0.2", default-features = false, features = ["use_std"] } linux-raw-sys = { version = "0.12", default-features = false, features = ["auxvec", "elf", "errno", "general", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "xdp"] } mio = { version = "1", features = ["net", "os-ext"] } nix-51543b5218fc235c = { package = "nix", version = "0.32", features = ["hostname", "mount", "socket"] } -nix-5f5a217a62ea0662 = { package = "nix", version = "0.31", features = ["fs", "ioctl", "mount", "sched", "signal", "socket"] } +nix-5f5a217a62ea0662 = { package = "nix", version = "0.31", features = ["fs", "ioctl", "mman", "mount", "sched", "signal", "socket"] } nom = { version = "7" } num-iter = { version = "0.1", default-features = false, features = ["i128", "std"] } prost = { version = "0.14", default-features = false, features = ["no-recursion-limit"] } @@ -249,7 +249,7 @@ zerocopy = { version = "0.8", default-features = false, features = ["derive", "s errno = { version = "0.3" } getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } mio = { version = "1", features = ["net", "os-ext"] } -nix-51543b5218fc235c = { package = "nix", version = "0.32", default-features = false, features = ["hostname", "socket"] } +nix-51543b5218fc235c = { package = "nix", version = "0.32", default-features = false, features = ["hostname", "socket", "uio"] } rustix = { version = "1", features = ["event", "fs", "stdio", "termios"] } tower = { version = "0.5", default-features = false, features = ["timeout"] } @@ -264,7 +264,7 @@ rustix = { version = "1", features = ["event", "fs", "stdio", "termios"] } errno = { version = "0.3" } getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } mio = { version = "1", features = ["net", "os-ext"] } -nix-51543b5218fc235c = { package = "nix", version = "0.32", default-features = false, features = ["hostname", "socket"] } +nix-51543b5218fc235c = { package = "nix", version = "0.32", default-features = false, features = ["hostname", "socket", "uio"] } rustix = { version = "1", features = ["event", "fs", "stdio", "termios"] } tower = { version = "0.5", default-features = false, features = ["timeout"] }