Test release preparation #555

Open
gilles-peskine-arm wants to merge 11 commits from gilles-peskine-arm/prepare-release-test into development
gilles-peskine-arm commented 2025-10-29 13:35:07 -05:00 (Migrated from github.com)

Addresses most of https://github.com/Mbed-TLS/mbedtls/issues/3255 . What is left is to arrange for the Groovy code to pick up the release artifacts created by the new all.sh component as Jenkins artifacts.

Addresses most of https://github.com/Mbed-TLS/mbedtls-framework/pull/231 by creating bump_version.sh in crypto. We might want to put this functionality into prepare_release.py, but I'm not fully convinced: there are significant differences between branches with respect to what version bumping does, so I think the code to do that belongs in each branch.

Fixes https://github.com/Mbed-TLS/mbedtls/issues/9521 by testing that builds done in different directories result in identical tarballs.

Needs preceding PR:

PR checklist

Addresses most of https://github.com/Mbed-TLS/mbedtls/issues/3255 . What is left is to arrange for the Groovy code to pick up the release artifacts created by the new `all.sh` component as Jenkins artifacts. Addresses most of https://github.com/Mbed-TLS/mbedtls-framework/pull/231 by creating `bump_version.sh` in crypto. We might want to put this functionality into `prepare_release.py`, but I'm not fully convinced: there are significant differences between branches with respect to what version bumping does, so I think the code to do that belongs in each branch. Fixes https://github.com/Mbed-TLS/mbedtls/issues/9521 by testing that builds done in different directories result in identical tarballs. Needs preceding PR: * [ ] https://github.com/Mbed-TLS/mbedtls-framework/pull/231 * [x] Not needed to pass the CI, but needed for `bump_version.sh` not to be incomplete: https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/554 * [x] The `bump_version.sh` commits are in https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/676 * [x]: needs Ubuntu 24.04 on the CI https://github.com/Mbed-TLS/mbedtls-test/pull/230 ## PR checklist - [x] **changelog** not required because: test only - [x] **framework PR** provided https://github.com/Mbed-TLS/mbedtls-framework/pull/231 - [ ] **mbedtls development PR** TODO - [ ] **mbedtls 4.1 PR** TODO - [x] **TF-PSA-Crypto development PR** https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/555 - [ ] **TF-PSA-Crypto 1.1 PR** TODO - [x] **mbedtls 3.6 PR** No, we'll keep the old process for the remaining life time of 3.6 - **tests** provided
gilles-peskine-arm (Migrated from github.com) reviewed 2025-10-29 13:42:42 -05:00
@ -0,0 +9,4 @@
#### Release preparation
################################################################
next_product_version () {
gilles-peskine-arm (Migrated from github.com) commented 2025-10-29 13:42:42 -05:00

I'm not sure if the auxiliary functions here should move to framework/scripts/all-helpers.sh. They're pretty specific to release preparation.

I'm not sure if the auxiliary functions here should move to `framework/scripts/all-helpers.sh`. They're pretty specific to release preparation.
gilles-peskine-arm (Migrated from github.com) reviewed 2025-10-29 13:44:45 -05:00
@ -0,0 +25,4 @@
EOF
}
git_clone_recursively () {
gilles-peskine-arm (Migrated from github.com) commented 2025-10-29 13:44:45 -05:00

I want to tidy up the handling of submodules (both cloning, and the dirty worktree check) before copying this to mbedtls. For crypto with just one submodule, it's ok. But for the multiple submodules of Mbed TLS, I'd like a loop. And if I write that loop I might as well use it here too.

I want to tidy up the handling of submodules (both cloning, and the dirty worktree check) before copying this to mbedtls. For crypto with just one submodule, it's ok. But for the multiple submodules of Mbed TLS, I'd like a loop. And if I write that loop I might as well use it here too.
minosgalanakis commented 2026-01-28 11:16:10 -06:00 (Migrated from github.com)

@gilles-peskine-arm would it be possible to split this pr and add the bump-version.sh to TF-PSA-Crypto separately? it can come in as a standalone script?

@gilles-peskine-arm would it be possible to split this pr and add the bump-version.sh to TF-PSA-Crypto separately? it can come in as a standalone script?
gilles-peskine-arm commented 2026-01-28 11:35:26 -06:00 (Migrated from github.com)
@minosgalanakis Done: https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/676
This pull request has changes conflicting with the target branch.
  • framework
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'gilles-peskine-arm/prepare-release-test:gilles-peskine-arm/prepare-release-test'
git switch 'gilles-peskine-arm/prepare-release-test'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'development'
git merge --no-ff 'gilles-peskine-arm/prepare-release-test'
git switch 'gilles-peskine-arm/prepare-release-test'
git rebase 'development'
git switch 'development'
git merge --ff-only 'gilles-peskine-arm/prepare-release-test'
git switch 'gilles-peskine-arm/prepare-release-test'
git rebase 'development'
git switch 'development'
git merge --no-ff 'gilles-peskine-arm/prepare-release-test'
git switch 'development'
git merge --squash 'gilles-peskine-arm/prepare-release-test'
git switch 'development'
git merge --ff-only 'gilles-peskine-arm/prepare-release-test'
git switch 'development'
git merge 'gilles-peskine-arm/prepare-release-test'
git push origin 'development'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/TF-PSA-Crypto!555
No description provided.