1 minor finding
Findings
[minor] · Windows CI retains -Werror=dev despite upstream removal
Both Windows CI jobs retain the pre-existing -Werror=dev, so CMake developer warnings still abort configuration despite this backport; failure on the current runner image is unconfirmed.
Location: ci/test/03_test_script.sh:127 (head).
Details and suggested fix
Upstream 3d92fe8bbdf8c0b5e14ad824c792c53a697137a7 removes -Werror=dev from .github/ci-windows.py as well as the two scripts changed here. On 30.x, the Windows equivalent lives inline in .github/workflows/ci.yml: its Generate build system step still passes the flag for both the standard and fuzz jobs. These jobs use the runner's unpinned CMake, and the vs2022 preset does not override developer warnings. Consequently, when that CMake emits the warnings motivating #36927, Windows configuration remains fatal while the other CI paths receive the fix. Remove -Werror=dev from this workflow command in 9006b9cb1696957659c0cd418805de5a8fb7e242, and note that it adapts the upstream Windows hunk to 30.x's inline workflow.
Backport verdict: Incomplete
This backport is incomplete. Three of the four upstream commits match their originals, but one adaptation is missing. Upstream commit 3d92fe8bbd removed -Werror=dev from the native Windows CI configure step in .github/ci-windows.py. That file doesn't exist on 30.x, where the same step is inline at .github/workflows/ci.yml:234 (cmake -B build -Werror=dev --preset vs2022 ...). The backport dropped the hunk and did not port it to ci.yml. Neither the PR nor the commit message gives a reason for leaving it out. As a result, the 30.x Windows job still turns CMake dev warnings into errors. That is the failure #36927 says it addresses: the PR names the Windows job as one affected once a newer CMake is used, and says the branches fail to configure with CMake >= 4.5.0. The other changes match upstream: the dev-mode preset change, the ci-test-each-commit-exec.py and 03_test_script.sh changes, the depends WORK_PATH relocation, and the release notes.
Evidence:
- The packet lists both source PRs as complete: #35765 has 1 commit, #36927 has 2, and neither has missing or already-in-base commits. All three originals (47be6cda3b, 3d92fe8bbd, 01491f22b2) have backport commits (df0d358c51, 9006b9cb16, bdd93ef627), each with a Rebased-From trailer. a9aa6788ad is a branch-only release-notes commit.
- 47be6cda3b → df0d358c51: the only change removes
"errors": {"dev": true}from the dev-mode preset. At the head, CMakePresets.json:60-85 has noerrorskey in any preset. - 3d92fe8bbd → 9006b9cb16: the ci-test-each-commit-exec.py hunk was correctly adapted to 30.x (the context there is
"build", notbuild_dir). In ci/test/03_test_script.sh, the flag was dropped from BITCOIN_CONFIG_ALL, using the branch's unquoted prefix form. The macOS native jobs run through ci/test_run_all.sh (ci.yml:153-156), so this change covers them. - The gap in 3d92fe8bbd: the original also removed
"-Werror=dev"from.github/ci-windows.py:71(upstream before the commit; it configures with--preset=vs2026). The range-diff shows this hunk was dropped.ci-windows.pyis not tracked on 30.x, but the equivalent native Windows configure step at.github/workflows/ci.yml:234(windows-2022 runner,--preset vs2022) still passes-Werror=devat the head. The PR doesn't touch it, and a base search shows the same line. - At the head, the only other
-Werror=devis in contrib/guix/libexec/build.sh:246. Upstream also kept-Werror=devin its Guix scripts at 3d92fe8bbd (build_linux_gui.sh, build_macos_gui.sh, build_win_gui.sh), so keeping it here matches upstream. - 01491f22b2 → bdd93ef627: the hunks in depends/Makefile, depends/funcs.mk and depends/packages.md match the original. At the head,
base_local_source_dir=$(WORK_PATH)/local-sourcesis defined at Makefile:68, beforeinclude funcs.mk. funcs.mk:104 sends_local_dirpackages to it, and funcs.mk:114 puts the fetched stamp under$$($(1)_source_dir). The$(1)_fetchedrule (funcs.mk:249-255) and check_or_remove_sources (Makefile:247-251) already use$(1)_source_dir, as they do upstream.make cleanremoves WORK_PATH, so it also removes local-sources. 30.x has a local package (native_libmultiprocess.mk:2,_local_dir=../src/ipc/libmultiprocess), so the fix applies to this branch. An issue comment also reports the bug on 30.x Guix builds. - The 30.x
fetch_local_dir_sha256(funcs.mk:48-60) does not have upstream's touch/sort normalization (upstream funcs.mk:47-63). That is an existing branch difference outside this commit. The relocated paths behave the same either way. However, the commit message's line about mtimes being set to 2000-01-01 describes upstream behavior, not 30.x. - Release notes (doc/release-notes.md:45-60) add #35765 and #36927 under Build, using their PR titles, and add fanquake and Ryan Ofsky to the credits in alphabetical order.
Required fixes:
- Finish the 3d92fe8bbd backport by removing
-Werror=devfrom the native Windows configure command at.github/workflows/ci.yml:234. This is the 30.x equivalent of the dropped.github/ci-windows.pyhunk. If it is left out on purpose, say why in the commit or PR, given that #36927 lists the Windows job as affected.
Limitations:
- No builds, CI runs or Guix builds were run or checked. I couldn't verify which CMake version the windows-2022 runner currently has, so whether the Windows job is failing now is unconfirmed. The gap is a fidelity gap against upstream's stated intent either way.
- I did not verify end-to-end Guix behavior with the relocated local-source archives, such as build-ID stability between host and container. That depends on the 30.x tarball generation, which lacks upstream's mtime normalization.
- The historical issue comments were truncated. I relied on the visible text, the source PR descriptions and the pinned code.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Local packages were introduced to build dependency sources already present in the checkout, while retaining depends' package identity and rebuild machinery. The original documentation explicitly describes treating a local directory as a download source, saving its tarball in sources/, including its checksum in the package build ID, and caching the tarball for efficiency.
This explains the archive and checksum stamp as adapters into the existing depends pipeline, rather than independently distributed source artifacts. The immediate use was the libmultiprocess subtree, whose native code generator still needed a depends build during cross-compilation. Relocating these artifacts changes their storage domain, not that underlying purpose.
The inspected historical explanation does not present cross-checkout sharing as an intentional reason for putting local archives in SOURCES_PATH. A subsequent implementation discussion explicitly says shared SOURCES_PATH usage was not considered when the feature was introduced.
The historical record therefore does not establish preservation of shared local snapshots as a design requirement. It distinguishes the intentional sharing of downloaded sources from the unintended reuse of checkout-generated archives. This bears directly on the change from SOURCES_PATH to WORK_PATH/local-sources.
Source 1 · Source 2 · Source 3
The mtime-based cache was deliberately kept inexpensive because archive checking occurs while parsing the makefiles—even for variable-printing commands. The discussion separates cross-checkout isolation from stronger content-based invalidation, and records concern about repeatedly processing potentially larger local source trees.
The pinned change retains the existing refresh mechanism while moving both archive and fetched stamp together. Historical reasoning supports treating cache location and invalidation policy as separate questions; it does not establish that a new location alone addresses every source-identity concern.
Ralph's inferences
The original SOURCES_PATH placement appears to have been inherited from the common download-source machinery, including its fetched-stamp location, rather than introduced as a separate local-package handoff protocol.
The introduction added local archive generation while retaining the existing source-directory assignment. At the pinned base, archives and fetched stamps both use SOURCES_PATH; at the head, both follow the selected package source directory. This explains their original colocation without inventing an explicit historical requirement to share them.
Guix's outer download/build contract explicitly requires downloaded sources to cross the phase boundary because the build container has no network access. It also supplies the complete checkout at /bitcoin, so the inspected orchestration does not establish an equivalent requirement to transport pre-generated local archives through SOURCES_PATH.
The script downloads dependencies before entering the container, shares an overridden SOURCES_PATH, and separately mounts the checkout. Local archive generation can operate from checkout contents at makefile parse time. This supports distinguishing network-fetched inputs from locally regenerable snapshots, but the uninspected inner build phase prevents a complete compatibility conclusion.
WORK_PATH is checkout-local by default, not inherently private under every override. The inspected Guix wrapper does not expose it as a preserved or explicitly forwarded cross-phase cache setting.
The makefile assigns WORK_PATH to depends/work and already uses it for build, staging, and temporary download directories. A command-line override can change that location, including making it shared; the relocation therefore provides default isolation rather than unconditional isolation. Guix's explicit preserved-directory and container-variable lists include SOURCES_PATH, BASE_CACHE, and SDK_PATH, but not WORK_PATH.