Repository navigation
Check out CLI updater scripts after Pi exits - #237
Merged
masnwilliams merged 1 commit intoNov 21, 2026
Merged
Conversation
sjmiller609
approved these changes
Nov 21, 2026
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.
Summary
The
generatejob checked outupdater/(the CLI allowlist script) inside$GITHUB_WORKSPACEbefore running Pi. Pi runs in that same workspace with--approveand a full shell, and to itupdater/looks like an untracked directory. In the v0.154.0 release run,updater/was gone by the timeSnapshot publishable changesran, so the step failed with exit 127:Evidence:
.github/scripts/cli-update-disallowed-paths.share identical in the v0.153.0 and v0.154.0 tag trees, and theupdatercheckout ofrefs/tags/v0.154.0succeeded.updater/printed only "Post job cleanup." and stopped, which means the directory no longer existed. In the v0.153.0 run, the same cleanup ran git insideupdater/. The main SDK checkout survived in both runs.Change
Move
Checkout updater scriptsto just after Pi exits (afterStop model credentials). The snapshot then always uses a fresh copy of the allowlist, and Pi can no longer delete or edit it. The step's inputs and the pinned action SHA are unchanged, soactions.lockdoesn't need updating.Testing
I checked that the YAML parses. I haven't run the workflow on this branch. After merge, I'll re-run it for v0.154.0 via
workflow_dispatch.Note
Low Risk
Workflow ordering only; no change to script logic or publish validation, and lowers risk of flaky generate job failures.
Overview
Fixes Update CLI Coverage failures when Snapshot publishable changes could not find
updater/.github/scripts/cli-update-disallowed-paths.sh(exit 127).The Checkout updater scripts step is moved from before the Pi agent run to immediately after Stop model credentials. Pi runs with full workspace access and had removed or altered the sparse
updater/checkout; the snapshot step now always gets a fresh copy of the allowlist script after the agent finishes. Step configuration (sparse checkout path, action pin) is unchanged.Reviewed by Cursor Bugbot for commit 98e3b9e. Bugbot is set up for automated code reviews on this repo. Configure here.