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

Update datetime approach and change StartOfTestRun to StartOfScenario #16

Merged

Conversation

BenjaminPelletier
Copy link

These suggestions for 650 on the interuss repo 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

time_ends = [end_time_of(v) for v in volume_or_volumes]
if not time_ends:
return None
elif any(t is None for t in time_ends):

Choose a reason for hiding this comment

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

Ah, that's an important corner case to cover

@Shastick Shastick merged commit e129a08 into Orbitalize:648-fix-fi-length Apr 23, 2024
18 checks passed
Shastick added a commit 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]>
github-actions bot added a commit 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
@BenjaminPelletier BenjaminPelletier deleted the 648-fix-fi-length branch April 23, 2024 20: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