UBC-Thunderbots / Software

Robot Soccer Playing AI
http://www.ubcthunderbots.ca
GNU Lesser General Public License v3.0
47 stars 98 forks source link

Fix BallPlacement in CI* #3208

Closed itsarune closed 1 month ago

itsarune commented 1 month ago

Description

*maybe

The issue is likely that WaitState uses clock time while the simulation time is running much faster on CI. If we look at the CI replay logs, we see this in the failing test:

https://github.com/UBC-Thunderbots/Software/assets/42703774/289595fc-f724-467a-bd02-73b39d313ffc

The bug: BallPlacementPlayFSM stays in WaitState for longer than 3.0 seconds. We use system time to decide how long to stay in WaitState and I think CI time is passing much faster than system time. In other words, 3.0 seconds of system time is longer than the time passed during simulations, causing us to fail the validation within the timeout of the test.

Testing Done

Resolved Issues

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered