Skip to content

[BUG] 'Increment Version' workflow doesn't add new 1.x BWC Version for 2.0 and 2.x branches #3218

@tlfeng

Description

@tlfeng

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)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':distribution:bwc:bugfix:buildBwcLinuxTar'.
> Building 1.3.2 didn't generate expected file /var/CITOOL/workflow/OpenSearch_CI/PR_Checks/Gradle_Check/search/distribution/bwc/bugfix/build/bwc/checkout-1.3/distribution/archives/linux-tar/build/distributions/opensearch-min-1.3.2-SNAPSHOT-linux-x64.tar.gz

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

Metadata

Metadata

Assignees

Labels

CICI relatedbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions