Closed r-c-n closed 4 weeks ago
Hello,
Thanks for reporting the issue.
I also observed pipeline/monitor
printing an event data twice on staging.
29/04/2024 17:51:54 2024-04-29 12:21:54.253457 test eb216a00c341 662f90e2a179fe14867fb86d Running None baseline-arm
29/04/2024 17:51:55 2024-04-29 12:21:55.277708 test eb216a00c341 662f90e2a179fe14867fb86d Running None baseline-arm
At first glance, It looks like more of a monitor issue than the API events as if API is generating the same event multiple times, other services should also receive them twice. But it doesn't seem like the case. Need to investigate more though.
FWIW, I also noted that kind of duplicated entries in the monitor since the beginning, but I always got the impression that that was something like a Dozzle artifact (maybe not). I think the duplicated events I posted above only appeared once in the monitor, but I'll double check the next time I catch one of these.
Hello @hardboprobot This issue is not being observed on staging anymore. Please let me know if you observe it again.
Ok, I'll keep checking during the week and I'll close the issue if I don't see anything strange.
I guess issue can be closed?
I haven't seen anything weird since, although I haven't been looking closely either. We can close this, if I bump into this again we can reopen it.
When listening to node events in staging, the listener sometimes receives duplicated events. I can't find a pattern for this and it looks random.
The code that does the listening looks like this (https://github.com/kernelci/kernelci-pipeline/blob/833c4df3a45bdb79f7d45ad0e891c9af6e423026/src/result_summary/monitor.py#L102):
Here's the subscription code (https://github.com/kernelci/kernelci-pipeline/blob/833c4df3a45bdb79f7d45ad0e891c9af6e423026/src/result_summary/monitor.py#L16):
This is an example of a duplicated event:
The first event seems to be received right after the node is updated, the second one is received four seconds later. In both cases the node contents are identical, including the timestamps.
If you need assistance on my side debugging this, let me know how I can help you.