1
0
Fork 0
mirror of https://github.com/imjasonh/terraform-playground synced 2026-07-06 23:12:22 +00:00
Commit graph

42 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
91d03c0c0b Fix golangci-lint staticcheck issues in cifixer eval_test.go
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-19 02:51:19 +00:00
copilot-swe-agent[bot]
6e73e0d463 Fix golangci-lint staticcheck issues in pr-reconciler main.go
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-19 02:17:05 +00:00
copilot-swe-agent[bot]
1224664d2d Fix all golangci-lint issues: error handling, ineffassign, staticcheck, and unused code
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-19 02:08:09 +00:00
copilot-swe-agent[bot]
a4fd9b19cc Remove unused formatFileDiffs function and test to fix golangci-lint
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 22:32:13 +00:00
copilot-swe-agent[bot]
de6dbaaf07 Fix golangci-lint formatting issues
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:39:18 +00:00
copilot-swe-agent[bot]
7cbd7ac6ea Add pr-risk-scorer service and Terraform infrastructure with LLM integration
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:26:31 +00:00
copilot-swe-agent[bot]
1393815bc9 Rewrite risk scorer to use LLM agent framework with evaluation support
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:24:06 +00:00
copilot-swe-agent[bot]
ebaebe4044 Add comprehensive README documentation for pr-risk-scorer
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:14:38 +00:00
copilot-swe-agent[bot]
ec49bb999f Fix formatting issues in struct tags and remove extra blank line
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:13:20 +00:00
copilot-swe-agent[bot]
ae34b14b29 Add Terraform infrastructure for pr-risk-scorer deployment
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:12:12 +00:00
copilot-swe-agent[bot]
85c5b630ad Address code review feedback - improve pattern matching and simplify helpers
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:08:43 +00:00
copilot-swe-agent[bot]
e56aeb29a6 Add pr-risk-scorer command with full implementation
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:07:15 +00:00
copilot-swe-agent[bot]
0dfa7cbae1 Add internal/risk package with comprehensive tests
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
2026-02-18 17:04:53 +00:00
pr-reconciler
80bb808366 fix: resolve CI lint errors - remove unused function, fix deprecated calls, add error handling 2026-02-04 19:05:12 +00:00
Jason Hall
aff5c420f6 fix: require Go 1.25.4 to match chainguard.dev/driftlessaf dependency 2026-02-04 13:46:07 -05:00
pr-reconciler
b625fde14d fix: correct invalid Go version from 1.25.4 to 1.23.4 2026-02-04 18:43:04 +00:00
Jason Hall
f936d8302f fix: use real chainguard.dev/driftlessaf module instead of broken replace directive 2026-02-04 13:39:45 -05:00
pr-reconciler
6758e575c0 fix: correct singular/plural handling in CI status messages 2026-02-04 18:19:54 +00:00
pr-reconciler
ab44593fa3 fix: correct go.mod replace directive timestamp and workflow cache path 2026-02-04 18:15:49 +00:00
pr-reconciler
68ea3d06be fix: handle error from strconv.Atoi in parsePRURL function 2026-02-04 18:12:56 +00:00
pr-reconciler
08124b3bf8 fix: correct invalid Go version in go.mod from 1.25.5 to 1.23 2026-02-04 18:09:17 +00:00
Jason Hall
4aaa1eec57 fix: use correct Vertex AI Claude model format (@ instead of -) 2026-02-04 13:04:40 -05:00
Jason Hall
0334f118a2 Fix Claude model version to claude-sonnet-4-5@20250514 2026-02-04 12:57:53 -05:00
Jason Hall
58b6bdb0f2 Use requeue polling instead of check_run events for CI completion
When CI is pending, the reconciler now returns RequeueAfterSeconds: 60
to poll for CI completion every minute, instead of relying on check_run
events which are difficult to route through the workqueue.

- Remove check-run-workqueue from trigger.tf
- Remove processCheckRunEvent and related parsing code
- Add requeue when CIFixPending is true
- Update agent.md to remove check_run event documentation
2026-02-04 12:53:35 -05:00
Jason Hall
009f2ec186 Fix check_run events using subject instead of repo extension
The github-events trampoline sets event.SetSubject(repoFullName) which
becomes ce-subject attribute, but does NOT set a 'repo' extension.

- Change extension_key from 'repo' to 'subject' for check-run-workqueue
- Rename parseRepoURL to parseRepoKey to handle both URL and subject formats
- Add tests for subject format (owner/repo)

This allows check_run completion events to flow through the workqueue
and trigger CI fixer reconciliation.
2026-02-04 12:43:03 -05:00
Jason Hall
63745e0cb6 update evaluateCIStatus
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-04 12:25:20 -05:00
Jason Hall
0255000457 Treat zero checks as pending, not passing
When a push event triggers reconciliation, the GitHub workflow may not
have started yet, resulting in 0 checks. Previously this was treated
as 'all checks passing'. Now we treat it as pending and wait for checks
to start.
2026-02-04 12:16:26 -05:00
Jason Hall
6100adadeb Improve CI fixer status messages in check run
- Show 'Waiting for CI to complete' when pending instead of success
- Distinguish 'CI passing after fix' from 'CI is passing' (no fix needed)
- Show turns attempted for all states
- Clearer messaging overall
2026-02-04 12:14:58 -05:00
Jason Hall
53052f0d98 Fix filter format for check-run-workqueue 2026-02-04 12:11:08 -05:00
Jason Hall
9b13ff140d Add check_run workqueue for CI completion events
The github-events module doesn't set pullrequesturl for check_run events,
so they don't trigger the PR workqueue. This adds a separate workqueue that
listens for check_run completion events keyed by repo URL.

When a check_run event is received, the reconciler:
1. Lists open PRs with the ci-autofix label
2. Processes each one to re-evaluate CI status

Also keeps check run status as in_progress while waiting for CI.
2026-02-04 12:09:12 -05:00
Jason Hall
b5cd02f65c Keep check run in_progress while waiting for CI checks 2026-02-04 12:03:57 -05:00
Jason Hall
a7610d3f34 Grant Vertex AI permissions to reconciler for Claude API access 2026-02-04 11:57:49 -05:00
Jason Hall
2a82eb8ff1 Use configurable region for Vertex AI Claude API calls 2026-02-04 11:52:44 -05:00
Jason Hall
9f63f1f524 add ci-fixer
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-04 11:38:44 -05:00
Jason Hall
01320dea88 implement example auto labeler
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 14:53:46 -05:00
Jason Hall
d7d9657e6a add dashboard
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 14:03:27 -05:00
Jason Hall
193bb7fdce diagram
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 13:52:28 -05:00
Jason Hall
a0b5d1f369 vars
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 13:43:18 -05:00
Jason Hall
b99c8adb26 add bq recorder
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 13:31:07 -05:00
Jason Hall
dd51e78a7f summary
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 12:55:32 -05:00
Jason Hall
627c94549d updates
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 12:55:24 -05:00
Jason Hall
9f1f8c558f add driftless example
Signed-off-by: Jason Hall <jason@chainguard.dev>
2026-02-03 10:02:36 -05:00