Skip to content

Comments

doc: update howto_release.md to release_branch#2707

Closed
neteler wants to merge 6 commits intoOSGeo:releasebranch_8_2from
neteler:doc_howto_release_fixes
Closed

doc: update howto_release.md to release_branch#2707
neteler wants to merge 6 commits intoOSGeo:releasebranch_8_2from
neteler:doc_howto_release_fixes

Conversation

@neteler
Copy link
Member

@neteler neteler commented Dec 18, 2022

Changes of this PR:

fixes:

  • fixes git diff to git show
  • fix path to generate_release_notes.py
  • updates SERVER1 URL after recent lxd container migration

TODO: how to enforce the correct release branch in git push upstream step?

enhancements:

  • adds release branch parameter to git calls
  • changes hardcoded version to $VERSION
  • adds some comments

TODO after merge: fwd-port fixes in this PR to main.

This PR

- adds release branch parameter to `git` calls
- changes hardcoded version to `$VERSION`
- adds some comments

TODO: how to enforce the right release branch?
@neteler neteler added the manual Documentation related issues label Dec 18, 2022
@neteler neteler added this to the 8.2.1 milestone Dec 18, 2022
@neteler neteler requested a review from wenzeslaus December 18, 2022 17:58
@neteler neteler self-assigned this Dec 18, 2022
Now push the tag upstream - this will trigger the automated workflows linked to tags:

```bash
# TODO: how to enforce the right release branch?
Copy link
Member Author

Choose a reason for hiding this comment

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

@wenzeslaus How does the tag magic work for release_branch_8_2? With git push upstream I guess it would land in main and not the branch...

Copy link
Member

Choose a reason for hiding this comment

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

The tag is made on the branch - a specific commit actually - not pushed to the branch, so what matters is the git tag step.

...work for release_branch_8_2...

BTW, do you want to name next release branch release_branch_8_3, not releasebranch_8_3? :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

The tag is made on the branch - a specific commit actually - not pushed to the branch, so what matters is the git tag step.

Yes, I see (still learning this part of git). From related the SO answer which you indicated I read:

Specifying a branch name as the tag target defaults to that branch's most recent commit; e.g.:

git tag v0.1.0  develop   # tags HEAD of 'develop' branch

(As others have noted, you can also specify a commit ID explicitly as the tag's target.)

So this should translate into

git tag v7.8.8RC3 releasebranch_8_2   # tags HEAD of 'releasebranch_8_2' branch

... right? But then push to where?

(Importantly, the instructions here shall become fail-safe to also be able to successfully release even when tired ;-) )

Copy link
Member Author

Choose a reason for hiding this comment

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

BTW, do you want to name next release branch release_branch_8_3, not releasebranch_8_3? :-)

Sorry, typo...

Now push the tag upstream - this will trigger the automated workflows linked to tags:

```bash
# TODO: how to enforce the right release branch?
Copy link
Member

Choose a reason for hiding this comment

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

The tag is made on the branch - a specific commit actually - not pushed to the branch, so what matters is the git tag step.

...work for release_branch_8_2...

BTW, do you want to name next release branch release_branch_8_3, not releasebranch_8_3? :-)

Comment on lines 236 to 241
git show
git diff
Copy link
Member

Choose a reason for hiding this comment

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

This is very different. Maybe you want both? git show shows last commit. git diff shows uncommitted changes in tracked files.

Comment on lines -89 to +92
Push the tag to the upstream repo:
Push the tag to the upstream repo, release branch:

```bash
git push upstream
git push upstream releasebranch_8_2
Copy link
Member

Choose a reason for hiding this comment

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

This is pushing the commits on the release branch. I'm not sure about the tag, probably not. I don't know why this says tag actually. There is no tag created above, so I guess I copy-pasted some other text.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is where I recently messed it up (I tried to use this procedure for the G78 RC3 release but failed).

@wenzeslaus
Copy link
Member

This SO question seems to cover the tag and branch topic well: Do Git tags only apply to the current branch?

@neteler neteler modified the milestones: 8.2.1, 8.2.2 Jan 22, 2023
@neteler
Copy link
Member Author

neteler commented Feb 27, 2023

Needed: partial sync to #2414

@wenzeslaus wenzeslaus modified the milestones: 8.2.2, 8.3.1 Jun 6, 2023
neteler added a commit that referenced this pull request Jun 20, 2023
Markdown cosmetics and some outdated version numbers updated.
* Use subsections; add Publish release section
* osgeo8-grass -> osgeo7-grass
* Merge in improvements from #2707 (replaces #2707)
* Attempt to merge in improvements from #2414
neteler added a commit that referenced this pull request Jun 20, 2023
- partial sync to document version in `main`
- markdown linting fixes
- some outdated version numbers updated
- fix path to helper script
- Use subsections; add Publish release section
- osgeo8-grass -> osgeo7-grass
- Merge in improvements from #2707 (replaces #2707)
- Attempt to merge in improvements from #2414

Note: PRs for the other branches will be created separately (do not back-/forward-port this PR).
neteler added a commit that referenced this pull request Jun 20, 2023
- markdown cosmetics and some outdated version numbers updated.
- fix path to helper script
- Use subsections; add Publish release section
- osgeo8-grass -> osgeo7-grass
- Merge in improvements from #2707 (replaces #2707)
- Attempt to merge in improvements from #2414

Note: PRs for the release branches will be created separately (do not forward-port this PR).
@neteler
Copy link
Member Author

neteler commented Jun 20, 2023

Replaced by #3030, #3031, #3032.

@neteler neteler closed this Jun 20, 2023
@neteler neteler removed this from the 8.3.1 milestone Jun 20, 2023
@neteler neteler added the wontfix This will not be worked on label Jun 20, 2023
@neteler neteler deleted the doc_howto_release_fixes branch August 16, 2023 18:46
landam pushed a commit to landam/grass that referenced this pull request Oct 25, 2023
Markdown cosmetics and some outdated version numbers updated.
* Use subsections; add Publish release section
* osgeo8-grass -> osgeo7-grass
* Merge in improvements from OSGeo#2707 (replaces OSGeo#2707)
* Attempt to merge in improvements from OSGeo#2414
neteler added a commit to nilason/grass that referenced this pull request Nov 7, 2023
Markdown cosmetics and some outdated version numbers updated.
* Use subsections; add Publish release section
* osgeo8-grass -> osgeo7-grass
* Merge in improvements from OSGeo#2707 (replaces OSGeo#2707)
* Attempt to merge in improvements from OSGeo#2414
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual Documentation related issues wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants