Open Shastick opened 6 months ago
This scenario is failing in the CI as well because of a mismatch between test configuration and mock environment configuration. uss_qualifier is requesting that the USS plan a flight with priority 100, but the mock_uss being instructed to plan is configured to follow the rules of a locality that doesn't have this priority level (likely US Industry Collaboration). The reason this is not causing the CI to fail is that the message_signing configuration has no validation
block to return an error code from uss_qualifier (which is what CI success is based on). There are (at least) 3 ways to fix this:
uspace
configurationI think option 2 is probably the best compromise, but we can keep 3 in our back pocket if things become too hard to maintain. @punamverma for visibility as well
For options 1 or 2, we should add a validation
block that so that this configuration will cause CI failures when it's broken.
@BenjaminPelletier Option 2 looks good to me.
While not providing flight intents containing flight with different priorities solved some of the failed checks, there is still one issue remaining.
The GetOpResponseDataValidationByUSS
scenario is consistently failing in one of these ways:
monitoring/uss_qualifier/suites/astm/utm/f3548_21.yaml
configuration, it will fail because the mock_uss did not send out a notification to the USS under test, which it is expected to do because the USS under test is reported to have already had a subscription on the DSS for the flight that the mock_uss created. GetOpResponseDataValidationByUSS
is moved to the head of the actions to be the first scenario to be run, the scenario fails because the mock_uss did not receive the expected request from the USS under test, despite having had a subscription on the DSS that should have caused a notification to be received.Here is a screenshot for the first case:
And here if the configuration is moved up so the scenario runs first:
My current understanding is the following:
The logs of some mock_uss's seem to indicate a failure to issue a notification due to SSL. (*)
I'll continue looking into this when time permits, but if anyone needs to urgently pick this up, the SSL issues seem to be a promising lead (I'm out of time to see if I can reproduce those at the moment).
Our mock_uss should behave correctly, so this is certainly a bug in either mock_uss or the scenario (my money would be on the scenario). A scenario should always succeed regardless of where in the test run it is executed unless there is an explicit note regarding dependencies (e.g., if a scenario documents that it is expecting a clear planning area ensured via PrepareFlightPlanners). To my knowledge, no SSL is used in the CI, so I would be surprised if this is an SSL issue -- what are you seeing that suggests SSL as a problem?
Describe the bug
When run locally with the
message_signing
configuration, the uss_qualifier runs into a failed check.To reproduce
This happens locally from
main
, on an M2 Macbook Pro.Steps to reproduce the behavior:
make restart-all
cd monitoring/uss_qualifier
./run_locally.sh configurations.dev.message_signing
Difference from expected behavior
The test
message_signing
test suite is expected to complete successfully, similarly to how it completes successfully in CI.Possible solution
Possibly related to flight intents configurations around start/end times, or the recent update of some APIs and assumptions around the mock_uss done by @mickmis . It's a wild guess though.
System on which behavior was encountered OS X, M2 Macbook pro.
Codebase information
Output of
git status
:Additional context
Attached sequence from the report: sequence.zip