Skip to content

test: avoid external agent type collision in rewind test#1217

Merged
computermode merged 1 commit into
mainfrom
failing-local-test-fixup
May 14, 2026
Merged

test: avoid external agent type collision in rewind test#1217
computermode merged 1 commit into
mainfrom
failing-local-test-fixup

Conversation

@computermode
Copy link
Copy Markdown
Contributor

@computermode computermode commented May 14, 2026

https://entire.io/gh/entireio/cli/trails/381

The dynamic ResolveAgentForRewind test used a fake agent with type "Kiro" to simulate external agent registration. On machines that have a real entire-agent-kiro on PATH, earlier external discovery tests can register that real agent into the process-global registry with the same type. Because GetByAgentType scans a map, the rewind test could resolve the host agent instead of the test fixture and fail depending on package test ordering and map iteration.

Rename the test fixture to a synthetic Entire-specific name and type so it still exercises runtime external-agent registration without colliding with installed local plugins.


Note

Low Risk
Low risk: test-only rename to avoid collisions with real installed external agents; no production logic changes.

Overview
Makes the ResolveAgentForRewind dynamic-registration test deterministic by changing the fake external agent’s name/type from a potentially real value (e.g. Kiro) to a unique synthetic identifier, avoiding collisions with any externally discovered/installed agents in the global registry.

Reviewed by Cursor Bugbot for commit ace97f7. Configure here.

The dynamic ResolveAgentForRewind test used a fake agent with type "Kiro" to simulate external agent registration. On machines that have a real entire-agent-kiro on PATH, earlier external discovery tests can register that real agent into the process-global registry with the same type. Because GetByAgentType scans a map, the rewind test could resolve the host agent instead of the test fixture and fail depending on package test ordering and map iteration.

Rename the test fixture to a synthetic Entire-specific name and type so it still exercises runtime external-agent registration without colliding with installed local plugins.

Verification: mise run check
Entire-Checkpoint: 0d01bc231758
Copilot AI review requested due to automatic review settings May 14, 2026 21:58
@computermode computermode requested a review from a team as a code owner May 14, 2026 21:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Renames a test fixture's synthetic agent name/type to avoid collisions with a real entire-agent-kiro plugin that may be installed on the host, which could cause flaky resolution in TestResolveAgentForRewind due to map iteration order in the global agent registry.

Changes:

  • Rename test agent name from test-external-kiro to test-external-rewind-agent.
  • Rename test agent type from Kiro to Entire Test External Rewind Agent to prevent registry collisions.

@computermode computermode enabled auto-merge May 14, 2026 22:09
@computermode computermode merged commit 861e3f6 into main May 14, 2026
14 checks passed
@computermode computermode deleted the failing-local-test-fixup branch May 14, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants