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

Update the hashes domain to use PSA macros in depends.py #9634

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

Conversation

gabor-mezei-arm
Copy link
Contributor

Description

In depends.py use PSA macros for the hashes domain.

Resolve #9144
Depends on #9292

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

  • changelog not required because: test related changes
  • development PR provided this is
  • framework PR not required
  • 3.6 PR not required because: 4.0 related changes
  • 2.28 PR not required because: 4.0 related changes
  • tests provided

@gabor-mezei-arm gabor-mezei-arm added enhancement needs-ci Needs to pass CI tests needs-preceding-pr Requires another PR to be merged first size-s Estimated task size: small (~2d) component-test Test framework and CI scripts priority-high High priority - will be reviewed soon labels Sep 24, 2024
@gabor-mezei-arm gabor-mezei-arm self-assigned this Sep 24, 2024
@gabor-mezei-arm gabor-mezei-arm force-pushed the 9144_update_depends.py_hashes_domain branch from 8ab32ac to fcfc93d Compare September 25, 2024 11:53
With mutual exclusion multiple symbols can be handled as one thus
if one of them need to be turned of them all of them will be.

Also update the Job class for the symbols in the mutual exclusion jobs to
be referenced separately.

Signed-off-by: Gabor Mezei <[email protected]>
@gabor-mezei-arm gabor-mezei-arm force-pushed the 9144_update_depends.py_hashes_domain branch from fcfc93d to baa11a9 Compare January 13, 2025 15:11
@gabor-mezei-arm gabor-mezei-arm removed the needs-preceding-pr Requires another PR to be merged first label Jan 13, 2025
@minosgalanakis minosgalanakis self-requested a review January 13, 2025 15:20
@gabor-mezei-arm gabor-mezei-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 and removed needs-ci Needs to pass CI tests labels Jan 14, 2025
@ronald-cron-arm ronald-cron-arm self-requested a review January 15, 2025 08:43
@ronald-cron-arm ronald-cron-arm removed the needs-reviewer This PR needs someone to pick it up for review label Jan 15, 2025
minosgalanakis
minosgalanakis previously approved these changes Jan 17, 2025
Copy link
Contributor

@minosgalanakis minosgalanakis left a comment

Choose a reason for hiding this comment

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

Looks good. Some minor non blocking comments.

alter_names = {'!' + symbol for symbol in config_settings.keys()}
job = Job(description, config_settings, commands, alter_names)
self.jobs.append(job)
valid_symbols -= config_settings.keys()
Copy link
Contributor

Choose a reason for hiding this comment

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

Question.

Updating the valid_symbols while iterating through the mutual_exlusion implies that that a single valid_symbol can only pair with a single group. So we cannot have two groups that depend on the same valid_symbol

Is that intended as per design?

@@ -630,8 +630,11 @@ def __init__(self, options, conf):
# across various modules, but it depends on either SHA256 or SHA512.
# As a consequence an "exclusive" test of anything other than SHA256
# or SHA512 with MBEDTLS_ENTROPY_C enabled is not possible.
# Note for update: when MBEDTLS_SHA3_C is removed the mutual_exclusion
Copy link
Contributor

Choose a reason for hiding this comment

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

We need a common operator to indicate things that need to be done in the documentation. Until that is decided shoud we use TODO: which is global?

Signed-off-by: Gabor Mezei <[email protected]>
Now it is supported to the select a symbol for multiple mutual exclusion groups.

Signed-off-by: Gabor Mezei <[email protected]>
Signed-off-by: Gabor Mezei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-test Test framework and CI scripts enhancement needs-review Every commit must be reviewed by at least two team members, priority-high High priority - will be reviewed soon size-s Estimated task size: small (~2d)
Projects
Development

Successfully merging this pull request may close these issues.

Update the hashes domain to use PSA macros in depends.py
3 participants