ci: add Github Actions workflow to check convergence in a release PR#1752
Conversation
| - run: java -version | ||
| - run: .kokoro/dashboard.sh | ||
|
|
||
| converge: |
There was a problem hiding this comment.
Let's be more specific here: dependency-convergence-check.
| with: | ||
| java-version: 8 | ||
| script: | | ||
| // only approve PRs from release-please |
There was a problem hiding this comment.
| // only approve PRs from release-please | |
| // only checks PRs from release-please |
| return; | ||
| } | ||
|
|
||
| // only approve PRs like "chore: release <release version>" |
There was a problem hiding this comment.
| // only approve PRs like "chore: release <release version>" | |
| // only checks PRs like "chore: release <release version>" |
| return; | ||
| } | ||
|
|
||
| // only approve PRs with README.md, CHANGELOG.md, pom.xml and versions.txt changes |
There was a problem hiding this comment.
| // only approve PRs with README.md, CHANGELOG.md, pom.xml and versions.txt changes | |
| // only checks PRs with README.md, CHANGELOG.md, pom.xml and versions.txt changes |
| RETURN_CODE=${INSTALL_RETURN_CODE} | ||
|
|
||
| case ${JOB_TYPE} in | ||
| converge) |
There was a problem hiding this comment.
please update this accordingly
| return; | ||
| } | ||
| - run: java -version | ||
| - run: .kokoro/dashboard.sh No newline at end of file |
There was a problem hiding this comment.
if you are checking JOB_TYPE in dashboard.sh, you would need to add the env var here:
env:
JOB_TYPE: convergence
| CONVERGE_RETURN_CODE=$? | ||
| if [[ $INSTALL_RETURN_CODE -eq 0 ]] | ||
| then | ||
| RETURN_CODE=${CONVERGE_RETURN_CODE} | ||
| fi | ||
| ;; | ||
| esac | ||
|
|
||
| echo "exiting with ${RETURN_CODE}" |
There was a problem hiding this comment.
This would only tell you if the report was built successfully or not (which is important) but I'm not seeing the output being checked.
Ideally, if we have full convergence, the script should exit with 0 and output Shared dependencies converge \o/. Otherwise, it should exit with error code 1 and a list of clients that are not converging (which is already being output by the report).
| while IFS= read -r line; do | ||
| echo "$line" | ||
| LINE_COUNT=$((LINE_COUNT+1)) | ||
| done < "$outputFile" |
There was a problem hiding this comment.
If you're just counting lines - cat "${outputFile}" | wc -l
…-bom into convergence-ci-add
…mplates/java_library/.kokoro (#1752) build(deps): bump protobuf Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 3.20.1 to 3.20.2. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py) - [Commits](protocolbuffers/protobuf@v3.20.1...v3.20.2) --- updated-dependencies: - dependency-name: protobuf dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Source-Link: googleapis/synthtool@239f962 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d5da32501662e4e53365220cc14cfb1d3b9446585397d57dac50171d92556ae7
No description provided.