Skip to content

Commit 8e4434a

Browse files
quirogasfeywind
andauthored
chore: eliminate test run.ts (googleapis#8414)
* chore: remove .mocharc.js generation and update package.json templates to point to root mocharc * chore: create unified root mocharc.js with parallel workers, update ci test runner memory limits, and remove all duplicate package-level configs * chore: remove test/run.ts runners and standardize package-level mocha script configurations * chore: enable recursive testing in root mocharc * chore: update generator templates, GHA workflow, baselines, and retryable map test to support unified mocharc.cjs * chore: rename root mocharc to .cjs, add generic batch test runner under ci/, and lower CI memory limit to 6GB * chore: update monorepo-wide package configurations to .mocharc.cjs and apply specific package fixes * chore: add root .mocharc.cjs config to satisfy baseline generator tests * chore: configure system-test templates and baselines to disable parallel execution * chore: use generic batch test runner for compute to prevent CI OOM failures * chore: remove generic batch runner and standardize compute unit test command to parallel mocha * chore: revert compute package.json test script to standard parallel mocha config * chore: configure system-test package scripts to use root mocharc and disable parallel execution * chore: clean up mocha config and scripts for new mapmanagement package --------- Co-authored-by: feywind <57276408+feywind@users.noreply.github.com>
1 parent 7ced78e commit 8e4434a

230 files changed

Lines changed: 457 additions & 601 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-ads-admanager/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"lint": "gts check",
3838
"postpack": "minifyProtoJson",
3939
"prepare": "npm run compile",
40-
"system-test": "c8 mocha build/system-test",
41-
"test": "c8 mocha build/test",
40+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
41+
"test": "c8 mocha --config ../../.mocharc.cjs build/test",
4242
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
4343
"prelint": "cd samples; npm link ../; npm i"
4444
},

packages/google-ads-datamanager/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"lint": "gts check",
3838
"postpack": "minifyProtoJson",
3939
"prepare": "npm run compile",
40-
"system-test": "c8 mocha build/system-test",
41-
"test": "c8 mocha build/test",
40+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
41+
"test": "c8 mocha --config ../../.mocharc.cjs build/test",
4242
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
4343
"prelint": "cd samples; npm link ../; npm i"
4444
},

packages/google-ai-generativelanguage/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"fix": "gts fix",
3737
"lint": "gts check",
3838
"prepare": "npm run compile",
39-
"system-test": "npm run compile && c8 mocha build/system-test",
40-
"test": "c8 mocha build/test",
39+
"system-test": "npm run compile && c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
40+
"test": "c8 mocha --config ../../.mocharc.cjs build/test",
4141
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
4242
"prelint": "cd samples; npm link ../; npm i"
4343
},

packages/google-analytics-admin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"prelint": "cd samples; npm link ../; npm i",
4040
"postpack": "minifyProtoJson",
4141
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
42-
"system-test": "c8 mocha build/system-test",
43-
"test": "c8 mocha build/test"
42+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
43+
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
4444
},
4545
"dependencies": {
4646
"google-auth-library": "^10.0.0-rc.1",

packages/google-analytics-data/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"prelint": "cd samples; npm link ../; npm i",
4040
"postpack": "minifyProtoJson",
4141
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
42-
"system-test": "c8 mocha build/system-test",
43-
"test": "c8 mocha build/test"
42+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
43+
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
4444
},
4545
"dependencies": {
4646
"google-gax": "^5.0.0"

packages/google-api-apikeys/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"prelint": "cd samples; npm link ../; npm i",
4141
"postpack": "minifyProtoJson",
4242
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
43-
"system-test": "c8 mocha build/system-test",
44-
"test": "c8 mocha build/test"
43+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
44+
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
4545
},
4646
"dependencies": {
4747
"google-gax": "^5.0.0"

packages/google-api-cloudquotas/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"lint": "gts check",
3838
"postpack": "minifyProtoJson",
3939
"prepare": "npm run compile",
40-
"system-test": "c8 mocha build/system-test",
41-
"test": "c8 mocha build/test",
40+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
41+
"test": "c8 mocha --config ../../.mocharc.cjs build/test",
4242
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
4343
"prelint": "cd samples; npm link ../; npm i"
4444
},

packages/google-api-servicecontrol/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"prelint": "cd samples; npm link ../; npm i",
4141
"postpack": "minifyProtoJson",
4242
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
43-
"system-test": "c8 mocha build/system-test",
44-
"test": "c8 mocha build/test"
43+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
44+
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
4545
},
4646
"dependencies": {
4747
"google-gax": "^5.0.0"

packages/google-api-servicemanagement/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"prelint": "cd samples; npm link ../; npm i",
4040
"postpack": "minifyProtoJson",
4141
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
42-
"system-test": "c8 mocha build/system-test",
43-
"test": "c8 mocha build/test"
42+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
43+
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
4444
},
4545
"dependencies": {
4646
"google-gax": "^5.0.0"

packages/google-api-serviceusage/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"prelint": "cd samples; npm link ../; npm i",
4040
"postpack": "minifyProtoJson",
4141
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
42-
"system-test": "c8 mocha build/system-test",
43-
"test": "c8 mocha build/test"
42+
"system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
43+
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
4444
},
4545
"dependencies": {
4646
"google-gax": "^5.0.0"

0 commit comments

Comments
 (0)