Repository navigation
ci: build and test the Release configuration, not only Debug - #109
Merged
Merged
Conversation
CORELIB_PLAN §12.1's required steps ask for a debug *and* a release build with
the full suite run against each. Every workflow configured Debug only, so an
-O3/NDEBUG-only defect — strict aliasing or UB the optimiser acts on in the
varint window fast paths, an uninitialised field it can see through — would have
shipped green. The bench targets are the only thing CI compiles at -O3, and they
are never run there.
Turn both x86_64 legs into the matrix shape §12.1 prescribes
(`build_type: [Debug, Release]`, `fail-fast: false`), including the GCC
workflow's strict-UTF-8-OFF leg. The ppc64 cross leg and the coverage job stay
Debug: coverage needs -O0 instrumentation, and the big-endian leg's value is the
byte-swap branch, not the optimiser.
Which configurations CI builds is a property of the workflow files, so no C++
test can notice a leg going missing. test_ci_workflows.sh reads
.github/workflows/ and requires that the workflows running CTest cover both
Debug and Release, that a testing workflow never configures CMake without a
build type (the empty default is neither), and that any strategy matrix sets
fail-fast: false; `${{ matrix.build_type }}` is resolved against the workflow's
own build_type axis. It fails on the previous tree and passes on this one, and
runs as a fourth CTest suite (skipped, 77, where the workflow directory is
absent).
Verified locally across g++ 15.2 and clang 21.1, Debug and Release, plus the
Release strict-UTF-8-OFF leg: 4/4 tests pass in each, no new warnings under
-Werror at -O3.
Closes #90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #90.
The gap
CORELIB_PLAN §12.1, required step 4, asks for a debug and a release build with the full suite run against each. Every workflow configured
-DCMAKE_BUILD_TYPE=Debug; nothing under.github/workflows/ever setRelease. An-O3/NDEBUG-only defect — strict aliasing or UB the optimiser acts on in the varint window fast paths, an uninitialised field it can see through — would have shipped green. The bench targets are the only thing CI compiles at-O3, and they are never run there.The fix
Both x86_64 legs become the matrix shape §12.1 prescribes:
covering the GCC workflow's strict-UTF-8-OFF leg as well. The ppc64 cross leg and the coverage job stay Debug on purpose: coverage needs
-O0instrumentation, and the big-endian leg's value is the byte-swap branch, not the optimiser.Regression test
Which configurations CI builds is a property of the workflow files, so no C++ test can notice a leg going missing.
test/test_ci_workflows.sh(a fourth CTest suite, in the style oftest_bench_tools) reads.github/workflows/and requires thatDebugandRelease,NDEBUG, and silently so),fail-fast: false(§12.1).${{ matrix.build_type }}is resolved against the workflow's ownbuild_type:axis. It fails on the previous tree (no workflow builds and tests CMAKE_BUILD_TYPE=Release) and passes on this one; it exits 77 (CTest skip) in a source tree without.github/workflows/.Verification
Locally across g++ 15.2 and clang 21.1,
DebugandRelease, plus the Release strict-UTF-8-OFF leg: 4/4 tests pass in each, no new warnings under-Werrorat-O3.README updated: the compiler table notes the two configurations, "Build & test" says to run both, and the suite list gains the fourth entry.