nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
10.05k stars 1.3k forks source link

Integration Test API: Latest FSW Time Getter is incorrect #2641

Open LeStarch opened 6 months ago

LeStarch commented 6 months ago
F´ Version
Affected Component

Because it was demonstrated that data objects can come in a different receive order than they were created in FSW, the get_latest_time() method is not correct. When implemented, it was assumed that all history items would be enqueued in the same order that they were created. This is no longer a safe assumption. Effectively get_latest_time() is returns an approximation of the latest time.

I see two options to address this:

  1. Replacing the Ram Histories in the GDS with Chronological Histories
  2. Having the TestAPI be subscribed to all data objects and calculate latest time as items are enqueued.