Repository navigation
fix(ci): restore the macOS else branch that #195 destroyed - #197
Merged
Merged
Conversation
#195 patched two ctest sites with a line-based script that assumed both had the same five-line body. The macOS site is written more compactly, so the patch consumed the `else` line and the first line of its ctest call, and left the remainder dangling: -R "${STRESS_REGEX}" --output-on-failure --parallel --repeat until-pass:3 ... \ -E "${STRESS_REGEX}" fi Two consequences, and the quiet one is worse: * On push, the shell reached the orphaned line and tried to run it: .../5b22a0c1.sh: line 33: --output-on-failure: command not found ##[error]Process completed with exit code 127 which is how package-macos / libcvc-release failed. * On pull_request the `else` branch no longer existed, so the condition was false and NOTHING ran. macOS PR jobs would have reported success having executed zero tests. The else branch is restored, so both sites are now identical in behaviour. Verified by evaluating each block with the GitHub expressions substituted and ctest stubbed, counting invocations per path: push/Release 2 (light --parallel, then heavy --parallel 1) push/Debug 1 (light only; heavy excluded) pull_request/* 1 (light only) for BOTH blocks. No path runs zero -- which is the check that would have caught this, and the one #195 did not make. `bash -n` alone passed on the broken file, because dangling arguments are valid syntax.
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.
Regression from my own #195. It patched two ctest sites with a line-based
script that assumed both had the same five-line body. The macOS site is written
more compactly, so the patch consumed the
elseline and the first line of itsctest call, leaving the remainder dangling:
Two consequences — the quiet one is worse
On push, the shell reached the orphaned line and tried to execute it:
That is how
package-macos / libcvc-releasefailed.On pull_request, the
elsebranch no longer existed. The condition wasfalse, so nothing ran — macOS PR jobs would have reported success having
executed zero tests.
Fix
The
elsebranch is restored, so both sites are identical in behaviour again.Verification
Each block evaluated with the GitHub expressions substituted and
cteststubbed, counting actual invocations per path — for both blocks:
--parallel, then heavy--parallel 1)No path runs zero. That is the check that would have caught this, and the
one #195 did not make:
bash -npassed on the broken file, because danglingarguments are perfectly valid syntax. Syntax-checking proved the file parsed;
it could not prove the file did anything.