Skip to content

Commit 8095342

Browse files
authored
ci: stop using Google's Maven mirror in downstream checks (#12826)
For #12824. The use of the Maven Central mirror is the causes of the failures: `Error: Non-resolvable parent POM for com.google.cloud:google-cloud-bigtable-parent:2.77.1: The following artifacts could not be resolved: com.google.cloud:sdk-platform-java-config:pom:3.59.0 (absent): com.google.cloud:sdk-platform-java-config:pom:3.59.0 was not found in https://maven-central.storage-download.googleapis.com/maven2/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of google-maven-central has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 14, column 13 -> [Help 2]` b/31927595#comment86 for the cause.
1 parent 3750661 commit 8095342

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/sdk-platform-java-downstream.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
filters: |
2424
library:
2525
- 'sdk-platform-java/**'
26+
- .kokoro/downstream-compatibility.sh
2627
downstream-compatibility:
2728
needs: filter
2829
if: ${{ needs.filter.outputs.library == 'true' }}

.kokoro/downstream-compatibility.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ scriptDir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
2727
cd "${scriptDir}/.." # cd to the root of this repo
2828
source "$scriptDir/common.sh"
2929

30-
setup_maven_mirror
31-
3230
install_modules "sdk-platform-java"
3331
cd sdk-platform-java
3432

@@ -42,6 +40,9 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
4240
git clone "https://github.com/googleapis/$repo.git" --depth=1 --branch "v$last_release"
4341
update_all_poms_dependency "$repo" google-cloud-shared-dependencies "$SHARED_DEPS_VERSION"
4442
pushd "$repo"
43+
echo "Diff to run the test with modified dependencies:"
44+
git --no-pager diff
45+
echo "---------------"
4546
JOB_TYPE="test" ./.kokoro/build.sh
4647
popd
4748
done

0 commit comments

Comments
 (0)