-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] 'Increment Version' workflow doesn't add new 1.x BWC Version for 2.0 and 2.x branches #3218
Comments
Yeah, not sure it's worth fixing. https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/version.yml |
@tlfeng this would fail the main branch gradle check:
This does not happen in 2.0 which uses gradle 7.3.3, the issued main branch is using gradle 7.4.2. Thanks. |
Hi @reta ever since gradle upgrade to 7.4.2 I have seen such issue above on 3.0.0/main when running gradle check. Running Thanks. |
Hey @dreamer-89 Would you mind picking this up? I understand this is one of the blocking issues to help get coverage out which I know we're all keen to see |
Looking into this. |
This failure is different than the one this issue is intially reported (auto update Version.java for 2.x branches). From failure trace above, seems like lock contention among different gradle processes is causing the failure. This failure is not reproducible locally (ubuntu) with latest changes from main; which makes me think, this is related to environment/setup related issue. This is coming from opensearch-project/opensearch-build#2249 |
I have not seen it yet, but I will take a look, thanks @dreamer-89 for troubleshooting |
Seems to be gradle/gradle#20055 |
@reta Update: resolved if you dont use AL2/CentOS but only use Ubuntu. |
Seems happening on AL2 specific instances that is what used here as well. |
Thanks a lot @peterzhuamazon ! |
This issue appears during releases where a version bump on one branch fails the gradle check on all branches one version above. It needs prioritization. Need to update the workflow which identifies the new version tag and raises the PR. The recent one #4381 |
Describe the bug
The GitHub Action workflow https://github.com/opensearch-project/OpenSearch/blob/2.0.0-rc1/.github/workflows/version.yml doesn't create Pull Requests to add new version number to "Version.java" and .ci/bwcVersions for 2.0 and 2.x branches.
Take adding version number 1.3.3 for example, it only create PRs for main, 1.x and 1.3 version:
https://github.com/opensearch-project/OpenSearch/search?q=%5BAUTO%5D+1.3.3&type=issues
The situation is the same when adding version number 1.3.2:
https://github.com/opensearch-project/OpenSearch/search?q=%5BAUTO%5D+1.3.2&type=issues
Gradle check will fail for changes to 2.0 and 2.x branches, if not adding the new 1.x version to 2.x branches.
For exmaple: #3208 (comment)
To Reproduce
No need to reproduce: push a tag in the format of ..*
https://github.com/opensearch-project/OpenSearch/blob/2.0.0-rc1/.github/workflows/version.yml#L6
Expected behavior
Pull Request is created automatically to add new version number to 2.0 and 2.x branches.
Additional context
The 'Increment Version' GHA workflow is introduced by PR #1816
The text was updated successfully, but these errors were encountered: