Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/game-servers-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,22 @@ on:
schedule:
- cron: '0 0 * * 0'
jobs:
test:
permissions:
contents: 'read'
id-token: 'write'
if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run'
uses: ./.github/workflows/test.yaml
with:
name: 'game-servers-snippets'
path: 'game-servers/snippets'
# -----------------
# Issue to revisit skip: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/issues/3466
# -----------------
# test:
# permissions:
# contents: 'read'
# id-token: 'write'
# if: github.event.action != 'labeled' || github.event.label.name == 'actions:force-run'
# uses: ./.github/workflows/test.yaml
# with:
# name: 'game-servers-snippets'
# path: 'game-servers/snippets'
flakybot:
permissions:
contents: 'read'
id-token: 'write'
if: github.event_name == 'schedule' && always() # always() submits logs even if tests fail
uses: ./.github/workflows/flakybot.yaml
needs: [test]
# needs: [test]
2 changes: 1 addition & 1 deletion .kokoro/appengine/test-deployment/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build_file: "nodejs-docs-samples/.kokoro/trampoline.sh"
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node"
value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user"
}

# Tell the trampoline which build file to use.
Expand Down
4 changes: 2 additions & 2 deletions .kokoro/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ build_file: "nodejs-docs-samples/.kokoro/trampoline.sh"
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user"
value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user"
}

# Export XUnit test results for further analysis
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}
}
2 changes: 1 addition & 1 deletion .kokoro/functions/billing-periodic.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env_vars: {
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user"
value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user"
}

# Tell the trampoline which build file to use.
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/functions/ocr-app.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env_vars: {
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user"
value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user"
}

# Tell the trampoline which build file to use.
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/run/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env_vars: {
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:14-user"
value: "gcr.io/cloud-devrel-kokoro-resources/node:16-user"
}

# Export XUnit test results for further analysis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ function main(
const request = {parent, trainingPipeline};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline image classification response');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline image object detection response');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline tabular classification response');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline tabular regression response');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline text classification response :');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline text entity extraction response :');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline text sentiment analysis response :');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline video action recognition response');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline video classification response');
console.log(`Name : ${response.name}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ async function main(
};

// Create training pipeline request
const [response] = await pipelineServiceClient.createTrainingPipeline(
request
);
const [response] =
await pipelineServiceClient.createTrainingPipeline(request);

console.log('Create training pipeline video object tracking response');
console.log(`Name : ${response.name}`);
Expand Down
5 changes: 2 additions & 3 deletions ai-platform/snippets/get-hyperparameter-tuning-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ async function main(tuningJobId, project, location = 'us-central1') {
name,
};
// Get and print out a list of all the endpoints for this resource
const [response] = await jobServiceClient.getHyperparameterTuningJob(
request
);
const [response] =
await jobServiceClient.getHyperparameterTuningJob(request);

console.log('Get hyperparameter tuning job response');
console.log(`\tDisplay name: ${response.displayName}`);
Expand Down
5 changes: 2 additions & 3 deletions ai-platform/snippets/get-model-evaluation-slice.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ async function main(
};

// Get and print out a list of all the endpoints for this resource
const [response] = await modelServiceClient.getModelEvaluationSlice(
request
);
const [response] =
await modelServiceClient.getModelEvaluationSlice(request);

console.log('Get model evaluation slice');
console.log(`\tName : ${response.name}`);
Expand Down
5 changes: 2 additions & 3 deletions ai-platform/snippets/list-model-evaluation-slices.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ async function main(modelId, evaluationId, project, location = 'us-central1') {
};

// Get and print out a list of all the evaluation slices for this resource
const [response] = await modelServiceClient.listModelEvaluationSlices(
request
);
const [response] =
await modelServiceClient.listModelEvaluationSlices(request);
console.log('List model evaluation response', response);
console.log(response);
}
Expand Down
2 changes: 1 addition & 1 deletion ai-platform/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion appengine/hello-world/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=18.x.x"
"node": ">=16.0.0"
},
"scripts": {
"start": "node app.js",
Expand Down
2 changes: 1 addition & 1 deletion appengine/hello-world/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node app.js",
Expand Down
2 changes: 1 addition & 1 deletion appengine/storage/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000"
},
"engines": {
"node": ">=18.x.x"
"node": ">=16.0.0"
},
"dependencies": {
"@google-cloud/storage": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion appengine/storage/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "c8 mocha -p -j 2 system-test/*.test.js --exit --timeout=30000"
},
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"dependencies": {
"@google-cloud/storage": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion appengine/websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache Version 2.0",
"author": "Google Inc.",
"engines": {
"node": ">=16.x.x"
"node": ">=16.0.0"
},
"scripts": {
"deploy": "gcloud app deploy",
Expand Down
2 changes: 1 addition & 1 deletion auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"scripts": {
"test:auth": "c8 mocha -p -j 2 system-test/auth.test.js --timeout=30000",
Expand Down
2 changes: 1 addition & 1 deletion automl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"repository": "googleapis/nodejs-automl",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion cloud-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"repository": "googleapis/nodejs-language",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/mysql/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/mysql/mysql2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/postgres/knex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/sqlserver/mssql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-sql/sqlserver/tedious/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Google Inc.",
"private": true,
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"files": [
"*.js"
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/tutorial-gcf/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.js",
"private": true,
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"scripts": {
"start": "node index.js",
Expand Down
Loading