all.sh: consistently generate files before checks, and not before builds #189

Open
gilles-peskine-arm wants to merge 4 commits from gilles-peskine-arm/all.sh-generate-only-before-checks-framework into main
gilles-peskine-arm commented 2025-07-18 11:10:04 -05:00 (Migrated from github.com)

Make the behavior of all.sh with respect to generated files at the beginning of a component:

  • consistent across repositories;
  • independent of the initial content of the working directory;
  • dependent on the component: present for check_xxx (where their absence can lead to a failure or silent loss of test coverage), and absent for builds and tests (where we expect the build scripts to generate them as needed).

Fix https://github.com/Mbed-TLS/mbedtls-framework/issues/188

No change needed in consuming branches (to be confirmed by the CI), but there are a couple of things to clean up in TF-PSA-Crypto.

PR checklist

Please add the numbers (or links) of the associated pull requests for consuming branches. You can omit branches where this pull request is not needed.

  • TF-PSA-Crypto PR
  • development PR provided # | not required because:
  • 3.6 PR provided # | not required because:
Make the behavior of `all.sh` with respect to generated files at the beginning of a component: * consistent across repositories; * independent of the initial content of the working directory; * dependent on the component: present for `check_xxx` (where their absence can lead to a failure or silent loss of test coverage), and absent for builds and tests (where we expect the build scripts to generate them as needed). Fix https://github.com/Mbed-TLS/mbedtls-framework/issues/188 No change needed in consuming branches (to be confirmed by the CI), but there are a couple of things to clean up in TF-PSA-Crypto. ## PR checklist Please add the numbers (or links) of the associated pull requests for consuming branches. You can omit branches where this pull request is not needed. - [x] **TF-PSA-Crypto PR** - [x] **development PR** provided # | not required because: - [x] **3.6 PR** provided # | not required because:
This pull request has changes conflicting with the target branch.
  • scripts/all-core.sh
  • scripts/make_generated_files.py
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/all.sh-generate-only-before-checks-framework:gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git switch 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'

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 'main'
git merge --no-ff 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git switch 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git rebase 'main'
git switch 'main'
git merge --ff-only 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git switch 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git rebase 'main'
git switch 'main'
git merge --no-ff 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git switch 'main'
git merge --squash 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git switch 'main'
git merge --ff-only 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git switch 'main'
git merge 'gilles-peskine-arm/all.sh-generate-only-before-checks-framework'
git push origin 'main'
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/mbedtls-framework!189
No description provided.