Backport verdict: Needs clarification
Fidelity could not be established from the available evidence.
Evidence:
- Accounting for the commits: the packet has
sources: {}, lists both 47be6cda3bdf917b2c0fff3e1c932a7fab9b9781 and 3d92fe8bbdf8c0b5e14ad824c792c53a697137a7 as untagged, and has no Rebased-From provenance. The PR description says the change applies to the 32.x/31.x/30.x branches as an alternative to backporting a secp256k1 subtree update. That matches fanquake's comment on issue #36913 (7007283917) that a fix is needed on the release branches 'absent other changes'. Both commits are therefore treated as intentional branch-only changes, not missing upstream originals. - The target is the 32.x branch: CMakeLists.txt:30 at head sets CLIENT_VERSION_MAJOR to 32, matching the [32.x] title.
- The problem still exists on this branch. src/secp256k1/cmake/TryAppendCFlags.cmake:22 at head is still
add_compile_options(${ARGV}), the exact location in the #36913 error. Other directory-leveladd_compile_options/add_compile_definitionscalls remain in src/secp256k1, src/minisketch and src/leveldb (search results). So a narrow fix to a single site would not have been enough on this branch, which supports relaxing the gate instead. - Commit 47be6cda: base CMakePresets.json:66 has
"errors": {"dev": true}, added by 44097ddb ('cmake: enable -Werror=dev in dev-mode preset'). At head the line is gone and the dev-mode preset (lines 62-87) is still valid JSON with all cacheVariables unchanged. - Commit 3d92fe8b: the base search shows
-Werror=devin .github/ci-test-each-commit-exec.py:31, .github/ci-windows.py:71 and ci/test/03_test_script.sh:112. At head all three are removed. ci/test/03_test_script.sh:112 is nowBITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL '-DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR'"with correct quoting. The Python command lists in ci-test-each-commit-exec.py (lines 27-44) and ci-windows.py (lines 67-78) are still syntactically valid. - The two commits depend on each other. About 20 ci/test/00_setup_env_*.sh files and ci-test-each-commit-exec.py:41 use
--preset=dev-mode, and 03_test_script.sh added-Werror=devto every container/macOS CI job on its own. The preset change alone would therefore not fix CI on runners with the newer CMake, so the CI commit is required, not scope creep. - Leftovers: at head,
-Werror=devappears only in contrib/guix/libexec/build_linux_gui.sh:65, build_macos_gui.sh:55 and build_win_gui.sh:60, which were already there at base (683ae4c5). Guix gets CMake from the pinnedcmake-minimalin contrib/guix/manifest_build.scm:3,273, so a host CMake upgrade does not reach it. Keeping the gate there preserves some coverage and fits the PR's focus on local dev-mode and CI. No CMAKE_ERROR_DEVELOPER_WARNINGS or other -Werror=dev/deprecated settings remain. - Historical context: the gate was added by #32937 (CI, Guix, dev-mode) and grew out of the #31665/#32865 configuration-warning work. The PR trades that early detection for robustness against new CMake versions on the maintenance branches. The #36913 discussion records that the breakage hit both CI and local developer builds, which justifies changing both the preset and CI.
- Release notes: this only touches the build and CI, not shipped behaviour. No release-note entry is needed in the PR; maintenance-release notes are usually compiled when the release is prepared.
Limitations:
- The 'branch-only' status comes from the PR description and the #36913 discussion. I could not inspect master or the sibling 31.x/30.x PRs to confirm there is no matching upstream commit or to check consistency between branches.
- I did not verify that the pinned Guix toolchain's CMake version is below 4.5, so it is unconfirmed that keeping
-Werror=devin the Guix GUI scripts is safe from this regression. - No builds, CI runs or configure steps were executed or supplied as runner records. That the preset and CI scripts configure correctly with CMake >= 4.5 was concluded from reading the source only.
- The successor work (#32865 AUTHOR_WARNING, #33144) was not inspected, so I cannot list which configure-time author warnings (such as the old Python-minimum warning that hid skipped tests) will now pass CI silently on this branch.
- Truncated discussion comments (e.g. maflcko's proposed patch for 'mutable' CI tasks) were not fully available.
- No resolved Rebased-From provenance
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Related configuration-warning work had a purpose beyond catching build-script mistakes: a Python version below the required minimum produced warnings while CI silently skipped utils and rpcauth tests. The proposal sought fatal configuration warnings, and was subsequently closed in favor of an AUTHOR_WARNING-based successor.
The historical motivation included preserving meaningful CI coverage, not merely enforcing CMake style. This qualifies any claim that the removed gate was exclusively cosmetic. The uninspected successor and current warning sites prevent establishing exactly which such checks remain covered by this gate.
Source 1 · Source 2 · Source 3
The CMake-upgrade incident involved a non-target-directive diagnostic in bundled secp256k1. The historical issue connected it to CMake 4.5 and recorded that updating CI alone would not address developers whose local builds had also begun failing after a CMake upgrade.
This supplies a concrete reason to consider both CI and local developer workflows: the failure was not confined to CI configuration. It supports addressing both entry points, without establishing that every warning promoted by the gate is harmless.
Source 1 · Source 2 · Source 3
Ralph's inferences
The inspected history supports treating this primarily as a build-quality and test-coverage gate, not as an established maintenance-branch compatibility guarantee. However, it does not support reducing its purpose to catching development mistakes alone.
Relaxation trades automatic detection of author warnings and potentially incomplete configurations for resilience to diagnostics introduced by newer build tools. The CMake incident explains the pressure for relaxation in both local dev-mode and CI, but does not by itself justify the full breadth of removing the gate everywhere.
Source 1 · Source 2 · Source 3
Unresolved disagreements
The incident discussion exposed different approaches: one participant characterized the warning as harmless and proposed avoiding warning-induced failures on mutable CI tasks, with dedicated nightly monitoring; another emphasized that absent other changes, fixes needed backporting and CI-only changes left local developers affected.
The inspected exchange explains the competing priorities of stable maintenance workflows and early diagnostic enforcement. It does not resolve whether a broad gate removal, narrower CI treatment, or underlying build-system fixes best preserves the intended checks.