Rust false-positive cache hit
When compiling Firefox and changing some glean metrics, the build system generates a rust file (metrics.rs) that the rust crate firefox_on_glean depends on. Despite changes to metrics.rs, BuildCache does not rebuild firefox_on_glean. The symptom of this issue is a runtime crash because of a mismatch in a generated ID between c++ and rust.
Log 1 of a rebuild leading to the faulty crate:
BuildCache[91483] (DEBUG) Found exe: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc (/Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc, /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc)
BuildCache[91483] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition 2018 toolkit/components/glean/api/src/lib.rs --error-format json --json diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C debug-assertions=on --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg feature=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" -C metadata=f7b98fc80898f439 -C extra-filename=-f7b98fc80898f439 --out-dir /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps --target aarch64-apple-darwin -C linker=/Users/apehrson/Dev/m-c-2/build/cargo-linker -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --extern log=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libtime-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta -C debuginfo=2 -C force-frame-pointers=yes --cap-lints warn -C lto=off --print file-names
BuildCache[91483] (DEBUG) Removing expired data store item "73e904892942c02253199cd9b1aaf4d3"
BuildCache[91483] (DEBUG) Program ID cache miss for /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc
BuildCache[91483] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc -vV
BuildCache[91483] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --print=sysroot
BuildCache[91483] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition 2018 toolkit/components/glean/api/src/lib.rs --error-format json --json diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg feature=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" --target aarch64-apple-darwin -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --extern log=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libtime-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta --cap-lints warn -o /Users/apehrson/.buildcache/tmp/bcache-hv8b-gwsr02-zvy00bz37r-d.d --emit=dep-info
BuildCache[91483] (DEBUG) No direct match (1.manifest): /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/toolkit/components/glean/api/src/metrics.rs differs
BuildCache[91483] (DEBUG) No direct match (2.manifest): /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/toolkit/components/glean/api/src/metrics.rs differs
BuildCache[91483] (DEBUG) No direct match (3.manifest): /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/toolkit/components/glean/api/src/metrics.rs differs
BuildCache[91483] (DEBUG) No direct match (4.manifest): /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/toolkit/components/glean/api/src/metrics.rs differs
BuildCache[91483] (INFO) Direct mode cache miss (20ef18a45f2d105164482f53fc21df79): No matching direct mode entry found
BuildCache[91483] (DEBUG) Locked /Users/apehrson/.buildcache/c/20/stats.json.lock
BuildCache[91483] (DEBUG) Locked /Users/apehrson/.buildcache/c/48/3af8f101b00b0c01b45c30f6975cad.lock
BuildCache[91483] (DEBUG) Locked /Users/apehrson/.buildcache/c/48/stats.json.lock
BuildCache[91483] (INFO) Local cache hit (483af8f101b00b0c01b45c30f6975cad): firefox_on_glean-f7b98fc80898f439.d => /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/firefox_on_glean-f7b98fc80898f439.d
BuildCache[91483] (DEBUG) Decompressing file from cache
BuildCache[91483] (INFO) Local cache hit (483af8f101b00b0c01b45c30f6975cad): libfirefox_on_glean-f7b98fc80898f439.rlib => /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libfirefox_on_glean-f7b98fc80898f439.rlib
BuildCache[91483] (DEBUG) Decompressing file from cache
BuildCache[91483] (INFO) Local cache hit (483af8f101b00b0c01b45c30f6975cad): libfirefox_on_glean-f7b98fc80898f439.rmeta => /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libfirefox_on_glean-f7b98fc80898f439.rmeta
BuildCache[91483] (DEBUG) Decompressing file from cache
BuildCache[91483] (INFO) Cache hit (483af8f101b00b0c01b45c30f6975cad)
Log 2 of a rebuild, where I'm unsure what had changed since Log 1. Perhaps metrics.rs was regenerated but is otherwise identical? It gets a direct mode cache hit now:
BuildCache[12219] (DEBUG) Found exe: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc (/Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc, /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc)
BuildCache[12219] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition 2018 toolkit/components/glean/api/src/lib.rs --error-format json --json diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bi tcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C debug-assertions=on --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg feature=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" -C metadata=f7b98fc80898f439 -C extra-filename=-f7 b98fc80898f439 --out-dir /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps --target aarch64-apple-darwin -C linker=/Users/apehrson/Dev/m-c-2/build/cargo-linker -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple- darwin24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarc h64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --exter n log=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darw in/debug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apeh rson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/ libtime-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta -C debuginfo=2 -C force-frame-pointers=yes --cap-lints warn -C lto=off --print file-names
BuildCache[12219] (DEBUG) Found cached program ID for /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc
BuildCache[12219] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition 2018 toolkit/components/glean/api/src/lib.rs --error-format json --json diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg featu re=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" --target aarch64-apple-darwin -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwi n24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarch64-a pple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --extern log =/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/de bug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apehrson/ Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libti me-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta --cap-lints warn -o /Users/apehrson/.buildcache/tmp/bcache-ppj-z 2sr02-37y03fz37r-c.d --emit=dep-info
BuildCache[12219] (DEBUG) No direct match (1.manifest): /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/toolkit/components/glean/api/src/metrics.rs differs
BuildCache[12219] (DEBUG) No direct match (2.manifest): /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/toolkit/components/glean/api/src/metrics.rs differs
BuildCache[12219] (INFO) Direct mode cache hit (20ef18a45f2d105164482f53fc21df79): 483af8f101b00b0c01b45c30f6975cad
BuildCache[12219] (DEBUG) Locked /Users/apehrson/.buildcache/c/20/stats.json.lock
BuildCache[12219] (DEBUG) Locked /Users/apehrson/.buildcache/c/48/3af8f101b00b0c01b45c30f6975cad.lock
BuildCache[12219] (DEBUG) Locked /Users/apehrson/.buildcache/c/48/stats.json.lock
BuildCache[12219] (INFO) Local cache hit (483af8f101b00b0c01b45c30f6975cad): firefox_on_glean-f7b98fc80898f439.d => /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/firefox_on_glean-f7b98fc80898f439.d
BuildCache[12219] (DEBUG) Decompressing file from cache
BuildCache[12219] (INFO) Local cache hit (483af8f101b00b0c01b45c30f6975cad): libfirefox_on_glean-f7b98fc80898f439.rlib => /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libfirefox_on_glean-f7b98fc80898f439.rlib
BuildCache[12219] (DEBUG) Decompressing file from cache
BuildCache[12219] (INFO) Local cache hit (483af8f101b00b0c01b45c30f6975cad): libfirefox_on_glean-f7b98fc80898f439.rmeta => /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libfirefox_on_glean-f7b98fc80898f439.rmeta
BuildCache[12219] (DEBUG) Decompressing file from cache
After clearing buildcache and rebuilding, I get this log showing a new direct mode hash:
BuildCache[70177] (DEBUG) Found exe: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc (/Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc, /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc)
BuildCache[70177] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition 2018 toolkit/components/glean/api/src/lib.rs --error-format json --json diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C debug-assertions=on --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg feature=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" -C metadata=f7b98fc80898f439 -C extra-filename=-f7b98fc80898f439 --out-dir /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps --target aarch64-apple-darwin -C linker=/Users/apehrson/Dev/m-c-2/build/cargo-linker -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --extern log=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libtime-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta -C debuginfo=2 -C force-frame-pointers=yes --cap-lints warn -C lto=off --print file-names
BuildCache[70177] (DEBUG) Found cached program ID for /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc
BuildCache[70177] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition 2018 toolkit/components/glean/api/src/lib.rs --error-format json --json diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg feature=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" --target aarch64-apple-darwin -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --extern log=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libtime-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta --cap-lints warn -o /Users/apehrson/.buildcache/tmp/bcache-nfsb-7yur02-5j8fpm037r-c.d --emit=dep-info
BuildCache[70177] (INFO) Direct mode cache miss (f6f85232a5b8ef2b15c39fddf44435be): No matching direct mode entry found
BuildCache[70177] (DEBUG) Locked /Users/apehrson/.buildcache/c/f6/stats.json.lock
BuildCache[70177] (DEBUG) Locked /Users/apehrson/.buildcache/c/48/3af8f101b00b0c01b45c30f6975cad.lock
BuildCache[70177] (DEBUG) Locked /Users/apehrson/.buildcache/c/48/stats.json.lock
BuildCache[70177] (INFO) Cache miss (483af8f101b00b0c01b45c30f6975cad)
BuildCache[70177] (DEBUG) Invoking: /Users/apehrson/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name firefox_on_glean --edition=2018 toolkit/components/glean/api/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C debug-assertions=on --cfg feature=\"gecko-profiler\" --cfg feature=\"nsstring\" --cfg feature=\"with_gecko\" --cfg feature=\"xpcom\" --check-cfg "cfg(docsrs)" --check-cfg "cfg(feature, values(\"gecko-profiler\", \"nsstring\", \"with_gecko\", \"xpcom\"))" -C metadata=f7b98fc80898f439 -C extra-filename=-f7b98fc80898f439 --out-dir /Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps --target aarch64-apple-darwin -C linker=/Users/apehrson/Dev/m-c-2/build/cargo-linker -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps -L dependency=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps --extern bincode=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libbincode-7b3d04a0cc96def4.rmeta --extern chrono=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libchrono-6b337f4947e465e2.rmeta --extern gecko_profiler=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libgecko_profiler-ab59793ea7ea5238.rmeta --extern glean=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libglean-f2dffca61738d998.rmeta --extern inherent=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/debug/deps/libinherent-ad7043f0ca27d075.dylib --extern log=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/liblog-d0a7a04dfd57fbca.rmeta --extern mozbuild=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libmozbuild-b9a9d0afdb5fda62.rmeta --extern nsstring=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libnsstring-639739730e3aa0d1.rmeta --extern once_cell=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libonce_cell-406b9a96f53b7052.rmeta --extern serde=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde-8c202c1181ea267a.rmeta --extern serde_json=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libserde_json-8a6d7af614910e4e.rmeta --extern thin_vec=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libthin_vec-80ec4fb8ce0330e2.rmeta --extern time=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libtime-9ecb2ece18495866.rmeta --extern uuid=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libuuid-4329a4d12aa11818.rmeta --extern xpcom=/Users/apehrson/Dev/m-c-2/obj-aarch64-apple-darwin24.2.0/aarch64-apple-darwin/debug/deps/libxpcom-6df74d875c227143.rmeta -C debuginfo=2 -C force-frame-pointers=yes --cap-lints warn -Clto=off
I find it peculiar that BuildCache detects the change in metrics.rs but still comes up with the same hash, leading to re-use of the wrong crate version.