Repository navigation
fix(ci): sql scripts deploy check and release schema check (2.2.x) - #3953
Merged
Merged
Conversation
prepare-deploy.sh decided whether to deploy operaton-sql-scripts by diffing the db directory against the newest v* tag reachable from HEAD. That tag was a milestone or RC tag (v2.2.0-RC1), whose sql scripts are never deployed, so the schema 7.25 change counted as already released and operaton-sql-scripts 7.25.0 was not deployed with 2.2.0. Compare against the highest final vX.Y.Z tag below the version being released instead. Look at all tags, not only reachable ones: X.Y.0 is tagged on release/X.Y.x, so main and newer release branches cannot reach it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Add .devenv/scripts/release/check-db-schema.py. It compares a release branch with the previous final release and reports the schema version before and after, the changed files in the engine db directory, whether the change is version-only or structural, and the commits with their PRs and closed issues. It only uses the GitHub API, so it works in shallow clones. The operaton-release skill runs it in PREPARE: a schema change in a patch release is a blocker, and for a minor release the release notes must describe the change and link its PRs and issues. PERFORM checks that the sql scripts deploy matches the schema check. Related to #3274 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
7 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Same change as on
main, forrelease/2.2.x. 2.2.x takes no schema changes, so with this fix the 2.2.x patch releases keep skipping the sql scripts deploy.prepare-deploy.shdecides whether the release deploysoperaton-sql-scriptsto Maven Central. It diffed the db directory against the newestv*tag reachable from HEAD. For 2.2.0 that wasv2.2.0-RC1. Milestone and RC releases never deploy sql scripts, and RC1 already contained the 7.24 → 7.25 scripts, so the release log saidNo database changes detected since last release tag v2.2.0-RC1.andoperaton-sql-scripts7.25.0 (schema bump from #3225) was not deployed. The scripts are only available as the GitHub release asset, and we leave it at that.Change: compare against the highest final
vX.Y.Ztag below the version being released, taken from all tags. Only final tags count, because pre-release tags never deploy sql scripts. All tags rather than only reachable ones, becauseX.Y.0is tagged onrelease/X.Y.xandmaincannot reach it.Tag selection with the current tags:
Ran the script locally: on
main(2.3.0-SNAPSHOT) it picksv2.2.0; onrelease/2.2.x(2.2.1-SNAPSHOT) it picksv2.2.0. Both find no db changes and create.skip-deploy.Database schema check in the release skill
New
.devenv/scripts/release/check-db-schema.py(read-only, GitHub API only, so it works in shallow clones). It compares a branch with the previous final release (same tag rule as above) and reports:operaton.dbscheme.current.version) before and afterdbdirectoryACT_GE_SCHEMA_LOGrow) or structuraldbdirectory, with their PRs and closed issuesThe
operaton-releaseskill uses it:.0the release notes Database Schema section must state the change and link the PRs/issues from the report. For a final.0with a new schema,operaton-sql-scripts:<schema>must not be on Maven Central yet.prepare-deploy.shlog line must match the schema check. Schema artifacts are never re-deployed by hand without an explicit decision.Output for 2.2.0 (
--branch v2.2.0 --version 2.2.0): schema7.24.0at v2.1.6 →7.25.0, 15 files, version-only, introduced by 1789c09 / PR #3225.--branch release/2.2.x --version 2.2.1and--branch main --version 2.3.0: no change.Related to #3274 (manual DB schema steps in the release process), schema bump in #3225.
🤖 Generated with Claude Code