Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build release procedure updates to include docs in release tag #7412

Merged
merged 9 commits into from
Jan 18, 2024

Conversation

jodygarnett
Copy link
Contributor

@jodygarnett jodygarnett commented Oct 6, 2023

Updated the build release instructions to cover the creation of new markdown changelog page.

This needs to occur earlier in the release process so that the documentation is included in the release tag.

Also noted that the docs were built after the war, and thus were not including the online help when requested with the docs profile.

See also: #7411 to publish docs when a release is tagged.

change log creation

Please see doing a release.md for proccess of using git note in the creation of a change log.

👍🏻 This approach allows pull requests to be back ported, with an optional "change log" associated with the squashed commit. This way the change log when generated for each branch includes the appropriate information.

👎🏻 Keep in mind that git notes, like git tags, are shared between all repositories (and do not really offer a smooth conflict resolution mechanism).

@jodygarnett jodygarnett changed the title Build release changes build release procedure updates to include docs in release tag Oct 6, 2023
@josegar74 josegar74 added this to the 4.4.1 milestone Oct 6, 2023
@jodygarnett jodygarnett force-pushed the build_release_changes branch from c1dbcc7 to 626dc19 Compare October 7, 2023 06:26
@jodygarnett
Copy link
Contributor Author

The alternative to creating a changelog when tagging a new release; is to create one just after each release is made (for the upcoming release).

In this approach the docs would have a changelog visible for the upcoming release; it could have a note at the top indicating when the release was scheduled for.

!!! note title="Scheduled Release"
    
    To help test here new features please download a nightly build.
    Release scheduled for December 2023

pom.xml Outdated Show resolved Hide resolved
docs/pom.xml Outdated Show resolved Hide resolved
@jodygarnett
Copy link
Contributor Author

This can be back ported to 4.2.x and 3.12.x

@jodygarnett
Copy link
Contributor Author

This may need to be rebased and tested again; please let's review these build changes before they bit-rot :)

@jodygarnett jodygarnett force-pushed the build_release_changes branch from 626dc19 to 22c46c6 Compare October 27, 2023 18:20
@jodygarnett
Copy link
Contributor Author

@josegar74 I have updated release example version 4.4.1 latest release.

@jodygarnett
Copy link
Contributor Author

@josegar74 this is the PR that I would like to see included, and troubleshooted during your release process.
It has gone into conflict again; but I am willing to work with you to make sure these changes are made.

@jodygarnett jodygarnett force-pushed the build_release_changes branch from b677c42 to 93edc60 Compare January 18, 2024 06:07
@jodygarnett
Copy link
Contributor Author

I have recreated this PR from main resulting in a clean commit history

@@ -198,6 +238,14 @@ Once the release branch has been thoroughly tested and is stable a release can b
</list>
</entry>
```

Update documentation to reflect series change of `latest`, `stable`, `maintenance` and `archive`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pom.xml Outdated
@@ -1395,6 +1389,7 @@
<module>slave</module>
<module>schemas-test</module>
<module>web-ui</module>
<module>docs</module>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably I'm misunderstanding about including docs in the release tag. Is the intention to include the docs in the war file?

I tried:

mvn clean install -DskipTests -Pwar -Pwro4j-prebuild-cache

And seems no docs included, tried also with -Pall profile, same results.

frombranch=origin/main
versionbranch=4.2.x
series=4.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe can be good to use 4.4 for example instead of 4.2 (see other related variables below)

@josegar74 josegar74 merged commit 95c7005 into geonetwork:main Jan 18, 2024
8 checks passed
@ticheler
Copy link
Member

The backport to 4.2.x failed:

The process '/usr/bin/git' failed with exit code 1
stderr
error: could not apply 5890c43c0d... move changes to their own folder
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

stdout
CONFLICT (rename/delete): docs/changes4.4.0-0.txt renamed to docs/changes/changes4.4.0-0.txt in 5890c43c0d (move changes to their own folder), but deleted in HEAD.
CONFLICT (rename/delete): docs/changes4.4.1-0.txt renamed to docs/changes/changes4.4.1-0.txt in 5890c43c0d (move changes to their own folder), but deleted in HEAD.

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.2.x 4.2.x
# Navigate to the new working tree
cd .worktrees/backport-4.2.x
# Create a new branch
git switch --create backport-7412-to-4.2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 5890c43c0d767eea4c27d47fb64e0f894a1f7262,caa9e32c1eae9f44b78f873f8c2fcbdf765191cf,5e340d13ce1a6bb8258e7abcc427ef908ec86e24,fd30bc92111d815227d74680f3532934fdc90de8,a5032d901afb18cb7499dd10acd3111ce60d724e,16b9737d41ca42329c1baf8a9ad81f593b038244,88e1942f11d29f32b2f49808561e74158dbcf8eb,93edc607756f6b21e5fe15303dd12eb263ba1219,cd6986b86eee3ec8b86bf8533f862c86922af3bd
# Push it to GitHub
git push --set-upstream origin backport-7412-to-4.2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.2.x

Then, create a pull request where the base branch is 4.2.x and the compare/head branch is backport-7412-to-4.2.x.

josegar74 pushed a commit that referenced this pull request Jan 18, 2024
…7412)

* move changes to their own folder

Signed-off-by: Jody Garnett <[email protected]>

* update doing a release for doc updates prior to tagging release

* automation used to deploy manual, manual deploy during release not longer required

* changelog management using git notes to document major features

* housekeeping: clean up commented out pom.xml snippet

Signed-off-by: Jody Garnett <[email protected]>

* update docs/README.md description to reflect contents

Signed-off-by: Jody Garnett <[email protected]>

* gitIgnore WEB-INF schemapublication folder

Signed-off-by: Jody Garnett <[email protected]>

* Change to 4.4.1 release example

* Update build procedure to deploy datastorages

Signed-off-by: Jody Garnett <[email protected]>

---------

Signed-off-by: Jody Garnett <[email protected]>
@juanluisrp juanluisrp deleted the build_release_changes branch January 18, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants