Repository navigation
fix: Pass the store to eventually in parent_test.go - #2003
Conversation
PR rossoctl#1984 added a store argument to the eventually test helper and changed every caller that existed then. PR rossoctl#1995 added parent_test.go on a base without rossoctl#1984, so its two calls use the old signature. Each PR passed CI alone. After both merged, go vet on main fails: parent_test.go:146:24: not enough arguments in call to eventually Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Hai Huang <huang195@gmail.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 46 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
clawgenti
left a comment
There was a problem hiding this comment.
Summary
The fix is correct and complete. #1984 changed the helper to eventually(t, store, cond, what) (core/listener/forwardproxy/process_test.go:255). The two calls that #1995 added in parent_test.go were the only callers in the package still using the old three-argument form. After this PR, no caller in the package uses the old form. (core/spiffe/mirror_test.go has its own eventually(t, func() error ...) in another package, so it is not affected.)
I checked it locally:
- base
542eb59f8:go vet ./listener/forwardproxy/fails withparent_test.go:146:24: not enough arguments in call to eventually, the same error as on main. - PR merge ref
6a51c062:go vetpasses, andgo test -race -count=1 ./listener/forwardproxy/passes. - The PR also merges cleanly with the current
main(377211bcc), which still has the broken calls.
Overlap with #2002: #2002 (mrsabath, opened one minute earlier) makes the same change. Its diff is identical down to the resulting blob (86548446a..0f541c961). The two PRs don't conflict: after one merges, the other has an empty diff. Please merge one and close the other so they aren't both reviewed and re-run.
CI: Verify module graph is tidy failed on this run, saying cmd/agentop/go.mod is not tidy. This PR doesn't touch that module. go mod tidy -diff in cmd/agentop exits 0 on this PR's merge ref. The same job passed on #2002 (26s) and on the base commit. Here it ran for 4m14s against a 5-minute timeout, which looks like a module-download problem rather than a real diff. A re-run should clear it.
Author: huang195 (MEMBER, maintainer)
Areas reviewed: Go (tests only)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing, except the unrelated Verify module graph is tidy failure described above
Problem
CI on
mainfails since the #1995 merge (0ac29b937). The Lint step ofGo CI (core)stops atgo vet:Cause
eventually(t, store, cond, what)and changed every caller that existed then.parent_test.goon a base without test: ⚡✅ Wait on events in forward proxy tests #1984. Its two calls use the old form,eventually(t, cond, what).Fix
Add
store,to the two calls. This changes test code only.Verification
go vet ./listener/forwardproxy/passes.go test -race -count=1 ./listener/forwardproxy/passes.Assisted-By: Claude (Anthropic AI) noreply@anthropic.com