Repository navigation
fix(turbo-package): pre-build, build and typecheck read their parameters (0.20.1) - #20
Merged
Merged
Conversation
…ers (0.20.1)
The verify job guarded each optional step on a key the template context
does not have:
{{if .preBuildCommand}} <- always empty
{{.parameters.preBuildCommand}} <- where the value is
orun renders job templates with .orun, .parameters and .env only, so
every guard was false from 0.18.1 through 0.20.0. Pre-build printed
"Skipping pre-build." on every component, which is where consumers keep
their tests, and a declared buildCommand or typecheckCommand was ignored
in favour of the default. The three guards now read .parameters.*.
verify.sh gains the two checks that would have caught it:
- every {{if}} / {{with}} in compositions/ must read .orun, .parameters
or .env;
- turbo-package is planned through the packed artifact with two fixture
components, and the rendered steps must run the declared commands, or
skip pre-build and use the defaults when none are declared.
Each fails on its own against the 0.20.0 template.
Consumers pin exact versions, so this changes nobody until they move
their pin. Of the 26 baselines on stack-tectonic, every turbo-package
job except lumen's is on quick-check, which plans none of the three
steps: their plans are identical with and without this fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BfmHkwWeA1oPJGBNF3QSQH
ruehowl
marked this pull request as ready for review
October 27, 2026 06:01
ruehowl
pushed a commit
to sourceplane/lumen
that referenced
this pull request
Oct 27, 2026
stack-tectonic 0.20.1 (sourceplane/stack-tectonic#20) carries the fix this branch had been patching in-tree: turbo-package's pre-build, build and typecheck guards read .parameters.*, so a component's preBuildCommand runs. The pin moves 0.20.0 -> 0.20.1, and the in-tree copy goes with everything that existed to fence it: the stack-tectonic-fixes source and binding, its blueprint module, its contract test and the doc lines that called it an exception. intent.yaml now differs from main by the pin alone. orun plan --all-envs on the published 0.20.1 against the in-tree copy CI already ran green: 92 jobs and 610 steps either way, no step differs, and the 19 pre-builds run their tests. All eleven contract suites (leak and placement included) and orun validate pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BfmHkwWeA1oPJGBNF3QSQH
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.
The bug
turbo-package's verify job guarded each optional step on a key the template context doesn't have:orun renders job templates with only
.orun,.parametersand.env. So from 0.18.1 through 0.20.0:Skipping pre-build.on every component. That's where consumers keep their tests, so no consumer's tests ever ran in this step.buildCommandortypecheckCommandand always ran the default. Nobody noticed, because every consumer declares the default anyway.Found on sourceplane/lumen#124. Its lanes switched to
verifywent green while printingSkipping pre-build.The fix
The three guards now read
.parameters.preBuildCommand,.parameters.buildCommandand.parameters.typecheckCommand.stack.yamlmoves to 0.20.1. It's byte-identical to the patched copy whose CI on lumen#124 ran 3,088 tests across 19 lanes, all green.The checks that would have caught it
scripts/verify.shpassed every affected release, because it only checks structure. It gains two stages, documented indocs/verification.md:{{if}}/{{with}}incompositions/must read.orun,.parametersor.env. The catalog has exactly three guards that don't, and they're this bug.turbo-packageis planned through the packed artifact using two fixture components onverify. The one that declares commands must render them. The one that declares none must skip pre-build and use the default build and typecheck.I restored the 0.20.0 template in a scratch copy and ran both. The guard rule names all three lines. With that rule disabled, the render check fails on the skipped pre-build.
Does it break any other repo?
No. Consumers pin exact versions, so a release changes nobody until they move their pin. I also checked what changes when they do.
I took every baseline in orun-cloud's registry: 27 repos, 26 of them on stack-tectonic. For each, I rendered the full plan twice with its own pinned version (0.18.1, 0.18.2, 0.19.0 or 0.20.0): once as published, and once with only these three guards patched.
quick-checkmain(baseline-v32)quick-checkverify)Skipping pre-build.to its test commandquick-checkplans none of the three steps, so the guards never render. No consumer declares a custombuildCommandortypecheckCommand, so nothing changes for build or typecheck anywhere. The lumen#124 row is the control: the same comparison does catch a change when one exists.stratususes stack-basalt, and orun-cloud keeps an in-tree copy that already reads.parameters.*.An earlier version of this table said 23 repos and 164 jobs. I'd mis-tallied: it's 22 and 181. The zero-difference result is unchanged.
A consumer that moves its components to
verifywill start running whatever itspreBuildCommandsays, which is the point. lumen#124 shows what that took for its suites: five harness fixes.Release
The session that merged this couldn't push tags (HTTP 403). So #21 added a Run workflow button to
release.yml, and that run cut v0.20.1 on e62730c.ghcr.io/sourceplane/stack-tectonic:0.20.1is published, and I fetched it back: its guards read.parameters.*and its compositions matchmain.🤖 Generated with Claude Code
https://claude.ai/code/session_01BfmHkwWeA1oPJGBNF3QSQH