Recompiler: the build script reads its sources from the checkout being built #2401

Open
Anon64 wants to merge 1 commit from upstream-pr/2411 into main
Anon64 commented 2026-11-25 18:07:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-25T18:07:12Z.


crates/xcl/build.rs took the crate's directory from env!("CARGO_MANIFEST_DIR"), which is fixed when the build script is compiled. Cargo reuses a compiled build script in another checkout that shares the target directory: the script's dep-info lists only workspace-relative paths, so a git worktree with the same build.rs gets the same script binary. That script then reads and hashes the first checkout's translator sources. While both checkouts exist, XCL_TRANSLATOR_SOURCE_ID is made from the wrong tree. Once the first one is removed, every build of the other that reruns the script fails:

thread 'main' panicked at crates\xcl\build.rs:70:64:
read shader translator source: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }

The script now reads CARGO_MANIFEST_DIR when it runs, as Cargo documents for build scripts.

What is in it

  • crates/xcl/build.rs: root comes from std::env::var_os("CARGO_MANIFEST_DIR") at run time instead of env!. Nothing else changes.

Tested

  • RTX 3060 12 GB (driver 581.80), Windows 11 26200, Rust 1.100.0, DXC 1.8.2502.11, debug and release.
  • Reproduction on main 68a284a: worktree A builds -p xcl with CARGO_TARGET_DIR set to checkout B's target. Worktree A is moved away (git worktree move). In B, touch crates/xcl/src/gpu/dxbc.rs and cargo build -p xcl fail with the panic above. The script binary in target/debug/build/xcl/<hash>/out/ contains worktree A's path.
  • On this branch, the same steps build; the compiled script contains no checkout path.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1289 passed, 1 failed, 46 ignored. The failure is gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, which fails on main 68a284a too (1219 passed, 1 failed, 26 ignored in the lib tests on both) and was fixed on main by #2420 after this run.
  • SKIPPED on this adapter (no wave64, no heap windows): 16 GPU tests, among them f16_programs_on_the_gpu, f32_programs_on_the_gpu, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu and heap_window_out_of_memory_falls_back_to_the_switch_form.
  • In one earlier full run on this branch, the lib test binary ended with STATUS_ACCESS_VIOLATION after that failure. It did not recur in two lib-only reruns or the full run above, and does not involve the build script.

Regression run

scripts/smoke.ps1 of a retail title, 60 s each, main and this branch's current head (warm caches, A presses scripted):

xcl-smoke v1
commit: 623d02e465a17497a757a4ce867f482b0a6c8f3b
gpu: NVIDIA GeForce RTX 3060
title: retail-1
seconds: 60
exit: 0x0
frames shown: 1339 (PresentX 1339)
presents per 2 s (last 3): 3 2 3
device removals: 0
crashes: 0
peak commit: 25957 MB
xcl-smoke v1
commit: 8e2455097ea29f1c410e688b01ffd20fd5e74f72
gpu: NVIDIA GeForce RTX 3060
title: retail-1
seconds: 60
exit: 0x0
frames shown: 1657 (PresentX 1657)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16656 MB

(The main run went further into world loading inside its 60 s, hence its higher commit and lower present rate at the end. The change itself is build-time only.)

Not tested

  • AMD; Linux / Wine (a gnu target).
  • cargo with --remap-path-prefix or a vendored build.

