ci: optimize E2E API v2 with Turbo remote caching and Jest improvements#26331
Merged
anikdhabal merged 12 commits intomainfrom Dec 31, 2025
Merged
ci: optimize E2E API v2 with Turbo remote caching and Jest improvements#26331anikdhabal merged 12 commits intomainfrom
anikdhabal merged 12 commits intomainfrom
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: anik@cal.com <adhabal2002@gmail.com>
Contributor
🤖 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. |
Contributor
E2E results are ready! |
Contributor
|
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. |
Contributor
Author
|
Manually rerun it here:- https://github.com/calcom/cal.com/actions/runs/20613301097/job/59201635591 |
e33ea82 to
24b46e1
Compare
75a2f7d to
24b46e1
Compare
keithwillcode
approved these changes
Dec 31, 2025
Anshumancanrock
pushed a commit
to Anshumancanrock/cal.com
that referenced
this pull request
Jan 12, 2026
…ns (calcom#26331) * perf: increase E2E test shards from 4 to 6 for faster CI 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: anik@cal.com <adhabal2002@gmail.com> * update * fix * update * readd * final update * fix flake --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: anik@cal.com (@anikdhabal)