Skip to content

Retire the ~/.bash_logout workaround now v0 carries the build-lectures fix - #120

Merged
mmcky merged 1 commit into
mainfrom
chore/retire-bash-logout-workaround
Aug 5, 2026
Merged

mmcky merged 1 commit into
mainfrom
chore/retire-bash-logout-workaround

Conversation

@mmcky

@mmcky mmcky commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Discharges CONTRIBUTING release step 5 for v0.10.0, and closes item 1 of #116 — the one knowingly-temporary thing in the tree.

Why it existed

build-jupyter-cache calls build-lectures at a pinned @v0 ref, and GitHub forbids expressions in uses:, so that copy could not pick up a sibling fix until the floating tag moved. Until then it still ended its login-shell build step with the exit builtin, which ~/.bash_logout corrupts on hosted runners — clear_console fails headless at SHLVL=1 and its status overrides the one passed to exit, turning a successful build into exit 1. bjc-smoke neutralised the logout hook to work around it.

v0 now points at b3af228 (v0.10.0), which carries (exit "$BUILD_EXIT_CODE"). Verified from a fresh clone of the remote tag: the fixed form is present and the old exit $BUILD_EXIT_CODE is gone.

Why removal is coverage, not tidying

While the step was present, the job destroyed the very condition that triggers the bug — so it could not have detected a bash_logout-class regression reaching consumers through the pinned chain. Removal restores that.

This PR is its own proof. It touches .github/workflows/test-actions.yml, a covered path, so the harness runs on it and bjc-smoke must go green with ~/.bash_logout present on the runner and no workaround. That green run is the evidence that v0's build-lectures propagates status correctly through the pinned chain — the first time that has ever been tested.

The tripwire

CONTRIBUTING step 5's "Currently outstanding" register is blanked rather than left pointing at a step that no longer exists. A stale tripwire is worse than none: the next releaser would grep for something already gone, conclude the instruction was noise, and be that much less likely to trust it when it does matter. The instruction to add an entry when introducing a workaround stays.

Side effect

The needs: env-seed comment on bjc-smoke is now accurate. It claimed the internal setup-environment@v0 could reuse env-seed's conda cache "(same key format today)", but v0's cache path differed from the PR's and path is part of the actions/cache version — so the keys matched while the versions did not, and reuse never actually happened. v0.10.0 ships the path fix, so it does now. Expect bjc-smoke to get slightly faster.

Remaining @v0 in the file

Four references remain, all permanent explanatory comments about the structural limitation (lines 36, 39, 465, 472) — not workarounds, and they should stay.

Refs #116, #100

🤖 Generated with Claude Code

CONTRIBUTING release step 5, discharged for v0.10.0.

`bjc-smoke` carried `rm -f ~/.bash_logout` because build-jupyter-cache reaches
build-lectures at the pinned @v0 ref, and that copy still ended its login-shell
build step with the `exit` builtin — which ~/.bash_logout corrupts on hosted
runners. v0 now points at b3af228, which carries `(exit "$BUILD_EXIT_CODE")`,
so the workaround is obsolete.

Removing it is not just tidying. While the step was present the job destroyed
the very condition that triggers the bug, so it could not have detected a
bash_logout-class regression reaching consumers through the pinned chain.
Removal restores that coverage, and this PR is the proof: it touches a covered
path, so bjc-smoke runs with ~/.bash_logout present on the runner and must go
green unaided.

Also blanks the "Currently outstanding" register in CONTRIBUTING rather than
leaving it pointing at a step that no longer exists — a stale tripwire is
worse than none, since the next releaser would hunt for something already gone.

Side effect worth noting: the `needs: env-seed` comment on bjc-smoke is now
accurate. It claimed the internal setup-environment@v0 could reuse env-seed's
conda cache, but v0's cache path differed from the PR's, and `path` is part of
the actions/cache version — so the keys matched while the versions did not and
reuse never actually happened. v0.10.0 ships the path fix, so it does now.

Refs #116, #100

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings August 5, 2026 02:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a now-obsolete hosted-runner workaround from the action test harness after @v0 has advanced to a release that includes the build-lectures login-shell exit-status fix, and updates the release checklist “tripwire” accordingly.

Changes:

  • Remove the rm -f ~/.bash_logout workaround step from the bjc-smoke job in the action harness.
  • Update CONTRIBUTING.md release step 5 to mark “Currently outstanding” workarounds as none, while retaining the instruction to register future temporary workarounds.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CONTRIBUTING.md Clears the “currently outstanding” workaround register and keeps the guidance to record future @v0 workarounds.
.github/workflows/test-actions.yml Drops the ~/.bash_logout removal step so bjc-smoke exercises the real hosted-runner condition again.

@mmcky
mmcky merged commit ac08673 into main Aug 5, 2026
15 checks passed
@mmcky
mmcky deleted the chore/retire-bash-logout-workaround branch August 5, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants