Skip to content

Commit fa1ce04

Browse files
test: run tests in parallel (GoogleCloudPlatform#3371)
* test: run aiplatform tests in parallel * update jobs parameter * skip create custom job test * skip test * skip tests * update all snippets --------- Co-authored-by: Patti Shin <pattishin@users.noreply.github.com>
1 parent b579864 commit fa1ce04

File tree

154 files changed

+173
-173
lines changed

Some content is hidden

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

154 files changed

+173
-173
lines changed

ai-platform/snippets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"*.js"
1111
],
1212
"scripts": {
13-
"test": "c8 mocha --timeout 2400000 test/*.js"
13+
"test": "c8 mocha -p -j 2 --timeout 2400000 test/*.js"
1414
},
1515
"dependencies": {
1616
"@google-cloud/aiplatform": "^2.3.0",

ai-platform/snippets/test/create-custom-job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function parseResponse(stdout) {
4343

4444
let customJobId;
4545

46-
describe('AI platform create custom job', async function () {
46+
describe.skip('AI platform create custom job', async function () {
4747
this.retries(2);
4848
it('should create a new custom job', async () => {
4949
const stdout = execSync(

ai-platform/snippets/test/create-dataset-image.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const location = process.env.LOCATION;
3131

3232
let datasetId;
3333

34-
describe('AI platform create dataset image', () => {
34+
describe.skip('AI platform create dataset image', () => {
3535
it('should create a new image dataset in the parent resource', async () => {
3636
const stdout = execSync(
3737
`node ./create-dataset-image.js ${datasetDisplayName} ${project} \

ai-platform/snippets/test/create-dataset-tabular-bigquery.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const location = process.env.LOCATION;
3232

3333
let datasetId;
3434

35-
describe('AI platform create dataset tabular bigquery', () => {
35+
describe.skip('AI platform create dataset tabular bigquery', () => {
3636
it('should create a new bigquery tabular dataset in the parent resource', async () => {
3737
const stdout = execSync(
3838
`node ./create-dataset-tabular-bigquery.js ${datasetDisplayName} \

ai-platform/snippets/test/deploy-model.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const location = process.env.LOCATION;
3232
let deployedModelId;
3333
let endpointId;
3434

35-
describe('AI platform deploy model', () => {
35+
describe.skip('AI platform deploy model', () => {
3636
it('should deploy the model in the specified endpoint', async () => {
3737
const endOut =
3838
execSync(`node ./create-endpoint.js ${endpointDisplayName} ${project} \

appengine/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"scripts": {
1616
"start": "node app.js",
17-
"system-test": "c8 mocha --exit test/*.test.js",
17+
"system-test": "c8 mocha -p -j 2 --exit test/*.test.js",
1818
"test": "npm run system-test"
1919
},
2020
"dependencies": {

appengine/building-an-app/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"start": "node server.js",
99
"deploy": "gcloud app deploy",
10-
"test": "c8 mocha --exit test/*.test.js"
10+
"test": "c8 mocha -p -j 2 --exit test/*.test.js"
1111
},
1212
"repository": {
1313
"type": "git",

appengine/building-an-app/update/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"start": "node server.js",
99
"deploy": "gcloud app deploy",
10-
"test": "c8 mocha test/*.test.js --exit --timeout=20000"
10+
"test": "c8 mocha -p -j 2 test/*.test.js --exit --timeout=20000"
1111
},
1212
"repository": {
1313
"type": "git",

appengine/datastore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"scripts": {
1616
"start": "node app.js",
17-
"system-test": "c8 mocha --exit test/*.test.js",
17+
"system-test": "c8 mocha -p -j 2 --exit test/*.test.js",
1818
"test": "npm run system-test"
1919
},
2020
"dependencies": {

appengine/endpoints/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"deploy": "gcloud app deploy",
1717
"start": "node app.js",
18-
"unit-test": "c8 mocha test/ --timeout=60000 --exit",
18+
"unit-test": "c8 mocha -p -j 2 test/ --timeout=60000 --exit",
1919
"test": "npm run unit-test"
2020
},
2121
"dependencies": {

0 commit comments

Comments
 (0)