Repository navigation
chore(QTDI-3805): Regenerate antora.yml before release tag - #1326
ozhelezniak-talend merged 1 commit into
Conversation
Scope & design reviewRound 1: APPROVED (0 Blocker, 0 Major). Minor: a later patch release on a maintenance branch keeps the Signed: Claude Sonnet 5.5 |
Compliance reportCritical fixed: 0, Warnings: 0, Info: 0. Files: release-6 script ( Signed: Claude Sonnet 5.5 |
a6aecf9 to
72ceb34
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the maintenance-branch Antora version update.
No open issues 🎉
What changed in this PR
Updates maintenance-branch creation to set the tracked Antora version after Maven version changes, preventing it from retaining the master branch’s version.
Changes:
- Rewrites
antora.ymlwith the maintenance version, excluding the snapshot suffix, before committing the branch. - Documents version handling, exclusions for incorrectly versioned tags, and the known limitation for later patch releases.
| File | Description |
|---|---|
repository-knowledge.md |
Documents Antora version rules and release limitations. |
.jenkins/scripts/release/release-6-create-maintenance-branch.sh |
Sets the Antora maintenance version directly without running a Maven build. |
Review effort: Balanced
undx
left a comment
There was a problem hiding this comment.
I'm not sure that the fix should be placed at this place...
AFAIR, the issue is at tag level ie during release:perform. At that moment, the change of version in antora.yml from template is effective but not commited.
This is this tagged detached head which leads to the duplicate nav error message.
changed the approach |
1720f4d to
ad355d6
Compare
|
from what I see of the process, we may also update the version of antora when we create a maintenance branch (in script This is not mandatory, we can't take it in another ticket, but it sounds weird to have a shift between the version of the maintenance branch and the doc's version in this maintenance branch. With your fix, we will have this sequence of tasks and the state of the pom.xml and antora configuration |
Why it blocks anything?
You want additional change for maintenance branch creation script? Important: additional. the script release-6 can't replace the change in release-2 We need the change inside the tag, not after otherwise we won't fix the issue of duplicated nav. we gather all other documentation versions by tag and inside that tags for a 2 different tags we have the same carve in stone (or in tag) version in antora.yml |
Oops, sorry for my bad english. I wanted to say that the release:prepare command is an "atomic" sequence of several commands. we need to split into atomic commands in order to have a precise control of what is done.
I'll create a specific ticket to clean the repository, and the release process. |
* run the doc build before release:prepare so the tag holds all generated files Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> � Conflicts: � .jenkins/scripts/release/release-2-prepare.sh
ad355d6 to
f6ca12d
Compare
|
* run the doc build before release:prepare so the tag holds all generated files (cherry picked from commit f64abd6)
* run the doc build before release:prepare so the tag holds all generated files (cherry picked from commit f64abd6)

0 New Issues
0 Fixed Issues
0 Accepted Issues
No data about coverage (62.70% Estimated after merge)
Summary
Fix the Antora release process: QTDI-3805.
antora.ymlis generated by Maven, and the Antora site loads everycomponent-runtime-*tag. Two tags with the sameantora.ymlversion causedDuplicate nav in <version>@main.Root cause:
release:preparecreates the tag before Maven regeneratesantora.yml. The tag keeps the old version.release-2-prepare.sh: beforerelease:prepare, runmvn clean process-sources --projects documentationand commit the regenerated files. The tag then holds the correctantora.yml(andpackage-lock.json). The SNAPSHOT version without suffix is the release version, so no version parameter is needed. Ifantora.ymldoes not have the release version, the script prints a warning and does not fail.release-2-prepare.sh: the new commit usesgit commit -a ... || true, so the script continues when there is nothing to commit.repository-knowledge.md: document the rule. It also records the workaround for tags that already have a wrong version (exclude them insite-template.yml). This PR does not changesite-template.yml.Known limits:
process-sourcesdoes not regenerategenerated_*.adoc(they needcompileandprocess-classes). Release-5 regenerates them after the tag. Only the version links ingenerated_sample-index.adoccan be old on a maintenance branch.package-lock.jsonkeeps-SNAPSHOTin the tag.Tests: the documentation-only build (
--projects documentation, without-am) passed locally. Withantora.ymlset to a wrong value, it restored the correct one. The release script was not run.bash -npassed.Checklist
mvn clean verifypasses locally — not runAI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code
AI contribution metrics
100%100%~83% developer-driven (5 of 6 plan items added by the developer; AI first draft covered 1)