Skip to content

Fixes 36405: Set the 2.1 MySQL quickstart images and OpenAPI version to 2.1.0 - #36408

Closed
shrabantipaul-collate wants to merge 5 commits into
2.1from
shrabantipaul-collate/2.1-quickstart-openapi-version
Closed

shrabantipaul-collate wants to merge 5 commits into
2.1from
shrabantipaul-collate/2.1-quickstart-openapi-version

Conversation

@shrabantipaul-collate

@shrabantipaul-collate shrabantipaul-collate commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #36405

On 2.1, the MySQL quickstart compose now pulls 2.1.0 images instead of 1.12.0-SNAPSHOT, and the OpenAPI version is 2.1.0 instead of 2.0.0-SNAPSHOT. The 2.1.0 release bump didn't match either file, so both kept old values without any error. Every other file the release stamps is already at 2.1.0.

This PR also carries the release-bump fix from #36407 (main). The 2.1.1 bump runs 2.1's own scripts/update_version.py, so without that fix it would leave the MySQL quickstart on 2.1.0 again.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • MySQL quickstart compose on 2.1 defaults to the db, server and ingestion images tagged 2.1.0, named the same way as earlier releases (openmetadata/db:2.0.7 and so on).
  • The served OpenAPI version is 2.1.0.
  • A 2.1.1 bump (make update_all RELEASE_VERSION=2.1.1) rewrites all 10 files it names.

Unit tests

Backend integration tests

Full suite selected (OpenMetadataApplication.java, area core); dispatched in CI: https://github.com/open-metadata/OpenMetadata/actions/runs/40648122573 (in progress; run on 56a85ea, which has the same Java diff as this branch)

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no UI changes). The selector picks the full suite because OpenMetadataApplication.java isn't in the impact map. It wasn't run locally because that needs a full 2.1 stack; the merge queue runs it.

Manual testing performed

  1. On origin/2.1, ran the bump steps with RELEASE_VERSION=2.1.1 using the current script: 8 of 10 files bumped, and the MySQL quickstart compose and the OpenAPI version were skipped. With this branch's script: all 10 bumped.
  2. Checked that every pom, pyproject, RI_VERSION and compose file the release stamps on 2.1 is at 2.1.0. Files no release has ever stamped (docker-compose-rdf.yml, openmetadata-k8s-operator/Makefile, docker/development/helm/values-k8s-test.yaml) are unchanged.

UI screen recording:

Not applicable — version strings and release tooling only, no UI.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Self-review: the two value changes reviewed with no 🔴. The carried commits are the same ones reviewed in Fixes 36405: Fail the release bump when a version pattern matches nothing #36407 (final pass at d69c602). The review flagged that the 2.1.1 bump runs this branch's own script, which is why the fix is carried here.

  • Decision check: no record needed. This corrects version values and carries a bug fix.

  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no outstanding findings remain.

Summary

Sets the MySQL quickstart images and OpenAPI version to 2.1.0. Strengthens the release script so future bumps fail instead of silently leaving old versions.

  • The 2.1 quickstart and API description use release versions.
  • Release bumps stop when expected version text is missing.

shrabantipaul-collate previously deferred CI coverage because workflow edits needed explicit approval. The new workflow now addresses that gap. The unnumbered snapshot-tag finding is also fixed: the check no longer accepts 2.1.0-SNAPSHOT as 2.1.0.

Reviews (3) · Last reviewed commit: "Run the release version bump tests in CI" · Reviewed by Greptile

… to 2.1.0

The 2.1.0 release bump did not match either file, leaving the MySQL
quickstart on 1.12.0-SNAPSHOT images and the OpenAPI version on
2.0.0-SNAPSHOT.
…thing

update_docker_tag missed the ${VAR:-image} form the MySQL quickstart
compose uses, and update_openapi_version missed -SNAPSHOT versions, so
2.1 was cut with 1.12.0-SNAPSHOT quickstart images and a 2.0.0-SNAPSHOT
OpenAPI version. Both patterns now match, every release pattern must
match, and update_all stops at the first failure instead of exiting 0.
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@shrabantipaul-collate shrabantipaul-collate added the safe to test Add this label to run secure Github workflows on PRs label Oct 28, 2026
Comment thread scripts/test_update_version.py Resolved
Comment thread scripts/update_version.py Resolved
Comment thread scripts/test_update_version.py Resolved
@shrabantipaul-collate
shrabantipaul-collate requested a review from a team as a code owner October 28, 2026 07:39
@gitar-bot

gitar-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk · Release bump tooling now fails on unmatched version patterns and updates image tags, which could interrupt releases or leave artifacts inconsistently versioned.

Sets the MySQL quickstart images and OpenAPI version to 2.1.0 and carries the release-bump fix from main so the 2.1.1 bump rewrites all 10 files. The previously unrun release-bump tests are now wired into CI. No open issues remain.

✅ 1 closed
✅ Quality: New release-bump tests are not run by any CI workflow

📄 scripts/test_update_version.py:1-15
scripts/test_update_version.py is the only thing that checks the new fail-on-no-match behaviour and the ${VAR:-image:tag} regex. No workflow in .github/workflows runs pytest on scripts/: the Python test workflows only call helpers in .github/scripts. So if a later edit loosens a pattern or drops required=True, nothing will fail until a real release bump goes out with stale versions, which is the bug behind #36405. Fix: add a small job (or a step in an existing lint/py job) that runs python -m pytest scripts/test_update_version.py when scripts/update_version.py, Makefile or the bumped files change.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

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

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant