Skip to content

fix: Pass the store to eventually in parent_test.go - #2003

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/parent-test-eventually
Nov 19, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:fix/parent-test-eventually

Conversation

@huang195

Copy link
Copy Markdown
Member

Problem

CI on main fails since the #1995 merge (0ac29b937). The Lint step of Go CI (core) stops at go vet:

listener/forwardproxy/parent_test.go:146:24: not enough arguments in call to eventually

Cause

  1. test: ⚡✅ Wait on events in forward proxy tests #1984 changed the test helper to eventually(t, store, cond, what) and changed every caller that existed then.
  2. feat: Attribute a headless agent run to the session that started it #1995 added parent_test.go on a base without test: ⚡✅ Wait on events in forward proxy tests #1984. Its two calls use the old form, eventually(t, cond, what).
  3. Each PR passed CI alone. Git merged both without a conflict.

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

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>
@huang195
huang195 requested a review from a team as a code owner November 19, 2026 16:33
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 66e0466d-4bd6-48c5-8cf2-eac667b4a5d6
Commits

Reviewing files that changed from the base of the PR and between 542eb59 and e1dd68c.

Files selected for processing: 1

  • core/listener/forwardproxy/parent_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 with parent_test.go:146:24: not enough arguments in call to eventually, the same error as on main.
  • PR merge ref 6a51c062: go vet passes, and go 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

@huang195
huang195 merged commit b38fba8 into rossoctl:main Nov 19, 2026
57 of 58 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 19, 2026
@huang195
huang195 deleted the fix/parent-test-eventually branch November 19, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants