forked from GoogleCloudPlatform/opentelemetry-operations-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from GoogleCloudPlatform/main
Merge all new changes from the official Google repository.
- Loading branch information
Showing
84 changed files
with
13,761 additions
and
57,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.git | ||
**/node_modules/ | ||
**/Dockerfile | ||
**/dist/ |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2023 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 | ||
# | ||
# https://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. | ||
|
||
# Global owners | ||
* @GoogleCloudPlatform/opentelemetry-ops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Config reference: | ||
# https://github.com/googleapis/repo-automation-bots/tree/main/packages/trusted-contribution | ||
|
||
trustedContributors: | ||
- renovate-bot | ||
annotations: | ||
# Automatically run Cloud Build tests | ||
- type: comment | ||
text: /gcbrun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ node_modules/ | |
npm-debug.log | ||
.nyc_output/ | ||
build/ | ||
dist/ | ||
|
||
#backup files | ||
*-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2021 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. | ||
|
||
steps: | ||
# Cloud Functions doesn't play nice with lerna monorepos, so build tarballs of the local | ||
# dependencies and include them in the source zip. | ||
- name: node:16-alpine | ||
id: build | ||
script: | | ||
set -x | ||
# install dev deps and tools for the monorepo | ||
apk add zip jq | ||
# bootstrap and compile only the packages needed for e2e test server | ||
npm install --workspace=./e2e-test-server | ||
npx lerna@^7 run compile --scope=@google-cloud/e2e-test-server --include-dependencies | ||
# builds a small self contained bundle with @vercel/ncc under dist/ | ||
cd e2e-test-server | ||
# --external will avoid bundling functions-framework. Needed so we only have one copy of | ||
# global variables in that package when GCF executes it. | ||
npm run bundle -- --external @google-cloud/functions-framework | ||
# create a new fake package.json in dist/ and zip it up into a source zip for Cloud | ||
# Functions | ||
cd dist | ||
cp ../fake.package.json package.json | ||
zip -qr function-source.zip . | ||
# Run the test | ||
- name: $_TEST_RUNNER_IMAGE | ||
id: run-tests-cloud-functions | ||
dir: / | ||
env: ["PROJECT_ID=$PROJECT_ID"] | ||
args: | ||
- cloud-functions-gen2 | ||
- --functionsource=/workspace/e2e-test-server/dist/function-source.zip | ||
- --runtime=nodejs16 | ||
- --entrypoint=cloudFunctionHandler | ||
|
||
logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs | ||
timeout: 20m | ||
substitutions: | ||
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0 | ||
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-js-e2e-test-server:${SHORT_SHA} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2021 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. | ||
|
||
steps: | ||
# Wait for the image to exist | ||
- name: "docker" | ||
id: wait-for-image | ||
entrypoint: "sh" | ||
timeout: 10m | ||
env: ["_TEST_SERVER_IMAGE=${_TEST_SERVER_IMAGE}"] | ||
args: | ||
- e2e-test-server/wait-for-image.sh | ||
|
||
# Run the test | ||
- name: $_TEST_RUNNER_IMAGE | ||
id: run-tests-cloud-run | ||
dir: / | ||
env: ["PROJECT_ID=$PROJECT_ID"] | ||
args: | ||
- cloud-run | ||
- --image=$_TEST_SERVER_IMAGE | ||
|
||
logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs | ||
timeout: 20m | ||
substitutions: | ||
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0 | ||
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-js-e2e-test-server:${SHORT_SHA} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2023 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 | ||
# | ||
# https://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. | ||
|
||
steps: | ||
# Wait for the image to exist | ||
- name: "docker" | ||
id: wait-for-image | ||
entrypoint: "sh" | ||
timeout: 10m | ||
env: ["_TEST_SERVER_IMAGE=${_TEST_SERVER_IMAGE}"] | ||
args: | ||
- e2e-test-server/wait-for-image.sh | ||
|
||
# Run the test | ||
- name: $_TEST_RUNNER_IMAGE | ||
id: run-tests-gae | ||
dir: / | ||
env: ["PROJECT_ID=$PROJECT_ID"] | ||
args: | ||
- gae | ||
- --image=$_TEST_SERVER_IMAGE | ||
- --runtime=node | ||
|
||
logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs | ||
timeout: 20m | ||
substitutions: | ||
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0 | ||
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-js-e2e-test-server:${SHORT_SHA} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "./node_modules/gts/" | ||
"extends": "../node_modules/gts/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/package", | ||
"name": "cloud-functions-dist", | ||
"version": "1.0.0", | ||
"description": "A fake package.json used for the zip bundle sent to Cloud Functions", | ||
"main": "index.js", | ||
"dependencies": { | ||
"@google-cloud/functions-framework": "3.2.0" | ||
} | ||
} |
Oops, something went wrong.