-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: restore nightly protobuf compatibility check #13884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
whowes
wants to merge
1
commit into
main
Choose a base branch
from
whowes/restore-proto-compat-check
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
88 changes: 88 additions & 0 deletions
88
.github/workflows/sdk-platform-java-downstream_protobuf_compatibility_check_nightly.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| # Runs on PRs targeting main, but will be filtered for Release PRs | ||
| branches: | ||
| - 'main' | ||
| workflow_dispatch: | ||
| inputs: | ||
| protobuf_runtime_versions: | ||
| description: 'Comma separated list of Protobuf-Java versions (i.e. "3.25.x","4.x.y"). | ||
| Note: Surround each version in the list with quotes ("")' | ||
| required: true | ||
| schedule: | ||
| - cron: '0 1 * * *' # Nightly at 1am | ||
|
|
||
| # This job intends to test the compatibility of Protobuf runtime version against modules in the monorepo. | ||
| name: sdk-platform-java Downstream Protobuf Compatibility Check Nightly | ||
| jobs: | ||
| downstream-protobuf-test: | ||
| # This job runs if any of the three conditions match: | ||
| # 1. PR is raised from Release-Please (PR comes from branch: release-please--branches-main) | ||
| # 2. Job is invoked by the nightly job (scheduled event) | ||
| # 3. Job is manually invoked via Github UI (workflow_dispatch event) | ||
| if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | ||
| runs-on: ubuntu-22.04 | ||
| permissions: | ||
| contents: read | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| module: | ||
| - java-bigtable | ||
| - java-bigquery | ||
| - java-bigquerystorage | ||
| - java-datastore | ||
| - java-firestore | ||
| - java-grafeas | ||
| - java-logging | ||
| - java-logging-logback | ||
| - java-pubsub | ||
| - java-resourcemanager | ||
| - java-showcase | ||
| - java-spanner | ||
| - java-spanner-jdbc | ||
| - java-storage | ||
| - java-storage-nio | ||
| - java-translate | ||
| # Default Protobuf-Java versions to use are specified here. Without this, the nightly workflow won't know | ||
| # which values to use and would resolve to ''. | ||
| protobuf-version: ${{ fromJSON(format('[{0}]', inputs.protobuf_runtime_versions || '"4.35.1"')) }} | ||
| steps: | ||
| - name: Checkout monorepo | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4 | ||
| with: | ||
| java-version: 8 | ||
| distribution: temurin | ||
| - run: echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV | ||
| # Java Client Libraries are compiled with Java 11 and target Java 8. Java 11 is required because GraalVM | ||
| # minimum support is for Java 11. | ||
| - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4 | ||
| with: | ||
| java-version: 11 | ||
| distribution: temurin | ||
| - name: Install monorepo modules | ||
| shell: bash | ||
| run: .kokoro/build.sh | ||
| env: | ||
| BUILD_SUBDIR: ${{ matrix.module }} | ||
| JOB_TYPE: install | ||
| - name: Print Protobuf-Java testing version | ||
| run: echo "Testing with Protobuf-Java v${PROTOBUF_RUNTIME_VERSION}" | ||
| env: | ||
| PROTOBUF_RUNTIME_VERSION: ${{ matrix.protobuf-version }} | ||
| - name: Perform downstream source compatibility testing | ||
| run: ./sdk-platform-java/.kokoro/nightly/downstream-protobuf-source-compatibility.sh | ||
| env: | ||
| MODULES_UNDER_TEST: ${{ matrix.module }} | ||
| PROTOBUF_RUNTIME_VERSION: ${{ matrix.protobuf-version }} | ||
| - name: Perform downstream binary compatibility testing | ||
| run: ./sdk-platform-java/.kokoro/nightly/downstream-protobuf-binary-compatibility.sh | ||
| env: | ||
| MODULES_UNDER_TEST: ${{ matrix.module }} | ||
| PROTOBUF_RUNTIME_VERSION: ${{ matrix.protobuf-version }} |
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.