Skip to content

flaky test: test_fault_injection_node.test.py #7772

Open
@xmfcx

Description

@xmfcx

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

https://github.com/autowarefoundation/autoware.universe/actions/runs/9743179438/job/26886066688#step:16:11812

It has been passing successfully for a long while but it failed randomly here.

FAIL: test_receive_multiple_message_simultaneously (fault_injection.TestFaultInjectionLink)

2: Traceback (most recent call last):
2:   File "/__w/autoware.universe/autoware.universe/simulator/fault_injection/test/test_fault_injection_node.test.py", line 175, in test_receive_multiple_message_simultaneously
2:     self.assertEqual(stat.level, DiagnosticStatus.ERROR)
2: AssertionError: b'\x00' != b'\x02'

Failure line:
https://github.com/autowarefoundation/autoware.universe/blob/c1dbd5bf938fbdd9e91505cc5344020fbf4ea752/simulator/fault_injection/test/test_fault_injection_node.test.py#L175

History:
image

cc. @KeisukeShima @TomohitoAndo

Expected behavior

Test should have passed.

Actual behavior

But it failed.

Steps to reproduce

colcon test --event-handlers console_cohesion+ --mixin coverage-pytest --packages-select fault_injection

This command passed on my machine and also passed in CI many times.

Update: See this comment: #7772 (comment)

But it failed in this one instance here.

Versions

No response

Possible causes

Maybe we can increase evaluation_time from 0.5s to 2s to compensate for slow test environment.

https://github.com/autowarefoundation/autoware.universe/blob/c1dbd5bf938fbdd9e91505cc5344020fbf4ea752/simulator/fault_injection/test/test_fault_injection_node.test.py#L70

Additional context

No response

Metadata

Metadata

Assignees

Labels

component:planningRoute planning, decision-making, and navigation. (auto-assigned)component:simulationVirtual environment setups and simulations. (auto-assigned)status:staleInactive or outdated issues. (auto-assigned)type:bugSoftware flaws or errors.

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions