Skip to content

Check out CLI updater scripts after Pi exits - #237

Merged
masnwilliams merged 1 commit into
mainfrom
hypeship/cli-coverage-checkout-updater-after-agent
Nov 21, 2026
Merged

masnwilliams merged 1 commit into
mainfrom
hypeship/cli-coverage-checkout-updater-after-agent

Conversation

@masnwilliams

@masnwilliams masnwilliams commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The generate job checked out updater/ (the CLI allowlist script) inside $GITHUB_WORKSPACE before running Pi. Pi runs in that same workspace with --approve and a full shell, and to it updater/ looks like an untracked directory. In the v0.154.0 release run, updater/ was gone by the time Snapshot publishable changes ran, so the step failed with exit 127:

bash: .../updater/.github/scripts/cli-update-disallowed-paths.sh: No such file or directory

Evidence:

  • The workflow and .github/scripts/cli-update-disallowed-paths.sh are identical in the v0.153.0 and v0.154.0 tag trees, and the updater checkout of refs/tags/v0.154.0 succeeded.
  • In the failing run, checkout's post-cleanup for 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 inside updater/. The main SDK checkout survived in both runs.
  • Pi is the only step between that checkout and the snapshot that writes to the workspace.

Change

Move Checkout updater scripts to just after Pi exits (after Stop 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, so actions.lock doesn'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.

@masnwilliams
masnwilliams merged commit 17a6531 into main Nov 21, 2026
12 checks passed
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