Skip to content

fix(ci): keep Vite config helpers dependency-free - #46067

Open
StiensWout wants to merge 1 commit into
pingdotgg:mainfrom
StiensWout:t3/fix-ci-effect-vite-config
Open

StiensWout wants to merge 1 commit into
pingdotgg:mainfrom
StiensWout:t3/fix-ci-effect-vite-config

Conversation

@StiensWout

Copy link
Copy Markdown
Contributor

CI fails while loading the root Vite config because the bundled test-file helper imports effect from the workspace root, where it is not a dependency. Task graph loading stops before any tasks run.

Use Node filesystem and path APIs in the config helper, following the other bootstrap helpers. This removes its Effect and platform-node dependencies while preserving test-file selection and keeping the Vitest CLI parser lazy. Both root and web configs share the fix.

Validation: reproduced the missing effect error with the original helper loaded outside the scripts package, then confirmed the fixed helper loads there. Existing helper tests and pnpm exec vp run check:changed pass, covering formatting, lint, unused code, affected typechecks, and related tests. No full suite or app testing for this urgent bootstrap fix.

Size: small, confined to a config helper with no interface changes. Reviewed locally; extended agent review was skipped for the requested urgent turnaround.

Created with GPT 6.1 Sol in the Codex harness, through T3 Code.

Use Node filesystem and path helpers when selecting test files so bundled config loading does not resolve Effect from the workspace root.

Co-authored-by: GPT 6.1 Sol <codex@openai.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 30, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — The helper switches from Effect dependencies to Node built-ins for test-file discovery. Its new file-level diagnostic suppression requires human review to accept the exception and its scope.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CLI test-file helper now uses Node filesystem and path APIs to validate filters inline. It retains the existing checks for Vitest runs, explicit roots, and empty filters. Invalid paths or filesystem stat failures still result in undefined.

Changes: CLI test-file validation

Layer / File(s) Summary
Inline test-file filter validation
scripts/lib/cli-test-files.ts
The helper replaces Effect filesystem checks and service provisioning with inline Node API calls. It returns normalized repo-relative paths for valid test files and undefined when a filter fails validation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: saphid

Merge Risk: Minimal · up to ae674

The change removes the Effect dependency from the Vite config's test-file helper so CI task-graph loading no longer fails to resolve it from the workspace root. Behavior for selecting test files is intended to be unchanged, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix (keeping Vite config helpers free of dependencies) and matches the changeset: the test-file helper drops its Effect and platform-node imports in favor of Node fs and path APIs.…
Description check Passed The description follows the template's main ideas. It states the problem (CI fails loading the root Vite config because the helper imports effect from the workspace root), the change (Node fs and path…
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.
Full details: Title check

Explanation

The title names the fix (keeping Vite config helpers free of dependencies) and matches the changeset: the test-file helper drops its Effect and platform-node imports in favor of Node fs and path APIs. The title is concise and specific, and it follows the conventional commit format.

Full details: Description check

Explanation

The description follows the template's main ideas. It states the problem (CI fails loading the root Vite config because the helper imports effect from the workspace root), the change (Node fs and path APIs replace Effect and platform-node), and verification (reproduced the missing-effect error, then confirmed the fixed helper loads; existing helper tests and check:changed pass). Scope is partly covered: it calls this an urgent bootstrap fix and calls it small, but it does not link an issue showing the bug or explain why no issue is needed. The author also says the agent review was skipped. The template asks for a linked issue or a reason for none, so that gap should be filled.

Resolution

Optional improvement: link the issue or CI failure that shows the bug, or explain why no issue is needed for this small fix. Also, the template asks for an agent model and harness line; the description includes one, so no change is needed there.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between af4208e and ae674bc.

Files selected for processing: 1

  • scripts/lib/cli-test-files.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 30, 2026

This branch has not been deployed

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

Labels

size:M 30-99 changed lines (additions + deletions). takeover:in-progress A takeover lead is working on this PR vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants