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

[uss_qualifier] submit_flight_intent test step raises if flight intent ends in the past #650

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Apr 22, 2024

Add a check and raise if the flight intent that will be injected ends in the past, while also double the default duration for some configured flight_intents (see below for details)

This fixes #648

Open questions:

  • is this the correct place for checking the end time?
  • is raising a ValueError the correct approach?
  • is the new default duration of 10 minutes reasonable? Or should we leave it unchanged, and instruct users to increase the duration if they run into the raised error?

Testing

Tested updating the default duration in monitoring/uss_qualifier/test_data/flight_intents/standard/invalid_flight_intents.yaml to 5 seconds: this causes the error to be raised locally when running the f3548 self-contained scenario

@Shastick Shastick force-pushed the 648-fix-fi-length branch 3 times, most recently from 7899eaa to f8c460d Compare April 22, 2024 15:19
@Shastick Shastick marked this pull request as ready for review April 22, 2024 15:28
@Shastick Shastick marked this pull request as draft April 22, 2024 15:37
@Shastick
Copy link
Contributor Author

Note: taken back to draft until GetOpResponseDataValidationByUSS is properly covered as well

@BenjaminPelletier
Copy link
Member

I added some suggestions here

…#16)

These suggestions for [650 on the interuss
repo](interuss#650) primarily:

* Adjust the datetime comparison approach -- we don't want to mess with
time zones, or generally Python's suboptimal time treatment; we can
leave that to the `arrow` module we already import and use for many
other similar things
* Expand and make public the function to compute an end time of volume
or volumes
* Change StartOfTestRun to StartOfScenario in most test data -- I think
this is the most likely thing to fix most of the problems as it
decouples timing for a scenario from the rest of the scenarios in a test
suite/run
@Shastick
Copy link
Contributor Author

Thanks for the suggestions, I took them over.

@BenjaminPelletier BenjaminPelletier merged commit 5ab499f into interuss:main Apr 23, 2024
19 checks passed
github-actions bot added a commit that referenced this pull request Apr 23, 2024
…t ends in the past (#650)

* [uss_qualifier] submit_flight_intent test step raises if flight intent ends in the past

* Update datetime approach and change StartOfTestRun to StartOfScenario (#16)

These suggestions for [650 on the interuss
repo](#650) primarily:

* Adjust the datetime comparison approach -- we don't want to mess with
time zones, or generally Python's suboptimal time treatment; we can
leave that to the `arrow` module we already import and use for many
other similar things
* Expand and make public the function to compute an end time of volume
or volumes
* Change StartOfTestRun to StartOfScenario in most test data -- I think
this is the most likely thing to fix most of the problems as it
decouples timing for a scenario from the rest of the scenarios in a test
suite/run

---------

Co-authored-by: Benjamin Pelletier <[email protected]> 5ab499f
github-actions bot added a commit to Orbitalize/monitoring that referenced this pull request Apr 23, 2024
…t ends in the past (interuss#650)

* [uss_qualifier] submit_flight_intent test step raises if flight intent ends in the past

* Update datetime approach and change StartOfTestRun to StartOfScenario (#16)

These suggestions for [650 on the interuss
repo](interuss#650) primarily:

* Adjust the datetime comparison approach -- we don't want to mess with
time zones, or generally Python's suboptimal time treatment; we can
leave that to the `arrow` module we already import and use for many
other similar things
* Expand and make public the function to compute an end time of volume
or volumes
* Change StartOfTestRun to StartOfScenario in most test data -- I think
this is the most likely thing to fix most of the problems as it
decouples timing for a scenario from the rest of the scenarios in a test
suite/run

---------

Co-authored-by: Benjamin Pelletier <[email protected]> 5ab499f
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.

FlightIntentValidation's operational intent(s) are not long enough
2 participants