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
Revert a mistake in v0.22 that prevents cargo publish (#1065)
#1055 removed the version for
`mmtk-macros` in `Cargo.toml`. I thought it was fine, as it uses a local
path as the dependency. But `cargo publish` actually requires all the
dependencies to specify a version. So `cargo publish` failed for
https://github.com/mmtk/mmtk-core/releases/tag/v0.22.0 in
https://github.com/mmtk/mmtk-core/actions/runs/7284255107/job/19849376243.
The action did not return a non-zero code so I was not aware of the
issue. `v0.22` was not published to `crates.io`.
This PR adds back the version for `mmtk-macros`, adds a check for `cargo
publish` dry run in the style check, and fixes the publish script so the
script properly fails if all the attempts of `cargo publish` fail.
Copy file name to clipboardExpand all lines: docs/team/release.md
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ If the current version is `0.X.x`, the new version should be `0.X+1.0`.
32
32
The PR should include these changes:
33
33
34
34
1. Bump version in `Cargo.toml`.
35
-
2. Bump version in `macros/Cargo.toml`.
35
+
2. Bump version in `macros/Cargo.toml`. Use the new version for the `mmtk-macros` dependency in `Cargo.toml`.
36
36
3. Update `CHANGELOG.md`:
37
37
1. Add a section for the new version number and the cut-off date (when the PR is created)
38
38
2. Add change logs for the release. The following shows one convenient way to do it. If there is a better way, we should adopt.
@@ -81,7 +81,13 @@ Once the PRs are merged, we can tag releases on Github.
81
81
2. Keep an eye on the CI status for the latest commit in MMTk core.
82
82
3. Do point release for fixing severe issues. Currently we normally do not need point releases. Normal bug fixes or any other issues can be fixed in the next release.
83
83
But in rare cases, such as the current tagged release cannot build, cannot run, or it somehow fails in publishing, we may need to do a point release.
84
-
* If there is no other commit in `master` yet, doing a point release follows exactly the same process above. Depending on the changes, we may or may not need a point release
85
-
for the bindings.
86
-
* If there are commits in `master` that we do not want to include in the point release, the point release should be in a separate branch in the upstream repository.
87
-
The changes for the point release should be merged back to `master`.
84
+
85
+
### Point release
86
+
87
+
1. Create a pull request to fix the issue.
88
+
2. Create a pull request to bump the version number, following the same process [above](#create-prs-to-bump-the-version-number).
89
+
3. Once the PRs are merged,
90
+
* Create a branch in the main repository based on the last release `v0.x.y` (from `master` or from the last point release branch), named with the new point release version, such as `v0.x.y+1`.
91
+
* Cherry pick commits from `master` that should be included in the new point release.
92
+
* Tag a release from the branch, following the same process [above](#tag-releases).
93
+
* If there is no other commit in `master` yet, there is no need to create a different branch for the release, and we can tag a release from `master`.
0 commit comments