Skip to content

Commit 23b5a4e

Browse files
committed
Improve tests performance
1 parent 7cb5252 commit 23b5a4e

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.github/workflows/api-v1-production-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: ./.github/actions/dangerous-git-checkout
6868
- uses: ./.github/actions/yarn-install
69-
- uses: ./.github/actions/cache-db
7069
- name: Cache API v1 production build
7170
uses: buildjet/cache@v4
7271
id: cache-api-v1-build

.github/workflows/e2e.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
name: E2E
2+
23
on:
34
workflow_call:
5+
46
permissions:
57
actions: write
68
contents: read
9+
710
env:
811
NODE_OPTIONS: --max-old-space-size=4096
912
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
1013
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
1114
DAILY_API_KEY: ${{ secrets.CI_DAILY_API_KEY }}
12-
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
13-
DATABASE_DIRECT_URL: ${{ secrets.CI_DATABASE_URL }}
15+
DATABASE_URL: ${{ env.DATABASE_URL }}?schema=shard_${{ matrix.shard }}
16+
DATABASE_DIRECT_URL: ${{ env.DATABASE_DIRECT_URL }}?schema=shard_${{ matrix.shard }}
1417
DEPLOYSENTINEL_API_KEY: ${{ secrets.DEPLOYSENTINEL_API_KEY }}
1518
E2E_TEST_APPLE_CALENDAR_EMAIL: ${{ secrets.E2E_TEST_APPLE_CALENDAR_EMAIL }}
1619
E2E_TEST_APPLE_CALENDAR_PASSWORD: ${{ secrets.E2E_TEST_APPLE_CALENDAR_PASSWORD }}
@@ -19,7 +22,7 @@ env:
1922
EMAIL_SERVER_HOST: ${{ secrets.CI_EMAIL_SERVER_HOST }}
2023
EMAIL_SERVER_PORT: ${{ secrets.CI_EMAIL_SERVER_PORT }}
2124
EMAIL_SERVER_USER: ${{ secrets.CI_EMAIL_SERVER_USER }}
22-
EMAIL_SERVER_PASSWORD: ${{ secrets.CI_EMAIL_SERVER_PASSWORD}}
25+
EMAIL_SERVER_PASSWORD: ${{ secrets.CI_EMAIL_SERVER_PASSWORD }}
2326
GOOGLE_LOGIN_ENABLED: ${{ vars.CI_GOOGLE_LOGIN_ENABLED }}
2427
NEXTAUTH_SECRET: ${{ secrets.CI_NEXTAUTH_SECRET }}
2528
NEXTAUTH_URL: ${{ secrets.CI_NEXTAUTH_URL }}
@@ -41,11 +44,13 @@ env:
4144
SENDGRID_EMAIL: ${{ secrets.CI_SENDGRID_EMAIL }}
4245
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
4346
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
47+
4448
jobs:
4549
e2e:
4650
timeout-minutes: 20
4751
name: E2E (${{ matrix.shard }}/${{ strategy.job-total }})
4852
runs-on: buildjet-8vcpu-ubuntu-2204
53+
4954
services:
5055
postgres:
5156
image: postgres:13
@@ -63,6 +68,7 @@ jobs:
6368
--health-retries 5
6469
ports:
6570
- 5432:5432
71+
6672
mailhog:
6773
image: mailhog/mailhog:v1.0.1
6874
credentials:
@@ -71,23 +77,28 @@ jobs:
7177
ports:
7278
- 8025:8025
7379
- 1025:1025
80+
7481
strategy:
7582
fail-fast: false
7683
matrix:
7784
shard: [1, 2, 3, 4]
85+
7886
steps:
7987
- uses: docker/login-action@v3
8088
with:
8189
username: ${{ secrets.DOCKERHUB_USERNAME }}
8290
password: ${{ secrets.DOCKERHUB_TOKEN }}
91+
8392
- uses: actions/checkout@v4
8493
- uses: ./.github/actions/dangerous-git-checkout
8594
- uses: ./.github/actions/yarn-install
8695
- uses: ./.github/actions/yarn-playwright-install
8796
- uses: ./.github/actions/cache-db
8897
- uses: ./.github/actions/cache-build
98+
8999
- name: Run Tests
90100
run: yarn e2e --shard=${{ matrix.shard }}/${{ strategy.job-total }}
101+
91102
- name: Upload Test Results
92103
uses: actions/upload-artifact@v4
93104
if: always()

.github/workflows/publish-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
repository: calcom/test-results
2020
ref: gh-pages
2121
token: ${{ secrets.GH_ACCESS_TOKEN }}
22+
fetch-depth: 1
2223
- name: Set Git User
2324
# see: https://github.com/actions/checkout/issues/13#issuecomment-724415212
2425
run: |

packages/app-store/salesforce/lib/__tests__/CrmService.integration.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ vi.mock("../getSalesforceAppKeys", () => ({
5656
}));
5757

5858
// Helper to create mock credential
59-
// Silly comment to fire test
6059
const createMockCredential = () => {
6160
return {
6261
id: 1,

0 commit comments

Comments
 (0)