Skip to content

Commit

Permalink
Merge branch 'main' into owl-bot-copy-a98f1c1e2d009dfd5447
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea authored Sep 30, 2023
2 parents 46ab8c0 + 645736f commit eccab6f
Show file tree
Hide file tree
Showing 1,905 changed files with 632,587 additions and 1,035 deletions.
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo:latest
digest: sha256:c1a7cf36e5949106e7772393804ea1e19e38c691c8ad4d3af3faa13c3aedda73
digest: sha256:2504e243aeb46a96e5012409500fd35b01b86855bc4b916646d8b179b2908741
27 changes: 27 additions & 0 deletions .kokoro/continuous/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"

# Use the trampoline script to run in docker.
build_file: "google-cloud-python/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-cloud-python/.kokoro/system.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/continuous/system.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "system-3.11"
}
27 changes: 27 additions & 0 deletions .kokoro/presubmit/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"

# Use the trampoline script to run in docker.
build_file: "google-cloud-python/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-cloud-python/.kokoro/system.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/presubmit/system.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "system-3.11"
}
28 changes: 28 additions & 0 deletions .kokoro/system-single.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
# Copyright 2022 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.

# `-e` enables the script to automatically fail when a command fails
# `-o pipefail` sets the exit code to non-zero if any command fails,
# or zero if all commands in the pipeline exit successfully.
set -eo pipefail

pwd

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
SESSION_ARG=""

[[ -z "${NOX_SESSION}" ]] || SESSION_ARG="-s ${NOX_SESSION}"
python3 -m nox ${SESSION_ARG}
68 changes: 68 additions & 0 deletions .kokoro/system.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/bin/bash
# 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
#
# 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.

# `-e` enables the script to automatically fail when a command fails
# `-o pipefail` sets the exit code to non-zero if any command fails,
# or zero if all commands in the pipeline exit successfully.
set -eo pipefail

# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1

# Setup service account credentials.
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json

# Setup project id.
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")

# If this is a continuous build, send the test log to the FlakyBot.
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
cleanup() {
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot
}
trap cleanup EXIT HUP
fi

RETVAL=0

export PROJECT_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/..)

cd "$PROJECT_ROOT"

pwd

# A file for running system tests
system_test_script="${PROJECT_ROOT}/.kokoro/system-single.sh"

# Run system tests for each package with directory packages/*/tests/system
for dir in `find 'packages' -type d -wholename 'packages/*/tests/system'`; do
# Get the path to the package by removing the suffix /tests/system
package=$(echo $dir | cut -f -2 -d '/')
echo "Running system tests for ${package}"
pushd ${package}
# Temporarily allow failure.
set +e
${system_test_script}
ret=$?
set -e
if [ ${ret} -ne 0 ]; then
RETVAL=${ret}
fi
popd
done

exit ${RETVAL}
16 changes: 14 additions & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
"packages/google-cloud-beyondcorp-clientgateways": "0.4.2",
"packages/google-cloud-bigquery-analyticshub": "0.4.2",
"packages/google-cloud-bigquery-biglake": "0.4.2",
"packages/google-cloud-bigquery-connection": "1.13.1",
"packages/google-cloud-bigquery-data-exchange": "0.5.6",
"packages/google-cloud-bigquery-datapolicies": "0.6.1",
"packages/google-cloud-bigquery-datatransfer": "3.12.0",
"packages/google-cloud-bigquery-logging": "1.3.0",
"packages/google-cloud-bigquery-migration": "0.11.2",
"packages/google-cloud-bigquery-reservation": "1.11.2",
"packages/google-cloud-billing": "1.11.5",
"packages/google-cloud-billing-budgets": "1.12.1",
"packages/google-cloud-certificate-manager": "1.4.4",
Expand All @@ -33,6 +36,7 @@
"packages/google-cloud-confidentialcomputing": "0.4.1",
"packages/google-cloud-config": "0.1.1",
"packages/google-cloud-contact-center-insights": "1.12.1",
"packages/google-cloud-container": "2.31.0",
"packages/google-cloud-contentwarehouse": "0.7.1",
"packages/google-cloud-data-fusion": "1.8.3",
"packages/google-cloud-data-qna": "0.10.4",
Expand All @@ -41,14 +45,16 @@
"packages/google-cloud-dataform": "0.5.3",
"packages/google-cloud-datalabeling": "1.8.4",
"packages/google-cloud-dataplex": "1.6.3",
"packages/google-cloud-dataproc": "5.6.0",
"packages/google-cloud-dataproc-metastore": "1.12.1",
"packages/google-cloud-datastream": "1.7.1",
"packages/google-cloud-deploy": "1.12.1",
"packages/google-cloud-dialogflow": "2.24.0",
"packages/google-cloud-dialogflow": "2.24.1",
"packages/google-cloud-dialogflow-cx": "1.27.1",
"packages/google-cloud-discoveryengine": "0.11.1",
"packages/google-cloud-dlp": "3.12.3",
"packages/google-cloud-dms": "1.7.2",
"packages/google-cloud-documentai": "2.19.0",
"packages/google-cloud-documentai": "2.20.0",
"packages/google-cloud-domains": "1.5.3",
"packages/google-cloud-edgecontainer": "0.5.3",
"packages/google-cloud-enterpriseknowledgegraph": "0.3.4",
Expand All @@ -59,6 +65,7 @@
"packages/google-cloud-gke-backup": "0.5.2",
"packages/google-cloud-gke-connect-gateway": "0.8.4",
"packages/google-cloud-gke-multicloud": "0.6.3",
"packages/google-cloud-gsuiteaddons": "0.3.3",
"packages/google-cloud-iam": "2.12.2",
"packages/google-cloud-iam-logging": "1.2.2",
"packages/google-cloud-iap": "1.11.0",
Expand All @@ -79,6 +86,7 @@
"packages/google-cloud-notebooks": "1.8.1",
"packages/google-cloud-optimization": "1.5.0",
"packages/google-cloud-orchestration-airflow": "1.9.2",
"packages/google-cloud-os-config": "1.15.2",
"packages/google-cloud-phishing-protection": "1.9.2",
"packages/google-cloud-policy-troubleshooter": "1.9.1",
"packages/google-cloud-policysimulator": "0.1.1",
Expand All @@ -93,6 +101,7 @@
"packages/google-cloud-resource-manager": "1.10.4",
"packages/google-cloud-resource-settings": "1.7.2",
"packages/google-cloud-retail": "1.16.3",
"packages/google-cloud-scheduler": "2.11.1",
"packages/google-cloud-secret-manager": "2.16.4",
"packages/google-cloud-securitycenter": "1.23.3",
"packages/google-cloud-service-control": "1.9.2",
Expand All @@ -104,10 +113,13 @@
"packages/google-cloud-storageinsights": "0.1.3",
"packages/google-cloud-support": "0.1.2",
"packages/google-cloud-talent": "2.11.2",
"packages/google-cloud-tasks": "2.14.2",
"packages/google-cloud-texttospeech": "2.14.1",
"packages/google-cloud-tpu": "1.16.0",
"packages/google-cloud-video-live-stream": "1.5.2",
"packages/google-cloud-video-stitcher": "0.7.4",
"packages/google-cloud-video-transcoder": "1.10.1",
"packages/google-cloud-videointelligence": "2.11.4",
"packages/google-cloud-vm-migration": "1.6.3",
"packages/google-cloud-vmwareengine": "1.1.2",
"packages/google-cloud-vpc-access": "1.8.3",
Expand Down
Loading

0 comments on commit eccab6f

Please sign in to comment.