AI use

  • Claude Code (Claude Opus 5.5) found the failure, made the change, ran the reproduction, tests and smoke runs, and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5496597513 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-25T18:07:12Z. --- `crates/xcl/build.rs` took the crate's directory from `env!("CARGO_MANIFEST_DIR")`, which is fixed when the build script is compiled. Cargo reuses a compiled build script in another checkout that shares the target directory: the script's dep-info lists only workspace-relative paths, so a git worktree with the same `build.rs` gets the same script binary. That script then reads and hashes the first checkout's translator sources. While both checkouts exist, `XCL_TRANSLATOR_SOURCE_ID` is made from the wrong tree. Once the first one is removed, every build of the other that reruns the script fails: ``` thread 'main' panicked at crates\xcl\build.rs:70:64: read shader translator source: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." } ``` The script now reads `CARGO_MANIFEST_DIR` when it runs, as Cargo documents for build scripts. **What is in it** - `crates/xcl/build.rs`: `root` comes from `std::env::var_os("CARGO_MANIFEST_DIR")` at run time instead of `env!`. Nothing else changes. **Tested** - RTX 3060 12 GB (driver 581.80), Windows 11 26200, Rust 1.100.0, DXC 1.8.2502.11, debug and release. - Reproduction on `main` `68a284a`: worktree A builds `-p xcl` with `CARGO_TARGET_DIR` set to checkout B's target. Worktree A is moved away (`git worktree move`). In B, `touch crates/xcl/src/gpu/dxbc.rs` and `cargo build -p xcl` fail with the panic above. The script binary in `target/debug/build/xcl/<hash>/out/` contains worktree A's path. - On this branch, the same steps build; the compiled script contains no checkout path. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1289 passed, 1 failed, 46 ignored. The failure is `gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`, which fails on `main` `68a284a` too (1219 passed, 1 failed, 26 ignored in the lib tests on both) and was fixed on `main` by #2420 after this run. - SKIPPED on this adapter (no wave64, no heap windows): 16 GPU tests, among them `f16_programs_on_the_gpu`, `f32_programs_on_the_gpu`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu` and `heap_window_out_of_memory_falls_back_to_the_switch_form`. - In one earlier full run on this branch, the lib test binary ended with `STATUS_ACCESS_VIOLATION` after that failure. It did not recur in two lib-only reruns or the full run above, and does not involve the build script. **Regression run** `scripts/smoke.ps1` of a retail title, 60 s each, `main` and this branch's current head (warm caches, A presses scripted): ``` xcl-smoke v1 commit: 623d02e465a17497a757a4ce867f482b0a6c8f3b gpu: NVIDIA GeForce RTX 3060 title: retail-1 seconds: 60 exit: 0x0 frames shown: 1339 (PresentX 1339) presents per 2 s (last 3): 3 2 3 device removals: 0 crashes: 0 peak commit: 25957 MB ``` ``` xcl-smoke v1 commit: 8e2455097ea29f1c410e688b01ffd20fd5e74f72 gpu: NVIDIA GeForce RTX 3060 title: retail-1 seconds: 60 exit: 0x0 frames shown: 1657 (PresentX 1657) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16656 MB ``` (The `main` run went further into world loading inside its 60 s, hence its higher commit and lower present rate at the end. The change itself is build-time only.) **Not tested** - AMD; Linux / Wine (a `gnu` target). - `cargo` with `--remap-path-prefix` or a vendored build. **AI use** - Claude Code (Claude Opus 5.5) found the failure, made the change, ran the reproduction, tests and smoke runs, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
emirduran707 commented 2026-11-25 19:09:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-25T18:22:16Z.


