Repository navigation
fix(ci): stop losing SIGINT in secret cancellation test - #162
Merged
Merged
Conversation
The interrupted-refresh case marked readiness from the zsh producer before it forked `sleep 15`. A SIGINT landing between that fork and the exec is dropped, so sleep ran its full 15s and the 5s communicate timeout fired. Mark readiness from the exec'd child instead.
Homebrew disabled the unmaintained tldr formula on 2025-10-24 and removed it from homebrew-core on 2026-10-25, naming tlrc (the official tldr client) as its replacement. formulae.brew.sh now returns 404 for tldr, so `mise bootstrap` on macOS fails before installing anything. tlrc still installs a `tldr` binary, so the command name is unchanged.
…1126 # Conflicts: # README.md # modules/packages/mise.macos.toml
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.
Fixes the red
miseworkflow onmain: https://github.com/TechDufus/dotfiles/actions/runs/45429500769 (head979b4f3).There were two separate failures. Each one has its own commit:
1e059dffix(ci): stop losing SIGINT in secret cancellation test (archjob)1c8dd24fix(packages): install tlrc instead of removed tldr formula (macosjob)Why CI was red
macosjob: thetldrHomebrew formula no longer existsThe first version of this PR got this wrong. It said the
macosjob was red only because no hosted runner picked it up, and that nothing in the repo could fix it. That was true for runs 45429500769 and 45428723914, where the job was cancelled before any steps ran. But every time the job did get a runner after 2026-10-24, it failed in "Dry-run macos": runs 41215733476 (10-31), 41563356536, 43917532207, and this PR's run 45908653683:modules/packages/mise.macos.tomldeclares"brew:tldr". In homebrew-core, the formula was deprecated on 2024-10-24 and disabled on 2025-10-24 (because: :unmaintained, replacement_formula: "tlrc"). Commita5c5d03a6a("tldr: remove formula") deleted it on 2026-10-25. The last greenmacosrun was 40115926708, on 2026-10-24.tldrisn't an alias or old name of any current formula, so mise's alias index can't resolve it, andmise bootstrapstops before installing anything. This would break a real macOS bootstrap too, not just CI.archjob, step "Tests (omarchy)": a flaky test, not a code regressiontest:zshfailed inmodules/zsh/tests/test_secret_loading.sh, in the "cancellation preserves cache…" case:The recipe in that case did
print ready > "$OP_CONFIG_DIR/ready"and thensleep 15. The test sends SIGINT to the process group as soon asreadyexists. Sometimes the signal arrives after zsh has forked thesleepchild but before that child has exec'd. zsh's handler in the child drops the signal,exec sleepresets the disposition, andsleepruns the full 15 s. Both zsh shells sit insigsuspendwaiting for it, socommunicate(timeout=5)fails.Evidence:
92d5647, used the samezsh-5.9.2-1and passed this case. The only changes from92d5647to979b4f3are omp/codex config and README.TimeoutExpired. After a timeout,ps -g <pgid>showed bothzsh -dfc … secret --quietprocesses insigsuspendandsleep 15inhrtimer_nanosleep, sosleephad survived the SIGINT.The loader is fine. The fixture wrote its readiness marker too early.
Fix
modules/packages/mise.macos.toml:"brew:tldr"→"brew:tlrc". Homebrew namedtlrc, the official tldr-pages client, as the replacement. It is a bottled formula in homebrew-core, not deprecated, and it installs atldrbinary with man page and completions, so the command staystldr. Nothing else in the repo refers totldr.README.md(migration notes): records the switch and the manual cleanup (brew uninstall tldr). An existingtldrkeg is not removed automatically, and it ships the samebin/tldr. This follows the repo rule that retiring something comes with documented manual cleanup.modules/zsh/tests/test_secret_loading.sh: the interrupted-refresh recipe now has the external child create the readiness marker just before it execs the long-running command:Once
readyexists, the foreground child is a process with the default SIGINT disposition (sh, thensleepviaexec), and both zsh shells are already waiting on it, so the SIGINT can't be lost. All assertions are unchanged: the test still requires a non-zero exit, an untouched cache, no staged files, and a released lock that lets a retry succeed.No checks were skipped or weakened, and no workflow file changed.
Verification
All of this ran on Debian 13 (x86_64), zsh 5.9, Python 3.13, in isolated HOME/XDG directories with
moduleslinked as~/.config/mise/conf.d.tldr→tlrc, using mise 2026.11.14 (the version in the failing macOS log):formulae.brew.sh/api/formula/tldr.json→ 404.tlrc.json→ 200,deprecated: false,disabled: false.MISE_ENV=macos mise bootstrap --dry-run --yes --force-dotfiles. Linux resolves the same macOS package list against Linuxbrew bottles:1e059df):brew: failed to fetch Homebrew formula 'tldr': … 404pour tlrc/1.13.1 (requested), and notldrerror.karabiner-elementsis "not available for this platform (x86_64_linux)". It's a macOS-only cask.hashicorp/tap/terraformfails too. Its published API returns 404, so mise evaluatesFormula/terraform.rbwith a Ruby ≥ 3. With no Ruby onPATH, mise says it needs one. With mise's own Ruby 3.4.13 onPATH, the evaluation fails withPermission denied (os error 13)inside mise's Landlock metadata sandbox, which is the Linux-only implementation. On macOS, mise uses its Seatbelt sandbox instead, and themacos-26-arm64image has Ruby 3.4.13.tldrfailure stopped package resolution before that tap was evaluated. Sotldrmay have been hiding a second macOS failure. The last time this tap resolved on the macOS runner was run 40115926708 (build terraform/1.17.0 from source), with mise 2026.10.18. mise has changedbrew/tap.rs9 times since then, so that run doesn't prove 2026.11.14 behaves the same.brew:/brew-cask:entry inmodules/(66) checked against formulae.brew.sh, excluding the 4 third-party tap formulae. Every cask and every other formula returned 200 and isn't deprecated or disabled, except three:tldris missing;tmateis deprecated (see Risk); andpython404s by name but is an alias that mise resolves ('python' resolves to 'python@3.15', a warning, not an error).MISE_ENV=macos mise run --jobs 1 'test:*'(all 9 tasks, including the macOS-onlytest:hammerspoon, using Lua 5.4.7 built locally) exited 0.Secret cancellation test:
fails=8 of 100before the fix,fails=0 of 300after.bash modules/zsh/tests/test_secret_loading.sh: all casesok.MISE_TASK_RUN_AUTO_INSTALL=false MISE_AUTO_ENV=true MISE_ENV=omarchy mise run --jobs 1 test:zshexited 0.arch,applyandsystem-sudoersjobs passed.Not verified locally:
macosjob itself. Both need a macOS host. The checks above ran on Linux and are not proof for macOS.tlrcreplacing an already-installedtldrkeg on a live Mac. I documented the cleanup instead.Risk
Low. One package declaration changes on macOS, there's one README note, and one test fixture line changes.
tldrkeg will have two formulae that both shipbin/tldruntil someone runsbrew uninstall tldr, as the README note says. [INFERENCE] Depending on how mise links kegs, that could cause a link conflict on the next bootstrap. I haven't observed this.hashicorp/tap/terraformhasn't been resolved on macOS with mise 2026.11.14 yet (see Verification). If tap evaluation fails there, themacosdry-run will stay red with a terraform error. That would be a separate failure thattldrwas hiding, and this PR doesn't change it.brew:tmateis deprecated as unmaintained, withdisable_date: 2026-12-11and no replacement named. [INFERENCE] Once it's disabled, it will probably fail the macOS dry-run the same waytldrdid. I left it alone because it isn't failing today and picking a replacement is the owner's call.macosjob can't get a hosted runner, the workflow may still show as cancelled for that reason alone.Opened as a draft by Beru's red-CI loop (omp on the Grok Bot box). Nothing merges without TechDufus.