Skip to content

Commit 45c023a

Browse files
author
Luca Forstner
committed
network mutex
1 parent e0151ec commit 45c023a

File tree

11 files changed

+12
-7
lines changed

11 files changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,10 @@ jobs:
692692
E2E_TEST_DSN: ${{ secrets.E2E_TEST_DSN }}
693693
E2E_TEST_SENTRY_ORG_SLUG: 'sentry-javascript-sdks'
694694
E2E_TEST_SENTRY_TEST_PROJECT: 'sentry-javascript-e2e-tests'
695+
# yarn network mutex is necessary because we run multiple yarn install commands at the same time and they might conflict
695696
run: |
696697
cd packages/e2e-tests
698+
yarn config set -- --mutex network
697699
yarn test:e2e
698700
699701
job_required_tests:

packages/e2e-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To get you started with the recipe, you can copy the following into `test-recipe
5454
{
5555
"$schema": "../../test-recipe-schema.json",
5656
"testApplicationName": "My New Test Application",
57-
"buildCommand": "yarn install --network-concurrency 1",
57+
"buildCommand": "yarn install",
5858
"tests": [
5959
{
6060
"testName": "My new test",

packages/e2e-tests/test-applications/create-next-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"typescript": "4.9.4"
2424
},
2525
"devDependencies": {
26+
"axios": "1.1.2",
2627
"@playwright/test": "^1.27.1"
2728
},
2829
"volta": {

packages/e2e-tests/test-applications/create-next-app/test-recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../../test-recipe-schema.json",
33
"testApplicationName": "create-next-app",
4-
"buildCommand": "yarn install --network-concurrency 1 && npx playwright install && yarn build",
4+
"buildCommand": "yarn install && npx playwright install && yarn build",
55
"tests": [
66
{
77
"testName": "Playwright tests - Prod Mode",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "../../test-recipe-schema.json",
33
"testApplicationName": "create-react-app",
4-
"buildCommand": "yarn install --network-concurrency 1 && yarn build",
4+
"buildCommand": "yarn install && yarn build",
55
"tests": []
66
}

packages/e2e-tests/test-applications/nextjs-app-dir/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"typescript": "4.9.4"
2323
},
2424
"devDependencies": {
25+
"axios": "1.1.2",
2526
"ts-node": "10.9.1",
2627
"@playwright/test": "^1.27.1"
2728
},

packages/e2e-tests/test-applications/nextjs-app-dir/test-recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../../test-recipe-schema.json",
33
"testApplicationName": "nextjs-13-app-dir",
4-
"buildCommand": "yarn install --network-concurrency 1 && npx playwright install && yarn build",
4+
"buildCommand": "yarn install && npx playwright install && yarn build",
55
"buildAssertionCommand": "yarn ts-node --script-mode assert-build.ts",
66
"tests": [
77
{

packages/e2e-tests/test-applications/node-express-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"typescript": "4.9.5"
1919
},
2020
"devDependencies": {
21+
"axios": "1.1.2",
2122
"@playwright/test": "^1.27.1"
2223
},
2324
"volta": {

packages/e2e-tests/test-applications/node-express-app/test-recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../../test-recipe-schema.json",
33
"testApplicationName": "node-express-app",
4-
"buildCommand": "yarn install --network-concurrency 1 && yarn build",
4+
"buildCommand": "yarn install && yarn build",
55
"tests": [
66
{
77
"testName": "Test express server",

packages/e2e-tests/test-applications/standard-frontend-react-tracing-import/test-recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../../test-recipe-schema.json",
33
"testApplicationName": "standard-frontend-react-tracing-import",
4-
"buildCommand": "yarn install --network-concurrency 1 && npx playwright install && yarn build",
4+
"buildCommand": "yarn install && npx playwright install && yarn build",
55
"tests": [
66
{
77
"testName": "Playwright tests",

packages/e2e-tests/test-applications/standard-frontend-react/test-recipe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../../test-recipe-schema.json",
33
"testApplicationName": "standard-frontend-react",
4-
"buildCommand": "yarn install --network-concurrency 1 && npx playwright install && yarn build",
4+
"buildCommand": "yarn install && npx playwright install && yarn build",
55
"tests": [
66
{
77
"testName": "Playwright tests",

0 commit comments

Comments
 (0)