Independent AMD RDNA4 (native wave64) test report on exact head c9dccc9a1e64b58e3b6accf03727efc4aed9fe43 (clean detached checkout, no local changes).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17; tests debug, smoke release.
  • Built and tested from a separate git worktree (D:\xcl-verify) sharing CARGO_TARGET_DIR (D:\xcl\target) with the main checkout: cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1287 passed, 3 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu refused by per-lane form; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record).
    • The 3 failures are pre-existing on unmodified main 68a284a: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722) and fuzz_validate_and_gpu_3 (seed 1599) on this GPU, plus gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier (from 50a9fde / #2074).

Regression run (60 s retail-title smoke, XCL_NETWORK=0, release)

xcl-smoke v1
commit: c9dccc9a1e64b58e3b6accf03727efc4aed9fe43
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1612 (PresentX 1612)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13920 MB

(Matched main 68a284a baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.)

Not tested

  • D3D12 debug layer; Intel GPUs.

AI use

  • Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7170815071 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#issuecomment-7170815071). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-25T18:22:16Z. --- Independent AMD RDNA4 (native wave64) test report on exact head `c9dccc9a1e64b58e3b6accf03727efc4aed9fe43` (clean detached checkout, no local changes). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, driver 32.0.31044.16), Ryzen 5 5600, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2602.17; tests debug, smoke release. - Built and tested from a separate git worktree (`D:\xcl-verify`) sharing `CARGO_TARGET_DIR` (`D:\xcl\target`) with the main checkout: `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: **1287 passed, 3 failed, 46 ignored; 8 SKIPPED** (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu` refused by per-lane form; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`). - The 3 failures are pre-existing on unmodified `main` `68a284a`: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722) and `fuzz_validate_and_gpu_3` (seed 1599) on this GPU, plus `gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier` (from `50a9fde` / #2074). **Regression run** (60 s retail-title smoke, `XCL_NETWORK=0`, release) ``` xcl-smoke v1 commit: c9dccc9a1e64b58e3b6accf03727efc4aed9fe43 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1612 (PresentX 1612) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13920 MB ``` (Matched `main` `68a284a` baseline on the same machine today: 1573 frames, 14420 MB peak, 0 device removals, 0 crashes.) **Not tested** - D3D12 debug layer; Intel GPUs. **AI use** - Antigravity with Gemini 4 Neon ran the build, test suite, and smoke run and drafted this report.
bmjask commented 2026-11-25 20:30:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-25T20:30:09Z.

Review: COMMENTED


No code-level defect found: reading CARGO_MANIFEST_DIR at build-script runtime correctly makes a reused build-script binary resolve the active checkout. This bug fix still lacks the repository-required regression test: add a shared CARGO_TARGET_DIR/two-worktree case that fails without the change where feasible. The current Windows build/test check also failed with generic exit-code metadata, so please provide a green rerun before merge.

<!-- greyfinch-sync:ivall/xcl:review:6064527624 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#pullrequestreview-6064527624). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-25T20:30:09Z. **Review:** COMMENTED --- No code-level defect found: reading CARGO_MANIFEST_DIR at build-script runtime correctly makes a reused build-script binary resolve the active checkout. This bug fix still lacks the repository-required regression test: add a shared CARGO_TARGET_DIR/two-worktree case that fails without the change where feasible. The current Windows build/test check also failed with generic exit-code metadata, so please provide a green rerun before merge.
Anon64 commented 2026-11-26 21:16:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-26T21:16:07Z.


@bmjask thanks, added and rebased onto main (8b957bec); head is now 8e245509.

Test: the hashing moved from build.rs into source_hash::source_ids(root, watch), which build.rs calls with the runtime CARGO_MANIFEST_DIR. source_hash::tests::built_ids_are_this_checkouts_sources recomputes the three IDs from the tested checkout and compares them with env!("XCL_TRANSLATOR_SOURCE_ID"), XCL_PER_LANE_SOURCE_ID and XCL_DIRECT_DXIL_SOURCE_ID. It fails when a build script reused from another worktree hashed that worktree's sources. In a single checkout it passes with or without the fix; I did not set up the two-worktree case to show it failing without it.

CI: the earlier failure was lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier on the old base, unrelated to this change; it passes after the rebase.

Tested

  • NVIDIA GeForce RTX 3060, i9-14900KF, Windows 11 26200, debug
  • cargo test --workspace -- --test-threads=4: 1399 passed, 0 failed, 31 ignored, 25 SKIPPED (the e2e tests rerun once after cargo build --workspace, which I had skipped)

AI use: Claude Code with Claude Opus 5.5 wrote the change, ran the tests and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7203557624 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#issuecomment-7203557624). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-26T21:16:07Z. --- @bmjask thanks, added and rebased onto `main` (`8b957bec`); head is now `8e245509`. **Test:** the hashing moved from `build.rs` into `source_hash::source_ids(root, watch)`, which `build.rs` calls with the runtime `CARGO_MANIFEST_DIR`. `source_hash::tests::built_ids_are_this_checkouts_sources` recomputes the three IDs from the tested checkout and compares them with `env!("XCL_TRANSLATOR_SOURCE_ID")`, `XCL_PER_LANE_SOURCE_ID` and `XCL_DIRECT_DXIL_SOURCE_ID`. It fails when a build script reused from another worktree hashed that worktree's sources. In a single checkout it passes with or without the fix; I did not set up the two-worktree case to show it failing without it. **CI:** the earlier failure was `lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier` on the old base, unrelated to this change; it passes after the rebase. **Tested** - NVIDIA GeForce RTX 3060, i9-14900KF, Windows 11 26200, debug - `cargo test --workspace -- --test-threads=4`: 1399 passed, 0 failed, 31 ignored, 25 SKIPPED (the e2e tests rerun once after `cargo build --workspace`, which I had skipped) **AI use:** Claude Code with Claude Opus 5.5 wrote the change, ran the tests and wrote this reply.
JJAutoCompare commented 2026-11-27 00:59:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T00:59:40Z.


Tested

Clean 8e2455097ea29f1c410e688b01ffd20fd5e74f72, Windows 11 build 26200, AMD Ryzen 7 3800X, Rust/Cargo 1.100.0 MSVC debug. CPU-only, with dedicated target and temp.

  • cargo test --locked -j 2 -p xcl --lib source_hash::tests:: -- --nocapture: 3 passed, 0 failed, 0 ignored, 0 skipped.
  • A scratch Node.js harness ran cargo test --offline -j 2 -vv --lib source_hash::tests::built_ids_are_this_checkouts_sources -- --exact --nocapture across synthetic checkouts A, B, and B after moving A. Three passes, zero failures, ignores or skips. Cargo reused the build script executable and checkout B's IDs matched its sources on both runs. Replacing the runtime manifest path with the compile-time path caused the expected stale-ID test failure on B and the expected missing-source error when A had moved. The unchanged control on A passed.
  • Invoked the compiled build script from outside the source root with a Windows manifest path containing spaces and non-ASCII characters. Exit 0. All three IDs matched an independent calculation and all 18 watch paths were relative.

Not tested

Full workspace suite, GPU, retail-title smoke.

AI use

Codex in T3 Code (gpt-6.2-sol for the worker run) wrote the scratch harness, ran the checks and drafted this report. The coordinator reran the checked-in group and scratch harness.

<!-- greyfinch-sync:ivall/xcl:comment:7206921358 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#issuecomment-7206921358). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T00:59:40Z. --- **Tested** Clean `8e2455097ea29f1c410e688b01ffd20fd5e74f72`, Windows 11 build 26200, AMD Ryzen 7 3800X, Rust/Cargo 1.100.0 MSVC debug. CPU-only, with dedicated target and temp. - `cargo test --locked -j 2 -p xcl --lib source_hash::tests:: -- --nocapture`: 3 passed, 0 failed, 0 ignored, 0 skipped. - A scratch Node.js harness ran `cargo test --offline -j 2 -vv --lib source_hash::tests::built_ids_are_this_checkouts_sources -- --exact --nocapture` across synthetic checkouts A, B, and B after moving A. Three passes, zero failures, ignores or skips. Cargo reused the build script executable and checkout B's IDs matched its sources on both runs. Replacing the runtime manifest path with the compile-time path caused the expected stale-ID test failure on B and the expected missing-source error when A had moved. The unchanged control on A passed. - Invoked the compiled build script from outside the source root with a Windows manifest path containing spaces and non-ASCII characters. Exit 0. All three IDs matched an independent calculation and all 18 watch paths were relative. **Not tested** Full workspace suite, GPU, retail-title smoke. **AI use** Codex in T3 Code (`gpt-6.2-sol` for the worker run) wrote the scratch harness, ran the checks and drafted this report. The coordinator reran the checked-in group and scratch harness.
ClosetPie107 commented 2026-11-27 18:00:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T18:00:46Z.


Tested on AMD / Linux: 8e245509 (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental experimental-11.0-20261112 with vkd3d-proton master ec207194 plus a local patch dropping the lpVtbl checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, x86_64-pc-windows-gnu debug build, tests run under Wine)

The head as it is (base 8b957bec), with main f9a0cb80 the same session as the baseline.

Tests (XCL_REQUIRE_GPU=wave64)

  • cargo test -p xcl --lib -- source_hash --test-threads=1: 3 passed, 0 failed, 0 ignored (includes built_ids_are_this_checkouts_sources).
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with --skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole (the first loses the RADV device here, the other two run out of memory under Wine): lib 1310 passed, 8 failed, 27 ignored; main f9a0cb80 lib the same session: 1323 passed, 9 failed, 27 ignored (--test-threads=1 and two --test-threads=4 runs). All failures are among main's. The other binaries fail the same 3 tests as on main here (e2e, pls_quota, predication_e2e). d3d12_resource_and_sync ended the process, as it does on main here.

Not tested

  • Building from a second checkout or worktree by hand (only the unit test checks that)
  • A retail title
  • Native Windows, NVIDIA / Intel

AI use

  • Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7225023836 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#issuecomment-7225023836). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-11-27T18:00:46Z. --- **Tested on AMD / Linux: `8e245509`** (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimental `experimental-11.0-20261112` with vkd3d-proton master `ec207194` plus a local patch dropping the `lpVtbl` checks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0, `x86_64-pc-windows-gnu` debug build, tests run under Wine) The head as it is (base `8b957bec`), with `main` `f9a0cb80` the same session as the baseline. **Tests** (`XCL_REQUIRE_GPU=wave64`) - `cargo test -p xcl --lib -- source_hash --test-threads=1`: **3 passed, 0 failed**, 0 ignored (includes `built_ids_are_this_checkouts_sources`). - `cargo test --workspace --no-fail-fast -- --test-threads=4` with `--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole` (the first loses the RADV device here, the other two run out of memory under Wine): lib 1310 passed, 8 failed, 27 ignored; `main` `f9a0cb80` lib the same session: 1323 passed, 9 failed, 27 ignored (`--test-threads=1` and two `--test-threads=4` runs). All failures are among `main`'s. The other binaries fail the same 3 tests as on `main` here (`e2e`, `pls_quota`, `predication_e2e`). `d3d12_resource_and_sync` ended the process, as it does on `main` here. **Not tested** - Building from a second checkout or worktree by hand (only the unit test checks that) - A retail title - Native Windows, NVIDIA / Intel **AI use** - Claude Code (Claude Opus 5.5) wrote the test scripts, ran the builds and tests on my machine and wrote this report.
Anon64 commented 2026-11-28 00:12:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-28T00:12:05Z.


@JJAutoCompare @ClosetPie107 thanks for the runs. Nothing to change from them; the second-checkout case is covered by built_ids_are_this_checkouts_sources only, as you note.

AI use: Claude Code (Claude Opus 5.5) read the reports and wrote this reply.

<!-- greyfinch-sync:ivall/xcl:comment:7230726358 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#issuecomment-7230726358). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-28T00:12:05Z. --- @JJAutoCompare @ClosetPie107 thanks for the runs. Nothing to change from them; the second-checkout case is covered by `built_ids_are_this_checkouts_sources` only, as you note. **AI use:** Claude Code (Claude Opus 5.5) read the reports and wrote this reply.
Foniass commented 2026-12-01 07:59:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:59:17Z.


Triage (#1607) – head 8e24550

#2789 made the same core fix (build.rs reads CARGO_MANIFEST_DIR at run time instead of env!) in 3 lines. Its author closed it unmerged, so this PR is the only open one. Main's build.rs still uses env!("CARGO_MANIFEST_DIR") (line 115) and now also passes that root to the new preparation_layout_id, so the rebase has to cover that input too. Moving the source lists into src/source_hash.rs goes beyond the fix: it makes the lib test built_ids_are_this_checkouts_sources possible, but in a single checkout that test passes with or without the fix.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304729799 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2411#issuecomment-7304729799). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:59:17Z. --- **Triage (#1607)** – head 8e24550 #2789 made the same core fix (`build.rs` reads `CARGO_MANIFEST_DIR` at run time instead of `env!`) in 3 lines. Its author closed it unmerged, so this PR is the only open one. Main's `build.rs` still uses `env!("CARGO_MANIFEST_DIR")` (line 115) and now also passes that root to the new `preparation_layout_id`, so the rebase has to cover that input too. Moving the source lists into `src/source_hash.rs` goes beyond the fix: it makes the lib test `built_ids_are_this_checkouts_sources` possible, but in a single checkout that test passes with or without the fix. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2411:upstream-pr/2411'
git switch 'upstream-pr/2411'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2411'
git switch 'upstream-pr/2411'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2411'
git switch 'upstream-pr/2411'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2411'
git switch 'main'
git merge --squash 'upstream-pr/2411'
git switch 'main'
git merge --ff-only 'upstream-pr/2411'
git switch 'main'
git merge 'upstream-pr/2411'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2401
No description provided.