Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the Arm Compiler 5 and 6 components #9075

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

bensze01
Copy link
Contributor

@bensze01 bensze01 commented Apr 30, 2024

Description

This allows us to test for the presence of each compiler separately. This change is needed to drop the testing of Arm compiler 5 on the OpenCI.

PR checklist

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

  • changelog not required
  • 3.6 backport
  • 2.28 backport
  • tests not required

This allows us to test for the presence of each compiler separately.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
@bensze01 bensze01 added enhancement needs-review Every commit must be reviewed by at least two team members, needs-ci Needs to pass CI tests needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d) component-test Test framework and CI scripts labels Apr 30, 2024
@@ -77,15 +77,13 @@ echo
print_version "cmake" "--version" "" "head -n 1"
echo

if [ "${RUN_ARMCC:-1}" -ne 0 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep the check on RUN_ARMCC. The goal of this check is to avoid timing out and erroring out if you run all.sh without access to a license.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've tested this patch by unsetting ARMLMD_LICENSE_FILE, and output_env.sh completed without an error code.

When does this cause a hang exactly? When there is a Technet license server defined, but a license is not available?

Copy link
Contributor

Choose a reason for hiding this comment

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

My typical scenario is: I'm working from home or on the move, and not on the VPN. I have ARMLMD_LICENSE_FILE set all the time because I do want Arm compilers to work when they can. Invoking armcc --version or the like makes it hang.

Also, even if it doesn't hang, it's slow. In particular, all.sh --list-components should not invoke an Arm compiler, otherwise it makes completion painfully slow.

This commit replaces the previous RUN_ARMCC enviornment variable used by
output_env.sh with RUN_ARMC5 and RUN_ARMC6.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
@bensze01 bensze01 removed needs-ci Needs to pass CI tests needs-reviewer This PR needs someone to pick it up for review labels May 2, 2024
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 with just one suggestion for improvement.

armc5_cc="$ARMC5_BIN_DIR/armcc"
(check_tools "$armc5_cc" > /dev/null 2>&1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Preexisting: check_tools can use return 1 instead of exit 1 (I seem to have missed that years ago when structuring the files into functions), and so it wouldn't need to be put in a subshell here.

Copy link
Member

@paul-elliott-arm paul-elliott-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 added approved Design and code approved - may be waiting for CI or backports needs-backports Backports are missing or are pending review and approval. and removed needs-review Every commit must be reviewed by at least two team members, labels May 6, 2024
@gilles-peskine-arm gilles-peskine-arm added this to To Do in Roadmap Board for Mbed TLS via automation May 6, 2024
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-test Test framework and CI scripts enhancement needs-backports Backports are missing or are pending review and approval. size-s Estimated task size: small (~2d)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants