Skip to content

[uss_qualifier] Improve check-matching#1380

Merged
mickmis merged 1 commit intointeruss:mainfrom
BenjaminPelletier:check-matching
Mar 5, 2026
Merged

[uss_qualifier] Improve check-matching#1380
mickmis merged 1 commit intointeruss:mainfrom
BenjaminPelletier:check-matching

Conversation

@BenjaminPelletier
Copy link
Member

Currently, whether a check will match a specified check is somewhat vague. This PR improves the documentation regarding what is expected for the values of a FullyQualifiedCheck, but also improves TestScenarioTypeName comparisons. Previously, a test scenario name would only match if the exact same form of its name was used. For instance, scenarios.astm.utm.dss.dss_interoperability.DSSInteroperability would NOT match scenarios.astm.utm.dss.DSSInteroperability even though both of those relative Python paths resolve to the same class because of the shortcut import at the dss module level. This PR fixes that by introducing are_scenario_types_equal and using it whenever two TestScenarioTypeNames are compared. This function is not added as TestScenarioTypeName.__eq__ because attempting to do so would create a circular reference (TestScenarioTypeName is a definition-level building block whereas the implementation of equality requires machinery defined at the scenario implementation level). The success of this change is verified by changing the f3548_self_contained configuration to use a different from of the test scenario name and checking that the finding is still accepted.

@BenjaminPelletier BenjaminPelletier marked this pull request as ready for review March 5, 2026 02:00
Copy link
Contributor

@mickmis mickmis left a comment

Choose a reason for hiding this comment

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

LGTM

@mickmis mickmis merged commit bdd26cb into interuss:main Mar 5, 2026
22 checks passed
@BenjaminPelletier BenjaminPelletier deleted the check-matching branch March 6, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants