Skip to content

Conversation

gowthamsk-arm
Copy link
Contributor

@gowthamsk-arm gowthamsk-arm commented Jul 20, 2023

Backport of #7968

Needs Mbed-TLS/mbedtls-test#118 to be merged, otherwise the CI won't pass.

Closes #7891

This PR has adds following changes:

  • The Ubuntu 16.04 and 22.04 docker images in mbedtls-test have been updated with earliest and latest versions of gcc and clang respectively. This PR adds the components and support functions required for the CI to run these compilers. For FreeBSD, we invoke the function by name so a condition is added to disable the existing test_clang_opt function for Linux.

  • Running clang-16 on mbedtls reports warnings of type "-Wstrict-prototypes". This patch fixes these warnings by adding void to functions with no arguments.

PR checklist

Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")

@gowthamsk-arm gowthamsk-arm added enhancement component-platform Portability layer and build scripts needs-ci Needs to pass CI tests size-s Estimated task size: small (~2d) priority-medium Medium priority - this can be reviewed as time permits labels Jul 20, 2023
@gowthamsk-arm gowthamsk-arm self-assigned this Jul 20, 2023
@gowthamsk-arm gowthamsk-arm mentioned this pull request Jul 20, 2023
3 tasks
@gowthamsk-arm
Copy link
Contributor Author

This PR has a dependency on #118
Internal CI run: https://jenkins-mbedtls.oss.arm.com/job/mbedtls-release-ci-testing/510/

@gowthamsk-arm
Copy link
Contributor Author

@gowthamsk-arm gowthamsk-arm added needs-ci Needs to pass CI tests and removed needs-ci Needs to pass CI tests labels Jul 25, 2023
The Ubuntu 16.04 and 22.04 docker images have been updated with
earliest and latest versions of gcc and clang respectively.
This patch adds the necessary component and support functions
required for the CI to run these compilers.

For FreeBSD we invoke the function by name so a condition is added
to disable the existing test_clang_opt function for linux.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
@gowthamsk-arm gowthamsk-arm force-pushed the use_earliest_latest_compilers_2.28 branch 2 times, most recently from ca13b33 to 853e9f4 Compare July 26, 2023 18:43
Running clang-16 on mbedtls reports warnings of type "-Wstrict-prototypes".
This patch fixes these warnings by adding void to functions with no
arguments. The generate_test_code.py is modified to insert void into test
functions with no arguments in *.function files.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
@gowthamsk-arm gowthamsk-arm force-pushed the use_earliest_latest_compilers_2.28 branch from 853e9f4 to 34d8bd3 Compare July 26, 2023 23:03
@gilles-peskine-arm gilles-peskine-arm added the needs-preceding-pr Requires another PR to be merged first label Jul 27, 2023
@gowthamsk-arm gowthamsk-arm added needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Jul 27, 2023
@gowthamsk-arm gowthamsk-arm marked this pull request as ready for review July 27, 2023 08:42
The component functions in all.sh will be listed using
compgen instead of sed so this check is not needed.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
The latest and earliest clang/GCC compilers are now used through
variables instead of symlinks and also the all.sh script is updated
to support options for overriding the default values.

Signed-off-by: Gowtham Suresh Kumar <[email protected]>
@gowthamsk-arm gowthamsk-arm removed needs-review Every commit must be reviewed by at least two team members, needs-preceding-pr Requires another PR to be merged first labels Aug 1, 2023
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gilles-peskine-arm gilles-peskine-arm removed the needs-reviewer This PR needs someone to pick it up for review label Aug 1, 2023
@gilles-peskine-arm gilles-peskine-arm added the needs-review Every commit must be reviewed by at least two team members, label Aug 1, 2023
Copy link
Contributor

@tgonzalezorlandoarm tgonzalezorlandoarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gilles-peskine-arm gilles-peskine-arm added approved Design and code approved - may be waiting for CI or backports and removed needs-review Every commit must be reviewed by at least two team members, labels Aug 1, 2023
@gilles-peskine-arm
Copy link
Contributor

I've restarted the internal CI job which hit a 500 fetching from GitHub.

@gilles-peskine-arm gilles-peskine-arm added this pull request to the merge queue Aug 1, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2023
@bensze01 bensze01 added this pull request to the merge queue Aug 1, 2023
Merged via the queue into Mbed-TLS:mbedtls-2.28 with commit fb806b6 Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Design and code approved - may be waiting for CI or backports component-platform Portability layer and build scripts enhancement needs-ci Needs to pass CI tests priority-medium Medium priority - this can be reviewed as time permits size-s Estimated task size: small (~2d)

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants