CI: run dev tests single-worker#1153
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
Greptile OverviewGreptile SummaryReverts the Key changes:
This approach is simpler than the previous Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant GHA as GitHub Actions
participant Vitest as Vitest Runner
participant RegTests as Regular Tests
participant ExtDBTests as External DB Sync Tests
participant DB as Database
Note over GHA,DB: CI Workflow Execution
GHA->>Vitest: Run tests (--exclude "**/external-db-sync*.test.ts")
Vitest->>RegTests: Execute regular tests (parallel/multi-worker)
RegTests->>DB: Access database
RegTests-->>Vitest: Results
Vitest-->>GHA: Test results (regular tests)
GHA->>Vitest: Run tests (--min-workers=1 --max-workers=1 **/external-db-sync*.test.ts)
Vitest->>ExtDBTests: Execute external DB sync tests (single worker)
ExtDBTests->>DB: Access database sequentially
ExtDBTests-->>Vitest: Results
Vitest-->>GHA: Test results (external DB sync)
alt On main/dev branches
Note over GHA,ExtDBTests: Repeat both test runs 2 more times
GHA->>Vitest: Run regular tests again (attempt 1)
Vitest->>RegTests: Execute
RegTests-->>GHA: Results
GHA->>Vitest: Run external DB sync tests again (attempt 1)
Vitest->>ExtDBTests: Execute (single worker)
ExtDBTests-->>GHA: Results
GHA->>Vitest: Run regular tests again (attempt 2)
Vitest->>RegTests: Execute
RegTests-->>GHA: Results
GHA->>Vitest: Run external DB sync tests again (attempt 2)
Vitest->>ExtDBTests: Execute (single worker)
ExtDBTests-->>GHA: Results
end
|
Runs dev-focused CI test suites with a single Vitest worker to reduce load and avoid external DB sync timeouts.