You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Abacn (via GitHub)" <gi...@apache.org> on 2023/09/20 18:31:55 UTC
[GitHub] [beam] Abacn opened a new pull request, #28565: Rearrange Java Example tests on Dataflow
Abacn opened a new pull request, #28565:
URL: https://github.com/apache/beam/pull/28565
Part of #28561
Issues mentioned in above are fixed
- Dataflow examples now run runner v2 wordcount
- Exclude examples run on PostCommit Dataflow (v1, v2); for v1, created new Examples PostCommit Dataflow
- Examples PreCommit v1 now only run wordcount, which suffices to test java version
Leave the issue open because the last point is not addressed in this PR (Example tests are defined in two different files), which requires larger scope of refactor
**Please** add a meaningful description for your change here
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://github.com/apache/beam/blob/master/CONTRIBUTING.md#make-the-reviewers-job-easier).
To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI or the [workflows README](https://github.com/apache/beam/blob/master/.github/workflows/README.md) to see a list of phrases to trigger workflows.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #28565:
URL: https://github.com/apache/beam/pull/28565#issuecomment-1728345558
Jenkins dataflow java11 test failing "ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS" . Note that the seed job not run and test still run full precommit (V1appliance+V1streaming engine+V2), not related
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on a diff in pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #28565:
URL: https://github.com/apache/beam/pull/28565#discussion_r1333196711
##########
.github/workflows/beam_PreCommit_Java_Examples_Dataflow_Java11.yml:
##########
@@ -110,7 +110,7 @@ jobs:
- name: run javaExamplesDataflowPrecommit script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
- gradle-command: :javaExamplesDataflowPrecommit
+ gradle-command: :runners:google-cloud-dataflow-java:examples:preCommit
Review Comment:
yes this is intended. Commented on description
"Examples PreCommit Dataflow v1 Java11/17 now only run wordcount, which suffices to test java version"
If still run `:javaExamplesDataflowPrecommit` then there are significantly more Dataflow pipeline to run on each PR commit push, then people needs to wait for more time to have test results.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on a diff in pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #28565:
URL: https://github.com/apache/beam/pull/28565#discussion_r1333196711
##########
.github/workflows/beam_PreCommit_Java_Examples_Dataflow_Java11.yml:
##########
@@ -110,7 +110,7 @@ jobs:
- name: run javaExamplesDataflowPrecommit script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
- gradle-command: :javaExamplesDataflowPrecommit
+ gradle-command: :runners:google-cloud-dataflow-java:examples:preCommit
Review Comment:
yes this is intended. Commented on description
"Examples PreCommit Dataflow v1 Java11/17 now only run wordcount, which suffices to test java version"
Now `:javaExamplesDataflowPrecommit` adds more tests. If still run `:javaExamplesDataflowPrecommit` on all Java versions then there are significantly more Dataflow pipeline to run on each PR commit push, then people needs to wait for more time to have test results. (Java 21 support is planned also)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] damondouglas commented on a diff in pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "damondouglas (via GitHub)" <gi...@apache.org>.
damondouglas commented on code in PR #28565:
URL: https://github.com/apache/beam/pull/28565#discussion_r1332219649
##########
.github/workflows/beam_PreCommit_Java_Examples_Dataflow_Java11.yml:
##########
@@ -110,7 +110,7 @@ jobs:
- name: run javaExamplesDataflowPrecommit script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
- gradle-command: :javaExamplesDataflowPrecommit
+ gradle-command: :runners:google-cloud-dataflow-java:examples:preCommit
Review Comment:
Replacing `javaExamplesDataflowPrecommit` with `:runners:google-cloud-dataflow-java:examples:preCommit` makes it so that [this](https://github.com/Abacn/beam/blob/adjustexampletest/runners/google-cloud-dataflow-java/examples/build.gradle#L172-L175) runs instead of [this](https://github.com/Abacn/beam/blob/adjustexampletest/build.gradle.kts#L557-L561)?
##########
.github/workflows/beam_PostCommit_Java_Examples_Dataflow.yml:
##########
@@ -0,0 +1,89 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: PostCommit Java Examples Dataflow
+
+on:
+ issue_comment:
+ types: [created]
+ schedule:
+ - cron: '0 */6 * * *'
+ workflow_dispatch:
+
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+ group: '${{ github.workflow }} @ ${{ github.event.issue.number || github.event.pull_request.head.label || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.comment.body || github.event.sender.login}}'
+ cancel-in-progress: true
+
+#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
+permissions:
+ actions: write
+ pull-requests: write
+ checks: write
+ contents: read
+ deployments: read
+ id-token: none
+ issues: write
+ discussions: read
+ packages: read
+ pages: read
+ repository-projects: read
+ security-events: read
+ statuses: read
+
+env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
+ GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
+
+jobs:
+ beam_PostCommit_Java_Examples_Dataflow_V2:
+ name: ${{matrix.job_name}} (${{matrix.job_phrase}})
+ runs-on: [self-hosted, ubuntu-20.04, main]
+ timeout-minutes: 180
+ strategy:
+ matrix:
+ job_name: [beam_PostCommit_Java_Examples_Dataflow_V1]
+ job_phrase: [Run Java examples on Dataflow]
+ if: |
+ github.event_name == 'workflow_dispatch' ||
+ github.event_name == 'schedule' ||
+ github.event.comment.body == 'Run Java Examples on Dataflow'
+ steps:
+ - uses: actions/checkout@v4
+ - name: Setup repository
+ uses: ./.github/actions/setup-action
+ with:
+ comment_phrase: ${{ matrix.job_phrase }}
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
+ - name: run PostCommit Java Examples Dataflow script
+ uses: ./.github/actions/gradle-command-self-hosted-action
+ with:
+ gradle-command: :runners:google-cloud-dataflow-java:examples:javaPostCommit
+ max-workers: 12
+ - name: Archive JUnit Test Results
+ uses: actions/upload-artifact@v3
+ if: failure()
+ with:
+ name: JUnit Test Results
+ path: "**/build/reports/tests/"
+ - name: Publish JUnit Test Results
+ uses: EnricoMi/publish-unit-test-result-action@v2
+ if: always()
+ with:
+ files: '**/build/test-results/**/*.xml'
Review Comment:
@Abacn Is it correct to say that we can't see the outcome of this configuration until after the PR is merged?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on a diff in pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #28565:
URL: https://github.com/apache/beam/pull/28565#discussion_r1333199410
##########
.github/workflows/beam_PreCommit_Java_Examples_Dataflow_Java11.yml:
##########
@@ -110,7 +110,7 @@ jobs:
- name: run javaExamplesDataflowPrecommit script
uses: ./.github/actions/gradle-command-self-hosted-action
with:
- gradle-command: :javaExamplesDataflowPrecommit
+ gradle-command: :runners:google-cloud-dataflow-java:examples:preCommit
Review Comment:
as we already see quota error `java.lang.RuntimeException: Startup of the worker pool in zone us-central1-b failed to bring up any of the desired 1 workers.`: https://ci-beam.apache.org/job/beam_PreCommit_Java_Examples_Dataflow_Java11_Commit/17539/testReport/junit/org.apache.beam.examples/WindowedWordCountIT/testWindowedWordCountInBatchDynamicSharding/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn merged pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn merged PR #28565:
URL: https://github.com/apache/beam/pull/28565
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #28565:
URL: https://github.com/apache/beam/pull/28565#issuecomment-1728302492
R: @damondouglas
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] github-actions[bot] commented on pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #28565:
URL: https://github.com/apache/beam/pull/28565#issuecomment-1728307492
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on PR #28565:
URL: https://github.com/apache/beam/pull/28565#issuecomment-1728301792
Tests passed on https://github.com/apache/beam/pull/28565/commits/e864092b218fd83754669d04bf3d850e3ad4e068 the last commit just fixes README.md, ready for review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] Abacn commented on a diff in pull request #28565: Rearrange Java Example tests on Dataflow
Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on code in PR #28565:
URL: https://github.com/apache/beam/pull/28565#discussion_r1333193518
##########
.github/workflows/beam_PostCommit_Java_Examples_Dataflow.yml:
##########
@@ -0,0 +1,89 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: PostCommit Java Examples Dataflow
+
+on:
+ issue_comment:
+ types: [created]
+ schedule:
+ - cron: '0 */6 * * *'
+ workflow_dispatch:
+
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+ group: '${{ github.workflow }} @ ${{ github.event.issue.number || github.event.pull_request.head.label || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.comment.body || github.event.sender.login}}'
+ cancel-in-progress: true
+
+#Setting explicit permissions for the action to avoid the default permissions which are `write-all` in case of pull_request_target event
+permissions:
+ actions: write
+ pull-requests: write
+ checks: write
+ contents: read
+ deployments: read
+ id-token: none
+ issues: write
+ discussions: read
+ packages: read
+ pages: read
+ repository-projects: read
+ security-events: read
+ statuses: read
+
+env:
+ GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
+ GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
+
+jobs:
+ beam_PostCommit_Java_Examples_Dataflow_V2:
+ name: ${{matrix.job_name}} (${{matrix.job_phrase}})
+ runs-on: [self-hosted, ubuntu-20.04, main]
+ timeout-minutes: 180
+ strategy:
+ matrix:
+ job_name: [beam_PostCommit_Java_Examples_Dataflow_V1]
+ job_phrase: [Run Java examples on Dataflow]
+ if: |
+ github.event_name == 'workflow_dispatch' ||
+ github.event_name == 'schedule' ||
+ github.event.comment.body == 'Run Java Examples on Dataflow'
+ steps:
+ - uses: actions/checkout@v4
+ - name: Setup repository
+ uses: ./.github/actions/setup-action
+ with:
+ comment_phrase: ${{ matrix.job_phrase }}
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
+ - name: run PostCommit Java Examples Dataflow script
+ uses: ./.github/actions/gradle-command-self-hosted-action
+ with:
+ gradle-command: :runners:google-cloud-dataflow-java:examples:javaPostCommit
+ max-workers: 12
+ - name: Archive JUnit Test Results
+ uses: actions/upload-artifact@v3
+ if: failure()
+ with:
+ name: JUnit Test Results
+ path: "**/build/reports/tests/"
+ - name: Publish JUnit Test Results
+ uses: EnricoMi/publish-unit-test-result-action@v2
+ if: always()
+ with:
+ files: '**/build/test-results/**/*.xml'
Review Comment:
yes. technically it could be tested on fork but need dataflow credential, which is hard to step
This file is copy pasted from beam_PostCommit_Java_Examples_Dataflow_V2, the diff shows below
```
< name: PostCommit Java Examples Dataflow
---
> name: PostCommit Java Examples Dataflow V2
24c24
< - cron: '0 */6 * * *'
---
> - cron: '0 */6 * * *'
59,61c59,61
< matrix:
< job_name: [beam_PostCommit_Java_Examples_Dataflow_V1]
< job_phrase: [Run Java examples on Dataflow]
---
> matrix:
> job_name: [beam_PostCommit_Java_Examples_Dataflow_V2]
> job_phrase: [Run Java Examples on Dataflow Runner V2]
65c65
< github.event.comment.body == 'Run Java Examples on Dataflow'
---
> github.event.comment.body == 'Run Java Examples on Dataflow Runner V2'
74c74
< - name: run PostCommit Java Examples Dataflow script
---
> - name: run PostCommit Java Examples Dataflow V2 script
77,78c77,78
< gradle-command: :runners:google-cloud-dataflow-java:examples:javaPostCommit
< max-workers: 12
---
> gradle-command: :runners:google-cloud-dataflow-java:examplesJavaRunnerV2IntegrationTest
> max-workers: 12
```
I was able to run `./gradlew :runners:google-cloud-dataflow-java:examplesJavaRunnerV2IntegrationTest` locally
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org