Skip to content

Commit

Permalink
Revisit release process
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Oct 14, 2024
1 parent 60ffb92 commit b73ba60
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
15 changes: 14 additions & 1 deletion contribute/release-note-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ VERSION_WITHOUT_RC=3.0.6
./scripts/register_new_version.py $VERSION_WITHOUT_RC $(gh release view "v$VERSION_WITHOUT_RC" -R apache/pulsar --json author,publishedAt | jq -r '[.author.login, .publishedAt] | join(" ")')
```

Alternatively, for a tag instead of a release:

```bash
# For a tag instead of a release
./scripts/register_new_version.py $VERSION_WITHOUT_RC $(cd $PULSAR_PATH && git show -s --format="%ae %aI" "v$VERSION_RC" | tail -n 1 | sed 's/@.* / /')
```

## Generate release notes

There isn't a definite way yet.
Expand All @@ -73,7 +80,13 @@ git log --reverse --oneline v$PREVIOUS_VERSION..v$VERSION_WITHOUT_RC | colrm 1
Alternatively using "gh pr list"

```bash
gh pr list -L 1000 --search "is:pr is:merged label:release/2.10.6 label:cherry-picked/branch-2.10" --json title,number,url | jq -r '.[] | "\(.title) [\(.number)](\(.url))"'
gh pr list -L 1000 --search "is:pr is:merged label:release/2.10.6 label:cherry-picked/branch-2.10" --json title,number,url | jq -r '.[] | "- \(.title) ([#\(.number)](\(.url)))"' | sort | pbcopy
```

For feature releases, using the milestone:

```bash
gh pr list -L 1000 --search "is:pr is:merged milestone:4.0.0" --json title,number,url | jq -r '.[] | "- \(.title) ([#\(.number)](\(.url)))"' | sort | pbcopy
```

## Update the release note page
Expand Down
16 changes: 14 additions & 2 deletions contribute/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,12 @@ Once the docs are generated, you can add them and submit them in a PR. The expec
* `static/api/client`
* `static/api/pulsar-functions`

```shell
cd ../..
git add static/api/*
git commit -m "update java-apidoc for $VERSION_WITHOUT_RC"
```

Read more on the manual of [pytools](https://github.com/apache/pulsar-site/tree/main/tools/pytools/README.md).

### Reference
Expand All @@ -829,6 +835,12 @@ poetry install
poetry run bin/reference-doc-generator.py --master-path=$PULSAR_PATH --version=$VERSION_WITHOUT_RC
```

```shell
cd ../..
git add static/reference/*
git commit -m "update reference for $VERSION_WITHOUT_RC"
```

Once the docs are generated, you can add them and submit them in a PR. The expected doc output is `static/reference/2.X.x`

Read more on the manual of [pytools](https://github.com/apache/pulsar-site/tree/main/tools/pytools/README.md).
Expand All @@ -839,7 +851,7 @@ Read more on the manual of [pytools](https://github.com/apache/pulsar-site/tree/

If you're working on a patch release for an older feature version of Pulsar, you can skip this step.

Otherwise, you should update the version in this file: <https://github.com/apache/pulsar-site/blob/26671a6ce02ed529eb26072846aedf14e4ab31a5/static/.htaccess#L19>
Otherwise, you should update the version in this file: `static/.htaccess`

## Update `/docs` version list dropdown

Expand All @@ -855,7 +867,7 @@ LTS versions should be labeled this way: `<version> LTS`.

If you're working on a patch release for an older feature version of Pulsar, you can skip this step.

Otherwise, you should update the dropdown version list in this file: <https://github.com/apache/pulsar-site/blob/main/src/theme/DocsVersionDropdownNavbarItem.js>
Otherwise, you should update the dropdown version list in this file: `src/theme/DocsVersionDropdownNavbarItem.js`

## Announce the release

Expand Down

0 comments on commit b73ba60

Please sign in to comment.