4258c54f4e Merge bitcoin-core/secp256k1#1276: autotools: Don't regenerate Wycheproof header automatically 06c67dea9f autotools: Don't regenerate Wycheproof header automatically 3bab71cf05 Merge bitcoin-core/secp256k1#1268: release cleanup: bump version after 0.3.1 656c6ea8d8 release cleanup: bump version after 0.3.1 346a053d4c Merge bitcoin-core/secp256k1#1269: changelog: Fix link 6a37b2a5ea changelog: Fix link ec98fcedd5 Merge bitcoin-core/secp256k1#1266: release: Prepare for 0.3.1 898e1c676e release: Prepare for 0.3.1 1d9a13fc26 changelog: Remove inconsistent newlines 0e091669a1 changelog: Catch up in preparation of 0.3.1 7b7503dac5 Merge bitcoin-core/secp256k1#1245: tests: Add Wycheproof ECDSA vectors 145078c418 Merge bitcoin-core/secp256k1#1118: Add x-only ecmult_const version with x specified as n/d e5de454609 tests: Add Wycheproof ECDSA vectors 0f8642079b Add exhaustive tests for ecmult_const_xonly 4485926ace Add x-only ecmult_const version for x=n/d a0f4644f7e Merge bitcoin-core/secp256k1#1252: Make position of * in pointer declarations in include/ consistent 4e682626a3 Merge bitcoin-core/secp256k1#1226: Add CMake instructions to release process 2d51a454fc Merge bitcoin-core/secp256k1#1257: ct: Use volatile "trick" in all fe/scalar cmov implementations 4a496a36fb ct: Use volatile "trick" in all fe/scalar cmov implementations 3d1f430f9f Make position of * in pointer declarations in include/ consistent 2bca0a5cbf Merge bitcoin-core/secp256k1#1241: build: Improve `SECP_TRY_APPEND_DEFAULT_CFLAGS` macro afd8b23b27 Merge bitcoin-core/secp256k1#1244: Suppress `-Wunused-parameter` when building for coverage analysis 1d8f367515 Merge bitcoin-core/secp256k1#1250: No need to subtract 1 before doing a right shift 3e43041be6 No need to subtract 1 before doing a right shift 3addb4c1e8 build: Improve `SECP_TRY_APPEND_DEFAULT_CFLAGS` macro 0c07c82834 Add CMake instructions to release process 464a9115b4 Merge bitcoin-core/secp256k1#1242: Set ARM ASM symbol visibility to `hidden` f16a709fd6 Merge bitcoin-core/secp256k1#1247: Apply Checks only in VERIFY mode. 70be3cade5 Merge bitcoin-core/secp256k1#1246: Typo 4ebd82852d Apply Checks only in VERIFY mode. d1e7ca192d Typo 5bb03c2911 Replace `SECP256K1_ECMULT_TABLE_VERIFY` macro by a function 9c8c4f443c Merge bitcoin-core/secp256k1#1238: build: bump CMake minimum requirement to 3.13 0cf2fb91ef Merge bitcoin-core/secp256k1#1243: build: Ensure no optimization when building for coverage analysis fd2a408647 Set ARM ASM symbol visibility to `hidden` 4429a8c218 Suppress `-Wunused-parameter` when building for coverage analysis 8e79c7ed11 build: Ensure no optimization when building for coverage analysis 96dd062511 build: bump CMake minimum requirement to 3.13 427bc3cdcf Merge bitcoin-core/secp256k1#1236: Update comment for secp256k1_modinv32_inv256 647f0a5cb1 Update comment for secp256k1_modinv32_inv256 5658209459 Merge bitcoin-core/secp256k1#1228: release cleanup: bump version after 0.3.0 28e63f7ea7 release cleanup: bump version after 0.3.0 git-subtree-dir: src/secp256k1 git-subtree-split: 4258c54f4ebfc09390168e8a43306c46b315134b
3.7 KiB
Release Process
This document outlines the process for releasing versions of the form $MAJOR.$MINOR.$PATCH
.
We distinguish between two types of releases: regular and maintenance releases. Regular releases are releases of a new major or minor version as well as patches of the most recent release. Maintenance releases, on the other hand, are required for patches of older releases.
You should coordinate with the other maintainers on the release date, if possible. This date will be part of the release entry in CHANGELOG.md and it should match the dates of the remaining steps in the release process (including the date of the tag and the GitHub release). It is best if the maintainers are present during the release, so they can help ensure that the process is followed correctly and, in the case of a regular release, they are aware that they should not modify the master branch between merging the PR in step 1 and the PR in step 3.
This process also assumes that there will be no minor releases for old major releases.
Regular release
-
Open a PR to the master branch with a commit (using message
"release: prepare for $MAJOR.$MINOR.$PATCH"
, for example) that- finalizes the release notes in CHANGELOG.md (make sure to include an entry for
### ABI Compatibility
), - updates
_PKG_VERSION_*
and_LIB_VERSION_*
and sets_PKG_VERSION_IS_RELEASE
totrue
inconfigure.ac
, and - updates
project(libsecp256k1 VERSION ...)
and${PROJECT_NAME}_LIB_VERSION_*
inCMakeLists.txt
.
- finalizes the release notes in CHANGELOG.md (make sure to include an entry for
-
After the PR is merged, tag the commit and push it:
RELEASE_COMMIT=<merge commit of step 1> git tag -s v$MAJOR.$MINOR.$PATCH -m "libsecp256k1 $MAJOR.$MINOR.$PATCH" $RELEASE_COMMIT git push git@github.com:bitcoin-core/secp256k1.git v$MAJOR.$MINOR.$PATCH
-
Open a PR to the master branch with a commit (using message
"release cleanup: bump version after $MAJOR.$MINOR.$PATCH"
, for example) that- sets
_PKG_VERSION_IS_RELEASE
tofalse
and increments_PKG_VERSION_PATCH
and_LIB_VERSION_REVISION
inconfigure.ac
, and - increments the
$PATCH
component ofproject(libsecp256k1 VERSION ...)
and${PROJECT_NAME}_LIB_VERSION_REVISION
inCMakeLists.txt
.
If other maintainers are not present to approve the PR, it can be merged without ACKs.
- sets
-
Create a new GitHub release with a link to the corresponding entry in CHANGELOG.md.
Maintenance release
Note that bugfixes only need to be backported to releases for which no compatible release without the bug exists.
- If
$PATCH = 1
, create maintenance branch$MAJOR.$MINOR
:git checkout -b $MAJOR.$MINOR v$MAJOR.$MINOR.0 git push git@github.com:bitcoin-core/secp256k1.git $MAJOR.$MINOR
- Open a pull request to the
$MAJOR.$MINOR
branch that- includes the bugfixes,
- finalizes the release notes,
- increments
_PKG_VERSION_PATCH
and_LIB_VERSION_REVISION
inconfigure.ac
and the$PATCH
component ofproject(libsecp256k1 VERSION ...)
and${PROJECT_NAME}_LIB_VERSION_REVISION
inCMakeLists.txt
(with commit message"release: bump versions for $MAJOR.$MINOR.$PATCH"
, for example).
- After the PRs are merged, update the release branch and tag the commit:
git checkout $MAJOR.$MINOR && git pull git tag -s v$MAJOR.$MINOR.$PATCH -m "libsecp256k1 $MAJOR.$MINOR.$PATCH"
- Push tag:
git push git@github.com:bitcoin-core/secp256k1.git v$MAJOR.$MINOR.$PATCH
- Create a new GitHub release with a link to the corresponding entry in CHANGELOG.md.
- Open PR to the master branch that includes a commit (with commit message
"release notes: add $MAJOR.$MINOR.$PATCH"
, for example) that adds release notes to CHANGELOG.md.