Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bootstrap releases for gax and tools #1481

Merged
merged 57 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
da48969
chore: bootstrap releases for path: .
sofisl Jul 27, 2023
8eef484
Update .release-please-manifest.json
sofisl Jul 27, 2023
c316eb5
Update release-please-config.json
sofisl Jul 27, 2023
35529ff
Delete release-please-manifest.json
sofisl Jul 27, 2023
e4b9af8
Update .release-please-manifest.json
sofisl Jul 27, 2023
61a51ae
fix: make gapic-tools depend on gax-nodejs (#1480)
sofisl Jul 27, 2023
1aca121
chore(main): release 4.0.3 (#1482)
release-please[bot] Jul 27, 2023
f8864b6
fix: release new version of gapic-tools (#1483)
sofisl Jul 27, 2023
7f798d9
chore(deps): update dependency @compodoc/compodoc to v1.1.21 (#1453)
renovate-bot Jul 27, 2023
c6e80d1
fix(deps): update dependency @grpc/grpc-js to ~1.9.0 (#1486)
renovate-bot Aug 2, 2023
1718d62
build: update linter (#1491)
sofisl Aug 16, 2023
cd5ab3b
fix(deps): update dependency proto3-json-serializer to v2 (#1489)
renovate-bot Aug 16, 2023
9c0eeff
fix(deps): update dependency google-proto-files to v4 (#1490)
renovate-bot Aug 17, 2023
554c5fe
rebase
sofisl Sep 6, 2023
539e10f
fix(deps): update dependency protobufjs-cli to v1.1.2 (#1495)
renovate-bot Aug 22, 2023
8fe7c34
chore(deps): update dependency protobufjs to v7.2.5 (#1494)
renovate-bot Aug 22, 2023
58394e7
chore: bootstrap releases for path: .
sofisl Sep 7, 2023
131deaf
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Sep 7, 2023
adbd67d
chore: create release-please manifest files, make gax and tools side-…
sofisl Sep 7, 2023
3877ca0
delete node_modules
sofisl Sep 7, 2023
5d8bbc5
merge in main
sofisl Sep 7, 2023
bd64aad
Update .release-please-manifest.json
sofisl Sep 7, 2023
60c8e62
add package.json command
sofisl Sep 7, 2023
e94d4fb
Merge branch 'release-please/bootstrap/default' of github.com:googlea…
sofisl Sep 7, 2023
24ebb08
retry tests
sofisl Sep 7, 2023
dd17f4f
retry tests
sofisl Sep 7, 2023
c618299
move to top file
sofisl Sep 7, 2023
602bd01
retry
sofisl Sep 7, 2023
1112dda
add package.json
sofisl Sep 7, 2023
2bfdf40
retry
sofisl Sep 7, 2023
00c3964
retry
sofisl Sep 7, 2023
bf8c6fb
chore: fix tests
sofisl Sep 7, 2023
56454b9
add ignore files to owlbot
sofisl Sep 7, 2023
7739d9a
retry
sofisl Sep 7, 2023
df67ab0
run docs
sofisl Sep 7, 2023
14dde1d
retry
sofisl Sep 7, 2023
e2d12da
retry
sofisl Sep 7, 2023
4bb9414
retry
sofisl Sep 7, 2023
91036dd
retry
sofisl Sep 7, 2023
f301b87
retry
sofisl Sep 7, 2023
9d283df
add dep
sofisl Sep 7, 2023
8f8cd73
retry
sofisl Sep 7, 2023
0bbeedb
retry
sofisl Sep 7, 2023
3c4cee5
retry
sofisl Sep 7, 2023
1d70a7f
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Sep 7, 2023
7469478
Update .release-please-manifest.json
sofisl Sep 7, 2023
1b0f35d
merge conflict
sofisl Sep 18, 2023
08ef4f0
Update .release-please-manifest.json
sofisl Sep 18, 2023
bc70fde
Update release-please-config.json
sofisl Sep 18, 2023
de8cbf9
Update release-please-config.json
sofisl Sep 18, 2023
75328e3
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Sep 18, 2023
f414025
update release-please config
sofisl Sep 18, 2023
185eead
Merge branch 'release-please/bootstrap/default' of github.com:googlea…
sofisl Sep 18, 2023
9172fc1
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Sep 18, 2023
93137ae
Update .OwlBot.lock.yaml
sofisl Sep 19, 2023
925fbae
Update release-please-config.json
sofisl Sep 19, 2023
475d96a
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Sep 19, 2023
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If the support paths suggested above still do not result in a resolution, please
- OS:
- Node.js version:
- npm version:
- `google-gax` version:
- `gax-nodejs` version:

#### Steps to reproduce

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
# The first installation step ensures that all of our production
# dependencies work on the given Node.js version, this helps us find
# dependencies that don't match our engines field:
- run: npm install --production --engine-strict --ignore-scripts --no-package-lock
- run: cd gax; npm install --production --engine-strict --ignore-scripts --no-package-lock
# Clean up the production install, before installing dev/production:
- run: rm -rf node_modules
- run: npm install
- run: npm test
- run: cd gax; rm -rf node_modules
- run: cd gax; npm install
- run: cd gax; npm test
env:
MOCHA_THROW_DEPRECATION: false
test-tools:
Expand Down Expand Up @@ -54,8 +54,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm test
- run: cd gax; npm install
- run: cd gax; npm test
env:
MOCHA_THROW_DEPRECATION: false
windows-tools:
Expand All @@ -76,8 +76,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run lint
- run: cd gax; npm install
- run: cd gax; npm run lint
lint-tools:
runs-on: ubuntu-latest
steps:
Expand All @@ -94,8 +94,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run docs
- run: cd gax; npm install
- run: cd gax; npm run docs
- uses: JustinBeckwith/linkinator-action@v1
with:
paths: docs/
paths: gax/docs/
2 changes: 2 additions & 0 deletions .kokoro/browser-test.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .kokoro/system-test.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"./gax": "4.0.4",
"./tools": "0.1.8"
}
File renamed without changes.
7 changes: 7 additions & 0 deletions gax/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
samples/generated/
File renamed without changes.
4 changes: 4 additions & 0 deletions gax/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ts text eol=lf
*.js text eol=lf
protos/* linguist-generated
**/api-extractor.json linguist-language=JSON-with-Comments
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 52 additions & 0 deletions gax/.trampolinerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Template for .trampolinerc

# Add required env vars here.
required_envvars+=(
)

# Add env vars which are passed down into the container here.
pass_down_envvars+=(
"AUTORELEASE_PR"
"VERSION"
)

# Prevent unintentional override on the default image.
if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \
[[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image."
exit 1
fi

# Define the default value if it makes sense.
if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then
TRAMPOLINE_IMAGE_UPLOAD=""
fi

if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
TRAMPOLINE_IMAGE=""
fi

if [[ -z "${TRAMPOLINE_DOCKERFILE:-}" ]]; then
TRAMPOLINE_DOCKERFILE=""
fi

if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
TRAMPOLINE_BUILD_FILE=""
fi

# Secret Manager secrets.
source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh
File renamed without changes.
11 changes: 11 additions & 0 deletions gax/linkinator.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io",
"docs/js/menu-wc_es5.js"
],
"silent": true,
"concurrency": 10
}
102 changes: 102 additions & 0 deletions gax/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"name": "google-gax",
"version": "4.0.4",
"description": "Google API Extensions",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"files": [
"build/src",
"build/protos/",
"!build/src/**/*.map"
],
"dependencies": {
"@grpc/grpc-js": "~1.9.0",
"@grpc/proto-loader": "^0.7.0",
"@types/long": "^4.0.0",
"abort-controller": "^3.0.0",
"duplexify": "^4.0.0",
"google-auth-library": "^9.0.0",
"node-fetch": "^2.6.1",
"object-hash": "^3.0.0",
"proto3-json-serializer": "^2.0.0",
"protobufjs": "7.2.5",
"retry-request": "^6.0.0"
},
"devDependencies": {
"@compodoc/compodoc": "1.1.21",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@types/mocha": "^9.0.0",
"@types/ncp": "^2.0.1",
"@types/node": "^20.5.0",
"@types/node-fetch": "^2.5.4",
"@types/object-hash": "^3.0.0",
"@types/proxyquire": "^1.3.28",
"@types/pumpify": "^1.4.1",
"@types/sinon": "^10.0.0",
"@types/uglify-js": "^3.17.0",
"c8": "^8.0.0",
"codecov": "^3.1.0",
"execa": "^5.0.0",
"google-proto-files": "^4.0.0",
"gts": "^5.0.0",
"linkinator": "^4.0.0",
"long": "^4.0.0",
"mkdirp": "^2.0.0",
"mocha": "^9.0.0",
"ncp": "^2.0.0",
"null-loader": "^4.0.0",
"protobufjs-cli": "1.1.2",
"proxyquire": "^2.0.1",
"pumpify": "^2.0.0",
"rimraf": "^5.0.1",
"sinon": "^15.0.0",
"stream-events": "^1.0.4",
"ts-loader": "^8.0.0",
"typescript": "^5.1.6",
"uglify-js": "^3.17.0",
"walkdir": "^0.4.0",
"webpack": "^4.0.0",
"webpack-cli": "^4.0.0"
},
"scripts": {
"docs": "compodoc src/",
"pretest": "npm run prepare",
"test": "c8 mocha build/test/unit",
"lint": "gts check src samples test",
"clean": "gts clean",
"compile": "tsc -p . && cp src/*.json build/src && cp -r test/fixtures build/test && cp -r protos build/",
"compile-operation-protos": "pbjs -t json google/longrunning/operations.proto -p ./protos > protos/operations.json && pbjs -t static-module -r operations_protos google/longrunning/operations.proto -p ./protos > protos/operations.js && pbts protos/operations.js -o protos/operations.d.ts",
"compile-compute-operations-protos": "pbjs -t json google/longrunning/compute_operations.proto -p ./protos > protos/compute_operations.json && pbjs -t static-module -r compute_operations_protos google/longrunning/compute_operations.proto -p ./protos > protos/compute_operations.js && pbts protos/compute_operations.js -o protos/compute_operations.d.ts",
"compile-iam-protos": "pbjs -t json google/iam/v1/iam_policy.proto google/iam/v1/options.proto google/iam/v1/policy.proto google/iam/v1/logging/audit_data.proto -p ./protos > protos/iam_service.json && pbjs -t static-module -r iam_protos google/iam/v1/iam_policy.proto google/iam/v1/options.proto google/iam/v1/policy.proto google/iam/v1/logging/audit_data.proto -p ./protos > protos/iam_service.js && pbts protos/iam_service.js -o protos/iam_service.d.ts",
"compile-location-protos": "pbjs -t json google/cloud/location/locations.proto -p ./protos > protos/locations.json && pbjs -t static-module -r locations_protos google/cloud/location/locations.proto -p ./protos > protos/locations.js && pbts protos/locations.js -o protos/locations.d.ts",
"compile-status-protos": "pbjs -t json google/rpc/status.proto google/rpc/error_details.proto -p ./protos > protos/status.json",
"compile-http-protos": "pbjs -t static-module -r http_proto --keep-case google/api/http.proto -p ./protos > protos/http.js && pbts protos/http.js -o protos/http.d.ts",
"compile-showcase-proto": "pbjs -t json google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto google/showcase/v1beta1/testing.proto -p ./protos > test/fixtures/google-gax-packaging-test-app/protos/protos.json && pbjs -t static-module -r showcase_protos google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto google/showcase/v1beta1/testing.proto -p ./protos > test/fixtures/google-gax-packaging-test-app/protos/protos.js && pbts test/fixtures/google-gax-packaging-test-app/protos/protos.js -o test/fixtures/google-gax-packaging-test-app/protos/protos.d.ts",
"fix": "gts fix",
"prepare": "npm run compile && cd ../tools && npm i && npm run compile && cd ../gax && pwd && node ../tools/build/src/prepublish.js . && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json",
"system-test": "c8 mocha build/test/system-test --timeout 600000 && npm run test-application",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs",
"browser-test": "cd test/browser-test && npm run prefetch && npm install && npm test",
"test-application": "cd test/test-application && npm run prefetch && npm install && npm start",
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean",
"update-protos": "cd ../tools && npm i && npm run compile && cd ../gax && node ../tools/build/src/listProtos.js .",
"minify-proto-json": "cd ../tools && npm i && npm run compile && cd ../gax && node ../tools/build/src/minify.js",
"@compodoc/compodoc": "1.1.21"
},
"keywords": [
"grpc"
],
"author": "Google API Authors",
"license": "Apache-2.0",
"bugs": {
"url": "https:/googleapis/gax-nodejs/issues"
},
"homepage": "https:/googleapis/gax-nodejs#readme",
"engines": {
"node": ">=14"
},
"browser": "build/src/fallback.js"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"scripts": {
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"prefetch": "rm -rf node_modules package-lock.json google-gax*.tgz gapic-tools*.tgz && cd ../.. && npm pack && mv google-gax*.tgz test/showcase-echo-client/google-gax.tgz && cd tools && npm install && npm pack && mv gapic-tools*.tgz ../test/showcase-echo-client/gapic-tools.tgz",
"prefetch": "rm -rf node_modules package-lock.json google-gax*.tgz gapic-tools*.tgz && cd ../.. && npm pack && mv google-gax*.tgz test/showcase-echo-client/google-gax.tgz && cd ../tools && npm install && npm pack && mv gapic-tools*.tgz ../gax/test/showcase-echo-client/gapic-tools.tgz",
"prepare": "npm run compile-protos && npm run compile"
},
"dependencies": {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pkg = require('../../../package.json');
const gaxTarball = path.join(gaxDir, `${pkg.name}-${pkg.version}.tgz`);
const toolsPkg = require('../../../tools/package.json');
const toolsPkg = require('../../../../tools/package.json');
const toolsBasename = `${toolsPkg.name}-${toolsPkg.version}.tgz`;
const toolsTarball = path.join(gaxDir, toolsBasename);

Expand Down Expand Up @@ -166,7 +166,7 @@
}

// nodejs-kms does not have system test.
async function runSamplesTest(

Check warning on line 169 in gax/test/system-test/test.clientlibs.ts

View workflow job for this annotation

GitHub Actions / lint-gax

'runSamplesTest' is defined but never used
packageName: string,
inMonorepo: boolean
): Promise<TestResult> {
Expand All @@ -182,15 +182,15 @@
}
console.log('Packing gapic-tools...');
await execa('npm', ['install'], {
cwd: path.join(gaxDir, 'tools'),
cwd: path.join(gaxDir, '..', 'tools'),
stdio: 'inherit',
});
await execa('npm', ['pack'], {
cwd: path.join(gaxDir, 'tools'),
cwd: path.join(gaxDir, '..', 'tools'),
stdio: 'inherit',
});
await fs.promises.rename(
path.join(gaxDir, 'tools', toolsBasename),
path.join(gaxDir, '..', 'tools', toolsBasename),
toolsTarball
);
if (!fs.existsSync(toolsTarball)) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
"img.shields.io",
"docs/js/menu-wc_es5.js"
],
"silent": true,
"concurrency": 10
Expand Down
2 changes: 1 addition & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

import synthtool.languages.node as node

node.owlbot_main(templates_excludes=["LICENSE", "README.md", ".github/sync-repo-settings.yaml", ".github/workflows/ci.yaml",".kokoro/", ".kokoro/continuous/node12/common.cfg", ".kokoro/presubmit/node12/common.cfg", ".kokoro/release/docs.cfg", ".kokoro/release/publish.cfg"])
node.owlbot_main(templates_excludes=["LICENSE", "README.md", ".github/sync-repo-settings.yaml", ".github/workflows/ci.yaml",".kokoro/", ".kokoro/continuous/node12/common.cfg", ".kokoro/presubmit/node12/common.cfg", ".kokoro/release/docs.cfg", ".kokoro/release/publish.cfg", ".eslintrc.json", ".mocharc.js", ".nycrc", ".prettierrc.js", ".prettierignore", "release-please-config.json"])
Loading
Loading