Commit 9e5c941
authored
Add Cursor agent CI fix workflow (#80)
## Summary
- Adds a GitHub Actions workflow that automatically attempts to fix CI
failures using cursor-agent
- When the test workflow fails on a PR, this workflow analyzes the
failure logs and proposes fixes via a compare link comment
- Modeled after the existing fix-ci workflow in the kernel monorepo
## Test plan
- [ ] Add `CURSOR_API_KEY` secret to the repository settings
- [ ] Verify workflow triggers on next CI failure
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces automated CI remediation via `cursor-agent` when the `Run
tests for the CLI` workflow fails on PRs.
>
> - New `.github/workflows/fix-ci.yaml` triggers on failed
`workflow_run` events and runs on `ubuntu-latest`
> - Installs `cursor-agent`, configures git identity, sets up Go from
`go.mod`, and uses `gh run view <id> --log-failed` for diagnostics
> - Generates minimal fixes, pushes to `ci-fix/<pr-head-branch>`, and
posts a PR-ready compare link as a comment
> - Scoped permissions: `contents`/`pull-requests` write, `actions`
read; avoids creating PRs directly and prevents duplicate comments
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
7f03716. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 2b80d06 commit 9e5c941
1 file changed
+97
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
0 commit comments