fix(build): WIGOLO_SKIP_PREPARE honours 0/false/off instead of skipping on them - #520
Merged
KnockOutEZ merged 2 commits intoAug 29, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
WIGOLO_SKIP_PREPARE is gated on bare truthiness, so =0/=false/=off all mean SKIP — the inverse of the operator's intent, and the opposite of the rule autoLaunchDisabled establishes one file over for the same class. Two arms: the off spellings must BUILD and must not print the skip line, and the values CI actually sets must still skip and still print it.
…ng on them The opt-out read any non-empty value as "skip", so a leaked WIGOLO_SKIP_PREPARE=0 made a local npm ci exit 0 with an unbuilt tree and surfaced weeks later as module-not-found. Normalize the way the phase's own rule does: trim, lowercase, and treat 0/false/off as off. Every value CI sets still skips, and still prints the line those legs grep.
KnockOutEZ
force-pushed
the
sd-192-fix-build-wigolo-skip-prepare-is
branch
from
August 29, 2026 00:14
03211e9 to
4ad94c7
Compare
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 wigolo-studio-run#192.
scripts/prepare-build.mjsgated its opt-out on bare truthiness —if (process.env.WIGOLO_SKIP_PREPARE)— soWIGOLO_SKIP_PREPARE=0,=falseand=offall meant skip, the inverse of what the operator wrote. The same phase established the opposite rule one file over:autoLaunchDisabled(src/studio/auto-launch.ts) trims, lowercases and compares against{'0','false','off'}for exactly this class. The two flags this program ships disagreed about what0means.The fail direction is quiet rather than loud: a local
npm ciunder a leakedWIGOLO_SKIP_PREPARE=0exits 0 with an unbuilt tree, and the absentdist/surfaces much later as module-not-found in whatever consumes the package.skipRequested()now trims, lowercases, and treats0/false/offas off; any other non-empty value still skips, so=1— the only spelling CI and the Dockerfile set — is unchanged and still prints the line those legs grep. A whitespace-only value falls back to the unset default and builds (recorded as A-192-1 with its reversal condition).Demo — the off spellings driven through the hook, before and after
Tests
Two arms extend
tests/unit/prepare-build.test.tsrather than forking it. Red-then-green is a commit boundary:81fc6022(tests) is the direct parent of4ad94c78(fix), and against unfixed source the off-spelling arm reds with"0": expected false to be true.Both arms are mutation-proved to have teeth: inverting the guard to
SKIP_OFF_VALUES.has(value)reds 3 arms — the new off-spelling arm ("0": expected false to be true), the new on-spelling anti-vacuity twin ("1": expected true to be false) and the pre-existing skip arm — restored by reverse-edit and re-verified green.CI deferred — quota.