astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
240 stars 50 forks source link

Flaky Trigger Engine Tests #976

Closed eddbbt closed 5 days ago

eddbbt commented 4 months ago

Sometimes Trigger Engine tests fail, this error is mostly due to an non-immediate deletion of entries in a process registry.

Usually, those have some kind of relationship with RabbitMQ (for example, see here )

This problem has been partially addressed in https://github.com/astarte-platform/astarte/pull/915. A quick fix would be something similar, a better fix will require astarte and tests to address an eventual latency.

Steps to reproduce:

It would happen also that tests passes without errors this is not a symptom of a successful fix, it is mandatory to repeat the workflow to test its effectiveness.

Please note, this kind of test failure is difficult to notice in a local environment, mostly because GitHub environment is slower enough to trigger this behavior more frequently

example of randomly failing test image

eddbbt commented 5 days ago

resolved by https://github.com/astarte-platform/astarte/pull/1017