Closed spacey-sooty closed 10 months ago
Could be a unit test issue similar to this
I've started to get this more regularly inclining me to think we should probably test this on a RoboRIO to make sure it's just a test issue not an actual bug in the behaviour system
Also it's not only the Race test which fails but the all test fails as well with this message:
[ RUN ] ConcurrentBehaviourTest.All
Behaviour missed deadline. Reduce Period. Dt=0.026024 Dt(deadline)=0.02. Bhvr: <unnamed behaviour>
/home/spacey_sooty/Documents/frc/2024-Crescendo/wombat/src/test/cpp/test_behaviours.cpp:180: Failure
terminate called without an active exception
Value of: chain->Tick()
Actual: false
Expected: true
I think this is caused by a bug in the race functions so we should look into that
This tests is broken entirely on someones computer
Describe the bug In a rare edgecase the tests for behaviours fail due to an exception where tick returns false instead of true.
Environment The only environment I have seen this occur on are Ubuntu based Linux distributions
To Reproduce This cannot be consistently reproduced but in order to attempt it run
./gradlew build
on an Ubuntu based LInux distributionExpected behavior This test should never fail
Additional context