-
Notifications
You must be signed in to change notification settings - Fork 11.4k
ci: optimize E2E API v2 with Turbo remote caching and Jest improvements #26331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Increase the number of parallel E2E test shards from 4 to 6 to reduce overall CI wall-clock time. Each shard runs on a separate 4-vCPU runner with 4 workers, so adding more shards increases total parallelism. This should reduce E2E test time from ~3 minutes per shard to ~2 minutes per shard by distributing tests across more parallel jobs. Co-Authored-By: [email protected] <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
E2E results are ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 3 files
|
I've reviewed the changes and updated the PR description to reflect all the optimizations: Summary of changes:
The PR description has been updated with full details. |
|
Manually rerun it here:- https://github.com/calcom/cal.com/actions/runs/20613301097/job/59201635591 |
e33ea82 to
24b46e1
Compare
75a2f7d to
24b46e1
Compare
What does this PR do?
Reduces E2E API v2 test execution time and simplifies CI workflows by replacing custom GitHub Actions caching with Turbo remote caching. Also optimizes Jest/ts-jest configuration for CI and fixes a flaky test caused by a type-only import issue.
Changes:
Turbo remote caching for E2E tests (
.github/workflows/e2e-api-v2.yml):TURBO_TOKENandTURBO_TEAMenv vars to enable Turbo remote cachingyarn turbo run build --filter=...step to build platform packages through TurboTurbo remote caching for production build (
.github/workflows/api-v2-production-build.yml):actions/cachewith Turbo remote cachingyarn turbo run build --filter=@calcom/api-v2which handles caching internallyJest CI optimizations (
apps/api/v2/jest-e2e.ts):isolatedModules: truefor CI to skip full TypeScript program creationdiagnostics: falsefor CI to skip TypeScript diagnosticsNew CI-specific test script (
apps/api/v2/package.json):test:e2e:ciscript that skipsyarn dev:build(since Turbo handles builds)Flaky test fix (
organizations-teams.controller.ts):type SkipTakePaginationto value importSkipTakePagination@Transformdecorators from converting query params to numbers, causing Prisma errorsHow should this be tested?
TURBO_TOKENandTURBO_TEAMsecrets are configured in the repositoryHuman Review Checklist
TURBO_TOKENandTURBO_TEAMsecrets are configured in GitHub repository settingsSkipTakePaginationimport fix is correct (line 46 in organizations-teams.controller.ts)preset: "ts-jest"from jest-e2e.ts doesn't cause issues (the transform config handles this)Mandatory Tasks (DO NOT REMOVE)
Link to Devin run: https://app.devin.ai/sessions/9459a7bc0e354d46b25e95d7f7b88df0
Requested by: [email protected] (@anikdhabal)