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

Add project and branch detection in shell #67

Merged
merged 9 commits into from
Nov 27, 2024
Merged

Conversation

eleuzi01
Copy link
Contributor

@eleuzi01 eleuzi01 commented Nov 7, 2024

Resolves #39

Development: Mbed-TLS/mbedtls#9763
3.6: Mbed-TLS/mbedtls#9764

Gatekeper note (mpg): CI can't pass here as we now depend on the FRAMEWORK variables defined by the associated PRs. So, we'll rely on CI status in 9763 and 9764. We also need to merge the 3 PRs at the same time in order to avoid breakage - so we won't do the usual pointer update in 9763 and 9764 after merging this one in order to reduce the window where things are in an inconsistent state. (We can update the pointer to the merge commit as follow-ups to 9763 and 9764.)

@eleuzi01 eleuzi01 added enhancement New feature or request size-s Estimated task size: small (~2d) priority-high High priority - will be reviewed soon labels Nov 7, 2024
@eleuzi01 eleuzi01 force-pushed the issue-39 branch 2 times, most recently from 76f2ecc to 830209b Compare November 7, 2024 16:31
@eleuzi01 eleuzi01 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 Nov 8, 2024

PROJECT_NAME_FILE="scripts/project_name.txt"

if echo "$SCRIPT_DIR" | grep -q "/framework/scripts" || echo "$SCRIPT_DIR" | grep -q "/tests/scripts"; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems unnecessary if we assume the scripts are always invoked from the project's root (which as I said on the other PR, is a standard assumption - too bad it's often unwritten).

@ronald-cron-arm
Copy link
Contributor

@eleuzi01 As part of this PR or in a following one please use in_3_6_branch to improve what has been done in #76.

@eleuzi01 eleuzi01 force-pushed the issue-39 branch 3 times, most recently from 7408b3e to b1eee49 Compare November 20, 2024 14:53
@eleuzi01
Copy link
Contributor Author

@eleuzi01 As part of this PR or in a following one please use in_3_6_branch to improve what has been done in #76.

It might have to be done in a following PR because the CI is not passing when I do that. Either I'm doing something wrong or maybe there're still PRs that have to be merged before I'm able to remove this temporary solution?

@eleuzi01 eleuzi01 requested a review from mpg November 25, 2024 12:00
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Move in_mbedtls_repo() and in_tf_psa_repo() there

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Because the scripts are always invoked from the project's root

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
This reverts commit b1eee49.

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
Copy link
Contributor

@mpg mpg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

@davidhorstmann-arm davidhorstmann-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, thanks!

@davidhorstmann-arm davidhorstmann-arm removed 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 Nov 27, 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 enhancement New feature or request priority-high High priority - will be reviewed soon size-s Estimated task size: small (~2d)
Development

Successfully merging this pull request may close these issues.

Project and branch detection Python and shell utilities
4 participants