Skip to content

chore(QTDI-3926): Make release push atomic and fail-closed [1.2611] - #1357

Merged
lxia-talend merged 1 commit into
maintenance/1.2611from
lxia-talend/QTDI-3926_atomic_release_push_1.2611
Dec 1, 2026
Merged

lxia-talend merged 1 commit into
maintenance/1.2611from
lxia-talend/QTDI-3926_atomic_release_push_1.2611

Conversation

@lxia-talend

@lxia-talend lxia-talend commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

https://qlik-dev.atlassian.net/browse/QTDI-3926

Backport of #1351 to maintenance/1.2611.

QTDI-3926: the release script pushed the branch and tag with --follow-tags, which is not atomic. A moved or unreachable remote branch could leave the tag pushed without the branch (or vice versa) during a release.

  • New sourced helper .jenkins/scripts/release/release-git-common.sh: aborts before any push if the remote branch cannot be fetched or has moved during the release (fail-closed).
  • release-4-docker-image-creation.sh pushes branch and tag with a single git push --atomic and a --force-with-lease on the checked remote tip. DRY_RUN still pushes only the branch, with --dry-run.
  • release-git-push-test.sh (offline bare-repository simulation) and the release-scripts-test.yml workflow that runs it.

The squash commit of #1351 was cherry-picked on maintenance/1.2611 without conflict (CI scripts and one workflow, no product code).

Checklist

  • Tests added or updated (UT / IT as applicable): release-git-push-test.sh, run by the new GitHub workflow
  • mvn clean verify passes locally: n/a, no Java change
  • Spotless formatting applied: n/a

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • this PR has been written with the help of GitHub Copilot or another generative AI tool

🤖 Generated with Claude Code

…1351)

Backport of #1351 to maintenance/1.2611.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@lxia-talend
lxia-talend merged commit 59497c4 into maintenance/1.2611 Dec 1, 2026
3 of 4 checks passed
@lxia-talend
lxia-talend deleted the lxia-talend/QTDI-3926_atomic_release_push_1.2611 branch December 1, 2026 05:37
@sonar-rnd

sonar-rnd Bot commented Dec 1, 2026

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant