Skip to content

Instruct agents to prefer yarn test:ci over yarn test#16655

Merged
rak-phillip merged 1 commit intorancher:masterfrom
rak-phillip:task/agents-update-unit-test-instructions
Feb 13, 2026
Merged

Instruct agents to prefer yarn test:ci over yarn test#16655
rak-phillip merged 1 commit intorancher:masterfrom
rak-phillip:task/agents-update-unit-test-instructions

Conversation

@rak-phillip
Copy link
Copy Markdown
Member

@rak-phillip rak-phillip commented Feb 12, 2026

Summary

This resolves an issue where Gemini CLI can hang indefinitely when the tool runs yarn test.

Occurred changes and/or fixed issues

  • Instruct agents to prefer yarn test:ci over yarn test

Technical notes summary

yarn test:ci works better with tools like Gemini CLI because it will run tests once and exit. yarn test runs Jest in watch mode, which can cause CLI agents to hang while awaiting test output.

Areas or cases that should be tested

Try instructing Gemini CLI to write a simple sanity test. When the test runs to validate that it passes, the CLI should gather the results and finish its task.

Areas which could experience regressions

Previously, when running yarn test, Gemini CLI could hang indefinitely while waiting for the watched tests to complete. This single run approach should improve the overall behavior.

Screenshot/Video

NA

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

`yarn test:ci` works better with tools like Gemini CLI because it will run tests once and exit. `yarn test` runs Jest in watch mode, which can cause CLI agents to hang while awaiting test output.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
@rak-phillip rak-phillip merged commit 9cb38de into rancher:master Feb 13, 2026
89 of 99 checks passed
@rak-phillip rak-phillip deleted the task/agents-update-unit-test-instructions branch February 13, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants