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

analyze_outcomes.py refactoring: change stringly typed data to classes #9594

Conversation

gilles-peskine-arm
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm commented Sep 17, 2024

Refactoring of analyze_outcomes.py with no intended behavior change. Preliminary to #9593. The refactoring was needed to be able to use the same ignore functionality for coverage analysis and driver-vs-reference.

PR checklist

@gilles-peskine-arm gilles-peskine-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 component-test Test framework and CI scripts priority-high High priority - will be reviewed soon size-xs Estimated task size: extra small (a few hours at most) labels Sep 17, 2024
@mpg mpg self-requested a review September 19, 2024 10:57
@paul-elliott-arm paul-elliott-arm self-requested a review September 19, 2024 14:59
@mpg
Copy link
Contributor

mpg commented Sep 23, 2024

Sorry I thought I would have time to review this but new things came up so I won't in the next few days. I'm removing myself as a reviewer so that someone else can take it. If nobody did by the end of the week, I might take it again.

@mpg mpg removed their request for review September 23, 2024 07:25
Fix `mypy scripts/xxx.py`, `mypy tests/scripts/xxx.py`,
`pylint scripts/xxx.py`, `pylint tests/scripts/xxx.py`
failing to find `mbedtls_framework`.

Signed-off-by: Gilles Peskine <[email protected]>
Start replacing the stringly typed KNOWN_TASKS by classes for each category
of tasks, with a structure that matches the behavior.

This commit introduces some transition code.

No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
Work on replacing the stringly typed KNOWN_TASKS by classes for each category
of tasks, with a structure that matches the behavior.

This commit migrates test coverage analysis.

No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
Work on the stringly typed KNOWN_TASKS by classes for each category
of tasks, with a structure that matches the behavior.

This commit migrates the code for driver-vs-reference analysis. To
facilitate review, this commit preserves the layout of the data that
parametrizes each task. The next commit will migrate the data.

No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
Work on the stringly typed KNOWN_TASKS by classes for each category
of tasks, with a structure that matches the behavior.

This commit migrates the data for driver-vs-reference analysis and gets rid
of the transitional code that was using the old form of the data.

No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
No intended behavior change.

Signed-off-by: Gilles Peskine <[email protected]>
@gilles-peskine-arm gilles-peskine-arm force-pushed the analyze_outcomes-classes-development branch from 3f609ee to 54cfe77 Compare September 24, 2024 20:12
@gilles-peskine-arm
Copy link
Contributor Author

I've rebased on top of the latest development due to a conflict with #9565, which renamed the component test_tfm_config to test_tfm_config_no_p256m.

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, some minor nits and one question, but nothing show stopping

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, one minor

What was formerly called an allow list is now an ignore table.

Signed-off-by: Gilles Peskine <[email protected]>
Copy link
Contributor

@yanesca yanesca left a comment

Choose a reason for hiding this comment

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

LGTM

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 Oct 3, 2024
@gilles-peskine-arm gilles-peskine-arm added this pull request to the merge queue Oct 3, 2024
Merged via the queue into Mbed-TLS:development with commit 38d4c91 Oct 3, 2024
4 of 5 checks passed
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 needs-backports Backports are missing or are pending review and approval. priority-high High priority - will be reviewed soon size-xs Estimated task size: extra small (a few hours at most)
Projects
Development

Successfully merging this pull request may close these issues.

4 participants