You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -12,23 +12,116 @@ Once ready to do a release, create a local branch that includes the following up
12
12
13
13
3. Include details of the merged PRs included in this release. General process to follow:
14
14
15
-
- Gather the set of PRs since the last release and put them into a list. A good tool to use for this is the [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator). Steps:
16
-
- Create a read only GitHub token for your account on this page: [https://github.com/settings/tokens](https://github.com/settings/tokens/new?description=GitHub%20Changelog%20Generator%20token) with a scope of `repo` / `public_repo`.
17
-
- Use a command like the following, adjusting the tag parameters as appropriate. `docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator --user hyperledger --project aries-cloudagent-python --output 0.7.4-rc0.md --since-tag 0.7.3 --future-release 0.7.4-rc0 --release-branch main --token <your-token>`
18
-
- In the generated file, use only the PR list -- we don't include the list of closed issues in the Change Log.
15
+
- Gather the set of PRs since the last release and put them into a list. A good
- Navigate in your browser to the paged list of PRs merged since the last
53
+
release (using in the GitHub UI a filter such as `is:pr is:merged sort:updated
54
+
merged:>2022-04-07`) and for each page, highlight, and copy the text
55
+
of only the list of PRs on the page to use in the following step.
56
+
- For each page, run the command `sed -e :a -e '$!N;s/\n#/ #/;ta' -e 'P;D' <<EOF
57
+
| sed -f changelog.sed`, paste in the copied text and then type `EOF`.
58
+
Redirect the output to a file, appending each page of output to the file.
59
+
- The first `sed` command in the pipeline merges the PR title and PR number
60
+
plus author lines onto a single line. The commands in the `changelog.sed`
61
+
file just clean up the data, removing unwanted lines, etc.
62
+
- At the end of that process, you should have a list of all of the PRs in a form you can
63
+
use in the CHANGELOG.md file.
64
+
- To verify you have right contents, you can do a `wc` of the file and there
65
+
should be one line per PR. You should scan the file as well, looking for
66
+
anomalies. It's a pretty ugly process.
67
+
- Using a `curl` command and the GitHub API is probably a much better and more
68
+
robust way to do this, but this was quick and dirty...
69
+
70
+
Once you have the list of PRs:
71
+
19
72
- Organize the list into suitable categories, update (if necessary) the PR description and add notes to clarify the changes. See previous release entries to understand the style -- a format should help developers.
20
73
- Add a narrative about the release above the PR that highlights what has gone into the release.
21
74
22
-
4. Update the ReadTheDocs in the `/docs` folder by following the instructions in the `docs/README.md` file. That will likely add a number of new and modified files to the PR. Eliminate all of the errors in the generation process, either by mocking external dependencies or by fixing ACA-Py code. If necessary, create an issue with the errors and assign it to the appropriate developer. Experience has demonstrated to use that documentation generation errors should be fixed in the code.
75
+
4. Update the ReadTheDocs in the `/docs` folder by following the instructions in
76
+
the `docs/README.md` file. That will likely add a number of new and modified
77
+
files to the PR. Eliminate all of the errors in the generation process,
78
+
either by mocking external dependencies or by fixing ACA-Py code. If
79
+
necessary, create an issue with the errors and assign it to the appropriate
80
+
developer. Experience has demonstrated to use that documentation generation
81
+
errors should be fixed in the code.
23
82
24
-
5. Update the version number listed in [aries_cloudagent/version.py](aries_cloudagent/version.py) and, prefixed with a "v" in [open-api/openapi.json](open-api/openapi.json) (e.g. "0.7.2" in the version.py file and "v0.7.2" in the openapi.json file). The incremented version number should adhere to the [Semantic Versioning Specification](https://semver.org/#semantic-versioning-specification-semver) based on the changes since the last published release. For Release Candidates, the form of the tag is "0.7.2-rc0".
83
+
5. Update the version number listed in
84
+
[aries_cloudagent/version.py](aries_cloudagent/version.py) and, prefixed with
85
+
a "v" in [open-api/openapi.json](open-api/openapi.json) (e.g. "0.7.2" in the
86
+
version.py file and "v0.7.2" in the openapi.json file). The incremented
87
+
version number should adhere to the [Semantic Versioning
based on the changes since the last published release. For Release
90
+
Candidates, the form of the tag is "0.7.2-rc0".
25
91
26
-
6. An extra search of the repo for the existing tag is recommended to see if there are any other instances of the tag in the repo. If any are found to be required (other than in CHANGELOG.md and the examples in this file, of course), finding a way to not need them is best, but if they are needed, please update this document to note where the tag can be found.
92
+
6. An extra search of the repo for the existing tag is recommended to see if
93
+
there are any other instances of the tag in the repo. If any are found to be
94
+
required (other than in CHANGELOG.md and the examples in this file, of
95
+
course), finding a way to not need them is best, but if they are needed,
96
+
please update this document to note where the tag can be found.
97
+
98
+
7. Double check all of these steps above, and then submit a PR from the branch.
99
+
If there are still further changes to be merged, mark the PR as "Draft",
100
+
repeat **ALL** of the steps again, and then mark this PR as ready and then
101
+
wait until it is merged.
102
+
103
+
8. Immediately after it is merged, create a new GitHub tag representing the
104
+
version. The tag name and title of the release should be the same as the
105
+
version in [aries_cloudagent/version.py](aries_cloudagent/version.py). Use
106
+
the "Generate Release Notes" capability to get a sequential listing of the
107
+
PRs in the release, to complement the manually curated Changelog. Verify on
108
+
PyPi that the version is published.
27
109
28
-
7. Double check all of these steps above, and then submit a PR from the branch. If there are still further changes to be merged, mark the PR as "Draft", repeat **ALL** of the steps again, and then mark this PR as ready and then wait until it is merged.
110
+
9. New images for the release are automatically published by the GitHubAction
111
+
Workflows: [publish.yml] and [publish-indy.yml]. The actions are triggered
112
+
when a release is tagged, so no manual action is needed. The images are
113
+
published in the [Hyperledger Package Repository under
and a link to the packages added to the repositories main page (under
116
+
"Packages").
29
117
30
-
8. Immediately after it is merged, create a new GitHub tag representing the version. The tag name and title of the release should be the same as the version in [aries_cloudagent/version.py](aries_cloudagent/version.py). Use the "Generate Release Notes" capability to get a sequential listing of the PRs in the release, to complement the manually curated Changelog. Verify on PyPi that the version is published.
118
+
Additional information about the container image publication process can be
119
+
found in the document [Container Images and Github Actions]().
31
120
32
-
9. Publish a new docker container on Docker Hub ([bcgovimages/aries-cloudagent](https://hub.docker.com/r/bcgovimages/aries-cloudagent/)) by following the README.md instructions to create a PR for the release in the repository [https://github.com/bcgov/aries-cloudagent-container](https://github.com/bcgov/aries-cloudagent-container). Appropriate permissions are required to publish the image.
[Container Images and Github Actions]: https://github.com/hyperledger/aries-cloudagent-python/blob/main/ContainerImagesAndGithubActions.md
33
124
34
-
10. Update the ACA-Py Read The Docs site by building the new "latest" (main branch) and activating and building the new release. Appropriate permissions are required to publish the new documentation version.
125
+
10. Update the ACA-Py Read The Docs site by building the new "latest" (main
126
+
branch) and activating and building the new release. Appropriate permissions
127
+
are required to publish the new documentation version.
0 commit comments