Fix lint-go and test failures in actionpins and cli specs#27608
Fix lint-go and test failures in actionpins and cli specs#27608
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/d6322209-392d-4ee4-933d-157e178239a5 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Fixes CI failures in Go linting and tests by updating spec tests to match current public APIs and lint expectations.
Changes:
- Update
pkg/actionpins/spec_test.goto useGetActionPinsByRepo(and adjust the concurrency/thread-safety spec test accordingly). - Adjust
pkg/cli/spec_test.goassertions to satisfy testifylint’s expected/actual ordering and remove trailing whitespace.
Show a summary per file
| File | Description |
|---|---|
| pkg/cli/spec_test.go | Reorders assert.Equal arguments to match linter conventions; minor whitespace cleanup. |
| pkg/actionpins/spec_test.go | Migrates removed API usage to GetActionPinsByRepo and updates the concurrent access test accordingly. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
🧪 Test Quality Sentinel ReportTest Quality Score: 85/100✅ Excellent test quality
Test Classification DetailsView Test Classifications (2 tests)
Change SummaryThis PR is a targeted fix to two tests that were failing lint/test checks: ✅
|
make agent-finishand targetedgo testto confirm breakagepkg/actionpins/spec_test.goto use the current public API (GetActionPinsByRepo) instead of removedGetActionPinsintrange,testifylintexpected/actual ordering)go test ./pkg/actionpins,go test -run TestSpec_Types_ShellType ./pkg/cli)make agent-finishafter changes (blocked only by pre-existing repo-level gosec findings unrelated to this change)