feat: shard modules and API integration tests (#6775)
what: - runs module and api integration tests in matrix strategy - v28 of jest comes with sharding support, which we can utilize when we upgrade - splits the tests by number of matrix jobs and run them in parallel - This introduced some flakiness in some specs, but couldn't reproduce locally. Those have been skipped for now. - uses swc/jest for added performance - Locally, a chunk took 90 seconds with babel and 30 seconds with swc. - This translated to 2 mins saved per shard in CI, but haven't tested this enough.
This commit is contained in:
1 parent
8929b2d60b
commit
4c98545ab3
13 files changed
+269
-35
No files matched your search
@@ -6626,6 +6626,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/create-cache-key-function@npm:^29.7.0":
|
||||
version: 29.7.0
|
||||
resolution: "@jest/create-cache-key-function@npm:29.7.0"
|
||||
dependencies:
|
||||
"@jest/types": ^29.6.3
|
||||
checksum: 5c47ef62205264adf77b1ff26b969ce9fe84920b8275c3c5e83f4236859d6ae5e4e7027af99eef04a8e334c4e424d44af3e167972083406070aca733ac2a2795
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/environment@npm:^25.5.0":
|
||||
version: 25.5.0
|
||||
resolution: "@jest/environment@npm:25.5.0"
|
||||
@@ -16757,6 +16766,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-darwin-arm64@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-darwin-arm64@npm:1.4.8"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-darwin-x64@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-darwin-x64@npm:1.3.67"
|
||||
@@ -16764,6 +16780,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-darwin-x64@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-darwin-x64@npm:1.4.8"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-arm-gnueabihf@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.67"
|
||||
@@ -16771,6 +16794,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-arm-gnueabihf@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.4.8"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-arm64-gnu@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-linux-arm64-gnu@npm:1.3.67"
|
||||
@@ -16778,6 +16808,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-arm64-gnu@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-linux-arm64-gnu@npm:1.4.8"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-arm64-musl@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-linux-arm64-musl@npm:1.3.67"
|
||||
@@ -16785,6 +16822,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-arm64-musl@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-linux-arm64-musl@npm:1.4.8"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-x64-gnu@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-linux-x64-gnu@npm:1.3.67"
|
||||
@@ -16792,6 +16836,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-x64-gnu@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-linux-x64-gnu@npm:1.4.8"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-x64-musl@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-linux-x64-musl@npm:1.3.67"
|
||||
@@ -16799,6 +16850,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-linux-x64-musl@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-linux-x64-musl@npm:1.4.8"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-win32-arm64-msvc@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-win32-arm64-msvc@npm:1.3.67"
|
||||
@@ -16806,6 +16864,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-win32-arm64-msvc@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-win32-arm64-msvc@npm:1.4.8"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-win32-ia32-msvc@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-win32-ia32-msvc@npm:1.3.67"
|
||||
@@ -16813,6 +16878,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-win32-ia32-msvc@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-win32-ia32-msvc@npm:1.4.8"
|
||||
conditions: os=win32 & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-win32-x64-msvc@npm:1.3.67":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core-win32-x64-msvc@npm:1.3.67"
|
||||
@@ -16820,6 +16892,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core-win32-x64-msvc@npm:1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core-win32-x64-msvc@npm:1.4.8"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core@npm:^1.3.61":
|
||||
version: 1.3.67
|
||||
resolution: "@swc/core@npm:1.3.67"
|
||||
@@ -16864,6 +16943,59 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/core@npm:^1.4.8":
|
||||
version: 1.4.8
|
||||
resolution: "@swc/core@npm:1.4.8"
|
||||
dependencies:
|
||||
"@swc/core-darwin-arm64": 1.4.8
|
||||
"@swc/core-darwin-x64": 1.4.8
|
||||
"@swc/core-linux-arm-gnueabihf": 1.4.8
|
||||
"@swc/core-linux-arm64-gnu": 1.4.8
|
||||
"@swc/core-linux-arm64-musl": 1.4.8
|
||||
"@swc/core-linux-x64-gnu": 1.4.8
|
||||
"@swc/core-linux-x64-musl": 1.4.8
|
||||
"@swc/core-win32-arm64-msvc": 1.4.8
|
||||
"@swc/core-win32-ia32-msvc": 1.4.8
|
||||
"@swc/core-win32-x64-msvc": 1.4.8
|
||||
"@swc/counter": ^0.1.2
|
||||
"@swc/types": ^0.1.5
|
||||
peerDependencies:
|
||||
"@swc/helpers": ^0.5.0
|
||||
dependenciesMeta:
|
||||
"@swc/core-darwin-arm64":
|
||||
optional: true
|
||||
"@swc/core-darwin-x64":
|
||||
optional: true
|
||||
"@swc/core-linux-arm-gnueabihf":
|
||||
optional: true
|
||||
"@swc/core-linux-arm64-gnu":
|
||||
optional: true
|
||||
"@swc/core-linux-arm64-musl":
|
||||
optional: true
|
||||
"@swc/core-linux-x64-gnu":
|
||||
optional: true
|
||||
"@swc/core-linux-x64-musl":
|
||||
optional: true
|
||||
"@swc/core-win32-arm64-msvc":
|
||||
optional: true
|
||||
"@swc/core-win32-ia32-msvc":
|
||||
optional: true
|
||||
"@swc/core-win32-x64-msvc":
|
||||
optional: true
|
||||
peerDependenciesMeta:
|
||||
"@swc/helpers":
|
||||
optional: true
|
||||
checksum: da9079e66d7de696bef2445ba5ba20c7be80b9132f56b7912f2359edab3caa02d334204e4663458771b1995e5556c0629de9427b55587cbac27de6b259c61932
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/counter@npm:^0.1.2, @swc/counter@npm:^0.1.3":
|
||||
version: 0.1.3
|
||||
resolution: "@swc/counter@npm:0.1.3"
|
||||
checksum: 8424f60f6bf8694cfd2a9bca45845bce29f26105cda8cf19cdb9fd3e78dc6338699e4db77a89ae449260bafa1cc6bec307e81e7fb96dbf7dcfce0eea55151356
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/helpers@npm:^0.4.2":
|
||||
version: 0.4.14
|
||||
resolution: "@swc/helpers@npm:0.4.14"
|
||||
@@ -16882,6 +17014,28 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/jest@npm:^0.2.36":
|
||||
version: 0.2.36
|
||||
resolution: "@swc/jest@npm:0.2.36"
|
||||
dependencies:
|
||||
"@jest/create-cache-key-function": ^29.7.0
|
||||
"@swc/counter": ^0.1.3
|
||||
jsonc-parser: ^3.2.0
|
||||
peerDependencies:
|
||||
"@swc/core": "*"
|
||||
checksum: 7f1993f9201420bb499c92ab28797352bcbf9e3a6c7b5a1806fdc34c9c3b46ea9e5b2f070c0e13fcf7f3c3fadbbc38777840baabb178f589bf1f67543763adb6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/types@npm:^0.1.5":
|
||||
version: 0.1.6
|
||||
resolution: "@swc/types@npm:0.1.6"
|
||||
dependencies:
|
||||
"@swc/counter": ^0.1.3
|
||||
checksum: 043a0e56d69db8733827ad69db55d0ffbd6976fd24ef629a488e57040067ac84d057a57e08bc5a3db545d44b01d6aa43c22df1152c637af450d366e57cde6e22
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@szmarczak/http-timer@npm:^1.1.2":
|
||||
version: 1.1.2
|
||||
resolution: "@szmarczak/http-timer@npm:1.1.2"
|
||||
@@ -31826,6 +31980,8 @@ __metadata:
|
||||
"@medusajs/user": "workspace:^"
|
||||
"@medusajs/utils": "workspace:^"
|
||||
"@medusajs/workflow-engine-inmemory": "workspace:*"
|
||||
"@swc/core": ^1.4.8
|
||||
"@swc/jest": ^0.2.36
|
||||
babel-preset-medusa-package: "*"
|
||||
faker: ^5.5.3
|
||||
jest: ^26.6.3
|
||||
@@ -31864,6 +32020,8 @@ __metadata:
|
||||
"@medusajs/user": "workspace:^"
|
||||
"@medusajs/utils": "workspace:^"
|
||||
"@medusajs/workflow-engine-inmemory": "workspace:*"
|
||||
"@swc/core": ^1.4.8
|
||||
"@swc/jest": ^0.2.36
|
||||
babel-preset-medusa-package: "*"
|
||||
faker: ^5.5.3
|
||||
jest: ^26.6.3
|
||||
|
||||
Reference in new issue
Block a user