CI.md: four lessons a second platform taught #9

Open
pallas wants to merge 1 commit from pallas/ci-lessons-nov into main
Member

Four lessons into skills/CI.md, each from a release path that ran green on one platform and red on the second one it was ported to. Nothing here names the repository, host or person it came from: the mechanism is what travels.

  1. Environment drift — Take the toolchain version from the manifest of the thing you build. A job pinned its toolchain from a sibling module's manifest while the dependency it compiled asked for a newer one, so the toolchain manager fetched the newer one mid-build: outside the pin, dependent on the module proxy. The same job, with the dependency's own version installed and its tarball's sha pinned, is green.
  2. Run the gate the way CI runs it — A container job has only what its image carries. A scan moved from the runner's default image into a container failed there, and the wrapper's own traceback hid the missing tool; the stand-in now carries the tool's exit code and stderr.
  3. Porting a workflow to another platform — An expression that is a ternary on one platform is empty on another. startsWith(...) && ref_name || 'devel' produced an empty value on the second platform, and the failure landed steps later as an unbound variable.
  4. Artifacts — A repair step can add tags and fields you did not ask for. A wheel repair added every compatibility alias its analysis allowed, so a check asserting a single tag refused a correct artifact; the two ways out are named, retag to the one promise or read the tag set.

tools/corpus-guard/prove.sh: ALL PROVED (the shared clone still refuses, a worktree commits, --check names a fault, --off disarms).

Four lessons into `skills/CI.md`, each from a release path that ran green on one platform and red on the second one it was ported to. Nothing here names the repository, host or person it came from: the mechanism is what travels. 1. **Environment drift** — *Take the toolchain version from the manifest of the thing you build.* A job pinned its toolchain from a sibling module's manifest while the dependency it compiled asked for a newer one, so the toolchain manager fetched the newer one mid-build: outside the pin, dependent on the module proxy. The same job, with the dependency's own version installed and its tarball's sha pinned, is green. 2. **Run the gate the way CI runs it** — *A container job has only what its image carries.* A scan moved from the runner's default image into a container failed there, and the wrapper's own traceback hid the missing tool; the stand-in now carries the tool's exit code and stderr. 3. **Porting a workflow to another platform** — *An expression that is a ternary on one platform is empty on another.* `startsWith(...) && ref_name || 'devel'` produced an empty value on the second platform, and the failure landed steps later as an unbound variable. 4. **Artifacts** — *A repair step can add tags and fields you did not ask for.* A wheel repair added every compatibility alias its analysis allowed, so a check asserting a single tag refused a correct artifact; the two ways out are named, retag to the one promise or read the tag set. `tools/corpus-guard/prove.sh`: `ALL PROVED` (the shared clone still refuses, a worktree commits, `--check` names a fault, `--off` disarms).
CI.md: four lessons from a release path ported to a second platform
All checks were successful
corpus guard / shared-clone-commit (pull_request) Successful in 3s
f1613010d0
Each was learned by a job that was green where it was written and red where it was
ported, and none names the repository it came from: what travels is the mechanism.

- Take the toolchain version from the manifest of the thing you build, not from a
  sibling module in the same repository: a newer requirement there makes the toolchain
  manager fetch one mid-build, outside every pin the step made.
- A container job has only what its image carries, and a wrapper's own traceback hides
  the tool that was missing.
- `a && b || c` is a ternary on one platform and empty on another, so the failure lands
  steps later as an unbound variable.
- A packaging repair step adds the compatibility tags its analysis allows, so a check
  that asserts one artifact name can refuse a correct artifact; decide whether the
  promise is one tag or a compatible set, and make the artifact and the check agree.
All checks were successful
corpus guard / shared-clone-commit (pull_request) Successful in 3s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin pallas/ci-lessons-nov:pallas/ci-lessons-nov
git switch pallas/ci-lessons-nov
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-corpus!9
No description provided.