Skip to content

Fix: Prevent CI hang by explicitly running vitest once - #406

Open
localtrade1 wants to merge 1 commit into
genlayerlabs:v0.40-devfrom
localtrade1:localtrade1-patch-1
Open

Fix: Prevent CI hang by explicitly running vitest once#406
localtrade1 wants to merge 1 commit into
genlayerlabs:v0.40-devfrom
localtrade1:localtrade1-patch-1

Conversation

@localtrade1

@localtrade1 localtrade1 commented Aug 15, 2026

Copy link
Copy Markdown

This PR updates the test script in package.json to use vitest run.

Without the run flag, vitest defaults to watch mode, which blocks automated CI pipelines from completing. This change ensures the test suite runs once and terminates correctly in CI environments.

Summary by CodeRabbit

  • Tests
    • Updated the test command to run once and exit automatically, instead of staying in watch mode.

This PR updates the test script in package.json to use vitest run.

Without the run flag, vitest defaults to watch mode, which blocks automated CI pipelines from completing. This change ensures the test suite runs once and terminates correctly in CI environments.
@github-actions
github-actions Bot changed the base branch from main to v0.40-dev August 15, 2026 11:50
@github-actions

Copy link
Copy Markdown

This PR targeted main, which is only the default/static branch.

I retargeted it to v0.40-dev, the active development branch. Pushes to v0.40-dev automatically fast-forward main.

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1aaa7eae-f623-4303-aba0-c0e4c16fa99a

📥 Commits

Reviewing files that changed from the base of the PR and between 3396474 and 032ddc1.

📒 Files selected for processing (1)
  • package.json

📝 Walkthrough

Walkthrough

The test npm script now invokes vitest run, so tests execute in non-watch mode.

Changes

Test script execution

Layer / File(s) Summary
Vitest run-mode configuration
package.json
The test script now runs Vitest with the run command.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 032dd

This localized change makes the test command run once and exit instead of entering watch mode; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: muncleuscles

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the Vitest change that prevents CI from hanging.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch localtrade1-patch-1
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant