microsoft / mu_feature_mm_supv

Project Mu - Feature Repo - MM Supervisor
https://microsoft.github.io/mu
Other
48 stars 30 forks source link

gen_aux: Allow validation rules to only apply to certain build targets #352

Closed Javagedes closed 1 month ago

Javagedes commented 1 month ago

Description

This change allows validation rules to only apply to certain build targets (DEBUG, RELEASE, NOOPT). By default, validation rules apply to all three, but a rule can be marked to only apply to a subset of them by adding a target field to the rule, which is a list of the supported targets.

How This Was Tested

Validated that no change to a config continues to apply all rules.

Validated that filtering a rule to a specific build target results in that rule being skipped in the final aux.

Integration Instructions

Add a target = ['debug'], target = ['release'] or target = ['noop'] or any combination there-of to any [[rule]] entry.

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (feature/sea@019bedb). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## feature/sea #352 +/- ## ============================================= Coverage ? 0.47% ============================================= Files ? 144 Lines ? 22030 Branches ? 60 ============================================= Hits ? 105 Misses ? 21920 Partials ? 5 ``` | [Flag](https://app.codecov.io/gh/microsoft/mu_feature_mm_supv/pull/352/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [MmSupervisorPkg](https://app.codecov.io/gh/microsoft/mu_feature_mm_supv/pull/352/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.47% <ø> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.