Repository navigation
feat(storage): support DirectPath over Interconnect in Cloud Monitoring and register channel_creation_latency view #8296
This file contains hidden or 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
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| name: java-shared-config downstream (dependencies) | |
| env: | |
| BUILD_SUBDIR: java-shared-config | |
| jobs: | |
| filter: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| library: ${{ steps.filter.outputs.library }} | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3.0.3 | |
| id: filter | |
| with: | |
| filters: | | |
| library: | |
| - 'java-shared-config/**' | |
| dependencies: | |
| needs: filter | |
| if: ${{ needs.filter.outputs.library == 'true' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [11] | |
| repo: | |
| - java-bigquery | |
| - java-bigquerystorage | |
| - java-spanner | |
| - java-storage | |
| - java-pubsub | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 | |
| with: | |
| distribution: zulu | |
| java-version: ${{matrix.java}} | |
| cache: maven | |
| - run: java -version | |
| - name: Install xmllint | |
| timeout-minutes: 5 | |
| run: | | |
| # Retry apt-get update and install up to 3 times with a 15-second per-request timeout. | |
| # Retries protect against transient network glitches, mirror timeouts, and apt lock contention on runner startup. | |
| for i in {1..3}; do | |
| sudo apt-get -o Acquire::http::Timeout="15" -o Acquire::Retries=3 update && \ | |
| sudo apt-get -o Acquire::http::Timeout="15" -o Acquire::Retries=3 -y install libxml2-utils && \ | |
| break || sleep 5 | |
| done | |
| - name: Install java-shared-dependencies and common dependencies | |
| run: | | |
| .kokoro/build.sh | |
| env: | |
| JOB_TYPE: install | |
| - name: Pre-build dependencies | |
| run: | | |
| LIB_DIR="${{matrix.repo}}" | |
| LIB_NAME="google-cloud-${LIB_DIR#java-}" | |
| TARGET_PATH="${LIB_DIR}/${LIB_NAME}" | |
| # Check if target matches standard structure (e.g. java-bigquery/google-cloud-bigquery) | |
| if [ ! -d "${TARGET_PATH}" ]; then | |
| # Fallback 1: Look for any google-cloud-* directory, excluding samples, retrofit, or BOMs (e.g. java-storage-nio/google-cloud-nio) | |
| ALT_PATH=$(find "${LIB_DIR}" -maxdepth 1 -type d -name "google-cloud-*" ! -name "*-bom" ! -name "*-parent" ! -name "*-deps-bom" ! -name "*-examples" ! -name "*samples" ! -name "*-retrofit" | head -n 1) | |
| if [ -n "${ALT_PATH}" ]; then | |
| TARGET_PATH="${ALT_PATH}" | |
| else | |
| # Fallback 2: Assume single-module project where pom.xml is in the root directory (e.g. java-logging-logback) | |
| TARGET_PATH="${LIB_DIR}" | |
| fi | |
| fi | |
| mvn install -pl ${TARGET_PATH} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - run: .kokoro/client-library-check.sh ${{matrix.repo}} dependencies | |