Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
ci: linkage monitor CI job to use build.sh
Browse files Browse the repository at this point in the history
This PR updates the GitHub Actions configuration for Linkage Monitor. Before this change, the CI configuration has "mvn install" command with 6 options. It turned out that a slight difference in the command line option from "build.sh" fails the build in google-auth-library-java repository (GoogleCloudPlatform/cloud-opensource-java#1941). (@Neenu1995 found the build failure. Thanks!)

Therefore, this change updates the configuration so that Linkage Monitor job just uses "build.sh" to install the artifacts into local Maven repository.

# How did I test?

I tested this change in java-spanner repository with this draft PR: googleapis/java-spanner#868

<img width="889" alt="Screen Shot 2021-02-12 at 16 54 18" src="https://user-images.githubusercontent.com/28604/107826467-f3cd5c80-6d52-11eb-86f1-1a8053326978.png">

It succeeded.

Source-Author: Tomo Suzuki <[email protected]>
Source-Date: Tue Feb 16 15:56:09 2021 -0500
Source-Repo: googleapis/synthtool
Source-Sha: f327d3b657a63ae4a8efd7f011a15eacae36b59c
Source-Link: googleapis/synthtool@f327d3b
  • Loading branch information
yoshi-automation committed Feb 16, 2021
1 parent f04c1ac commit 1d48d00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 27 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,10 @@ jobs:
java-version: 8
- run: java -version
- name: Install artifacts to local Maven repository
run: |
source .kokoro/common.sh
retry_with_backoff 3 10 \
mvn install -B -V \
-Dmaven.test.skip -DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true
run: .kokoro/build.sh
shell: bash
- uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
- name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release)
uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
lint:
runs-on: ubuntu-latest
steps:
Expand Down
23 changes: 6 additions & 17 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,22 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-analytics-admin.git",
"sha": "3d7298c9de83309984447f985cc578c35d594758"
"sha": "f04c1ac78d431b424d7279afae1173ea63708474"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb",
"internalRef": "356341083"
"name": "googleapis-gen",
"remote": "https://github.com/googleapis/googleapis-gen.git",
"sha": "c2f406125475d4df75373708747e1d87ba50f345",
"internalRef": "357773363"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "2414b817065726eae0bc525346c7e874f969369d"
}
}
],
"destinations": [
{
"client": {
"source": "googleapis",
"apiName": "analytics-admin",
"apiVersion": "v1alpha",
"language": "java",
"generator": "bazel"
"sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c"
}
}
],
Expand Down

0 comments on commit 1d48d00

Please sign in to comment.