Verify that backwards-compatibility versions are in sync across branches in CI
#2,533 创建于 2022年3月21日
仓库指标
- Star
- (8,123 star)
- PR 合并指标
- (平均合并 5天 9小时) (30 天内合并 266 个 PR)
描述
Is your feature request related to a problem? Please describe.
When incrementing a version for OpenSearch we have to update multiple files across multiple branches.
- https://github.com/opensearch-project/OpenSearch/blob/main/.ci/bwcVersions
- https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/version.properties
- https://github.com/opensearch-project/OpenSearch/blob/main/server/src/main/java/org/opensearch/Version.java
These enable backwards-compatibility testing across multiple versions.
The process has been automated (https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/version.yml), however it's brittle. It's also easy to make a mistake when making an unrelated change. As an example,. https://github.com/opensearch-project/OpenSearch/pull/2430 has fixed one of those mistakes.
Describe the solution you'd like Check version, constants and bcw versions in CI.
Additional context Discussed in https://github.com/opensearch-project/OpenSearch/pull/2532#issuecomment-1074251240