Skip to content
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

Using single temp maven local repository for release validation tasks #32841

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

Abacn
Copy link
Contributor

@Abacn Abacn commented Oct 17, 2024

mitigate #32824 ; mitigate #32808

The task runs 8 individual tasks in parallel, each spins up a fresh local maven repository, likely get rate limited by maven repository server

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.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions github-actions bot added the build label Oct 17, 2024
@Abacn
Copy link
Contributor Author

Abacn commented Oct 17, 2024

test run: https://github.com/apache/beam/actions/runs/11389484525/job/31688875732

EDIT: it stills fails one task

Task :runners:google-cloud-dataflow-java:runMobileGamingJavaDataflowBom FAILED

Warning:  Could not transfer metadata org.apache.beam:beam-sdks-java-maven-archetypes-gcp-bom-examples:2.61.0-SNAPSHOT/maven-metadata.xml from/to test.release (https://repository.apache.org/content/repositories/snapshots): Connect to repository.apache.org:443 [repository.apache.org/65.109.119.155] failed: connect timed out

at least it doesn't fail all tasks

@Abacn Abacn marked this pull request as ready for review October 17, 2024 17:39
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@Abacn
Copy link
Contributor Author

Abacn commented Oct 17, 2024

assign set of reviewers

Copy link
Contributor

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).

Copy link
Contributor

@chamikaramj chamikaramj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM.

return _execute(setPath + cmd)
"""
}
def cmd = "mvn ${args} -s ${settings.absolutePath} -Ptestrel -B"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we also add "-U" in addition to this change ?

Copy link
Contributor Author

@Abacn Abacn Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry later on I found my initial investigation in #32824 (comment) was wrong. In particular, the test workflow runs 8 tasks in parallel, each spin up an individual maven local repository, and delete after finish. So there isn't exist scenario that bad local repository cached can interfere the next run.

Using -U tag will cause the workflow making more requests to maven snapshot repository, which is known to be less stable in terms of availability, and I am afraid it would worsen rate limiting

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. Thanks.

@chamikaramj chamikaramj merged commit 3786c4a into master Oct 18, 2024
94 checks passed
@Abacn Abacn deleted the sharedmaven branch October 18, 2024 20:39
@chamikaramj
Copy link
Contributor

Seems like this fix wasn't adequate or this resulted in a different regression.

https://ge.apache.org/s/73edbo72xzrt4/console-log/task/:runners:google-cloud-dataflow-java:runMobileGamingJavaDataflowBom?anchor=97&page=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants