-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Switch PR review workflow runner to macOS ARM self-hosted #2893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,10 @@ jobs: | |||||||||||||||||||
| github.event_name == 'workflow_run' || | ||||||||||||||||||||
| (github.event_name == 'pull_request_target' && github.event.label.name == 'cc:request:now') | ||||||||||||||||||||
| environment: ai-bots | ||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||
| runs-on: | ||||||||||||||||||||
| - self-hosted | ||||||||||||||||||||
| - macOS | ||||||||||||||||||||
| - ARM64 | ||||||||||||||||||||
|
Comment on lines
+25
to
+28
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Missing self-hosted macOS cleanup step causes disk space accumulation Every other workflow in this repo that runs on the - name: Cleanup (self-hosted macOS)
if: always()
run: bash scripts/ci-cleanup-macos.shSee Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback.
Comment on lines
+25
to
+28
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM | consistency Missing cleanup step for self-hosted macOS runner Every other workflow using 💡 Suggestion: Add a final step to the job: - name: Cleanup (self-hosted macOS)
if: always()
run: bash scripts/ci-cleanup-macos.sh
Comment on lines
+25
to
+28
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Self-hosted runner availability risk Switching from Consider adding a
Suggested change
This also ensures the Prompt To Fix With AIThis is a comment left during a code review.
Path: .github/workflows/pr-review-responder.yml
Line: 25-28
Comment:
**Self-hosted runner availability risk**
Switching from `ubuntu-latest` (GitHub-managed, always available) to a self-hosted runner means that if the runner machine is offline or busy, this workflow will queue indefinitely rather than fail fast. Because this workflow drives the automated PR-fix loop (labeling, Claude Code invocations, retry counters), a stalled runner would leave PRs stuck in `cc:pending` with no timeout or fallback path.
Consider adding a `timeout-minutes` at the job level to ensure the workflow fails gracefully rather than hanging:
```suggestion
runs-on:
- self-hosted
- macOS
- ARM64
timeout-minutes: 60
```
This also ensures the `cc:pending` / `cc:failed` label cleanup in the final steps always runs within a predictable window.
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||||||||
| permissions: | ||||||||||||||||||||
| actions: write | ||||||||||||||||||||
| contents: write | ||||||||||||||||||||
|
|
||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Switching from an ephemeral GitHub-hosted runner (
ubuntu-latest) to a persistent self-hosted macOS ARM64 runner requires adding a cleanup step at the end of the job. All other workflows in this repo that use theself-hosted macOS ARM64runner include a final step:Without this, each run will leave build artifacts, caches, and runner diagnostics on the shared machine, eventually filling up disk space.
Prompt for AI agents
Without this, each run will leave build artifacts, caches, and runner diagnostics on the shared machine, eventually filling up disk space.
@@ -22,7 +22,10 @@ jobs: environment: ai-bots - runs-on: ubuntu-latest + runs-on: + - self-hosted + - macOS + - ARM64 ```