You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "clayburn (via GitHub)" <gi...@apache.org> on 2023/11/17 21:17:04 UTC
[PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
clayburn opened a new pull request, #29480:
URL: https://github.com/apache/beam/pull/29480
This change removes the `gradle-command-action` submodule, and all of it's usages, in favor of the updated `gradle-build-action` version of this action.
fixes https://github.com/apache/beam/issues/29479
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [x] 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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1833652888
Reminder, please take a look at this pr: @damccorm
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1817172564
Assigning reviewers. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @damccorm for label build.
Available commands:
- `stop reviewer notifications` - opt out of the automated review tooling
- `remind me after tests pass` - tag the comment author after tests pass
- `waiting on author` - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)
The PR bot will only process comments in the main thread (not review comments).
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "clayburn (via GitHub)" <gi...@apache.org>.
clayburn commented on code in PR #29480:
URL: https://github.com/apache/beam/pull/29480#discussion_r1402703296
##########
.github/workflows/java_tests.yml:
##########
@@ -89,7 +89,7 @@ jobs:
run: rm ~/.m2/settings.xml
# :sdks:java:core:test
- name: Run :sdks:java:core:test
- uses: ./.github/actions/gradle-command-action
+ uses: gradle/gradle-build-action@v2
Review Comment:
> With that said, is there any advantage of using this instead of the current composite workflow with gradle-command-self-hosted-action? I like that because (a) it gives us a single place to apply some arguments we always want on in CI, (b) we can do any other setup there like removing settings.xml, and (c) its what the rest of our workflows are already standardized on
Thanks for this feedback. I didn't realize this is really the only place that `gradle-build-action` is called directly. I was going for minimal change, but I'll edit the PR to use `gradle-command-self-hosted-action`. We could even have the composite workflow use `gradle-build-action` to benefit from the job summaries. It may even help with making some of the cache credential secrets parameters to the workflow so they aren't accidentally omitted.
I'll update the PR to use the composite workflow and explore the rest separately. It'll likely be next week with the upcoming holiday.
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "clayburn (via GitHub)" <gi...@apache.org>.
clayburn commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1841325609
It does appear to be the case. It has to do with the parsing of `-DintegrationTestPipelineOptions=["--runner=DataflowRunner",...]` as JSON. It seems with the newer version of the action, the `"` characters are getting removed, and then it doesn't get parsed correctly here: https://github.com/apache/beam/blob/17f3f0532c2e3c5e26316b56a6ae275306ee9729/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy#L2087
It looks like a revert may be in progress, but I can work on a change that addresses this separately.
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on code in PR #29480:
URL: https://github.com/apache/beam/pull/29480#discussion_r1402662019
##########
.github/workflows/java_tests.yml:
##########
@@ -89,7 +89,7 @@ jobs:
run: rm ~/.m2/settings.xml
# :sdks:java:core:test
- name: Run :sdks:java:core:test
- uses: ./.github/actions/gradle-command-action
+ uses: gradle/gradle-build-action@v2
Review Comment:
I'm all for getting rid of our submodule actions, its not a great pattern at this point. Thanks for doing this!
With that said, is there any advantage of using this instead of the current composite workflow with gradle-command-self-hosted-action? I like that because (a) it gives us a single place to apply some arguments we always want on in CI, (b) we can do any other setup there like removing settings.xml, and (c) its what the rest of our workflows are already standardized on
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on code in PR #29480:
URL: https://github.com/apache/beam/pull/29480#discussion_r1402709385
##########
.github/workflows/java_tests.yml:
##########
@@ -89,7 +89,7 @@ jobs:
run: rm ~/.m2/settings.xml
# :sdks:java:core:test
- name: Run :sdks:java:core:test
- uses: ./.github/actions/gradle-command-action
+ uses: gradle/gradle-build-action@v2
Review Comment:
> We could even have the composite workflow use gradle-build-action to benefit from the job summaries. It may even help with making some of the cache credential secrets parameters to the workflow so they aren't accidentally omitted.
That sounds great, thanks!
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm merged PR #29480:
URL: https://github.com/apache/beam/pull/29480
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "kennknowles (via GitHub)" <gi...@apache.org>.
kennknowles commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1841228704
Could this possibly be causing the failure at https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616 ?
```
Run ./.github/actions/gradle-command-self-hosted-action
with:
gradle-command: integrationTest
arguments: -p examples/ --tests org.apache.beam.examples.WordCountIT -DintegrationTestRunner=direct -DintegrationTestPipelineOptions=["--runner=DirectRunner","--tempRoot=./tmp"]
max-workers: 8
env:
GRADLE_ENTERPRISE_ACCESS_KEY:
GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD:
JAVA_HOME: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.[3](https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616#step:4:3)92-8/x6[4](https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616#step:4:4)/Contents/Home
JAVA_HOME_8_X[6](https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616#step:4:6)4: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.392-8/x64/Contents/Home
GRADLE_BUILD_ACTION_SETUP_COMPLETED: true
GRADLE_BUILD_ACTION_CACHE_RESTORED: true
Run # This step is a workaround to avoid a decryption issue of Beam's
# This step is a workaround to avoid a decryption issue of Beam's
# net.linguica.gradle.maven.settings plugin and github's provided maven
# settings.xml file
if [ -f ~/.m2/settings.xml ]; then
rm ~/.m2/settings.xml
fi
./gradlew integrationTest --max-workers=8 --continue \
-Dorg.gradle.jvmargs=-Xms2g -Dorg.gradle.jvmargs=-Xmx6g -Dorg.gradle.vfs.watch=false -Pdocker-pull-licenses \
-p examples/ --tests org.apache.beam.examples.WordCountIT -DintegrationTestRunner=direct -DintegrationTestPipelineOptions=["--runner=DirectRunner","--tempRoot=./tmp"]
shell: /bin/bash --noprofile --norc -e -o pipefail {0}
env:
GRADLE_ENTERPRISE_ACCESS_KEY:
GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD:
JAVA_HOME: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/[8](https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616#step:4:8).0.3[9](https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616#step:4:9)2-8/x64/Contents/Home
JAVA_HOME_8_X64: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.392-8/x64/Contents/Home
GRADLE_BUILD_ACTION_SETUP_COMPLETED: true
GRADLE_BUILD_ACTION_CACHE_RESTORED: true
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.4/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
Configuration on demand is an incubating feature.
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy FROM-CACHE
> Task :buildSrc:pluginDescriptors
> Task :buildSrc:processResources
> Task :buildSrc:classes
> Task :buildSrc:jar
FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
* Where:
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
Build file '/Users/runner/work/beam/beam/examples/java/build.gradle' line: [32](https://github.com/apache/beam/actions/runs/7103830864/job/19337611287?pr=29616#step:4:33)
For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
* What went wrong:
4 actionable tasks: 3 executed, 1 from cache
A problem occurred evaluating project ':examples:java'.
> unexpected character r
```
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "clayburn (via GitHub)" <gi...@apache.org>.
clayburn commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1841344247
See: https://github.com/apache/beam/pull/29620
Passing tests here: https://github.com/clayburn/beam/actions/runs/7104688791
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "kennknowles (via GitHub)" <gi...@apache.org>.
kennknowles commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1841344241
BTW I just opened that draft PR to test my hypothesis - it is not a pure revert so it is not ready to merge
--
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
Re: [PR] Replace usage of custom `gradle-command-action` with `gradle-build-action` [beam]
Posted by "kennknowles (via GitHub)" <gi...@apache.org>.
kennknowles commented on PR #29480:
URL: https://github.com/apache/beam/pull/29480#issuecomment-1841343603
Great. Thank you! And the revert should be no problem to just un-revert with the fix.
--
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