Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky e2e integration test: Sentinel transition error log error for unknown transition: #8592

Closed
dianabarsan opened this issue Sep 27, 2023 · 1 comment · Fixed by #8623
Closed
Assignees
Labels
Flaky Indicates a flaky or unreliable test Testing Affects how the code is tested Type: Technical issue Improve something that users won't notice
Milestone

Comments

@dianabarsan
Copy link
Member

Describe the issue
Example failure: https://github.com/medic/cht-core/actions/runs/6322503058/job/17168590936#step:16:7569

@dianabarsan dianabarsan added Type: Technical issue Improve something that users won't notice Testing Affects how the code is tested Flaky Indicates a flaky or unreliable test labels Sep 27, 2023
@dianabarsan dianabarsan self-assigned this Oct 5, 2023
@dianabarsan
Copy link
Member Author

I managed to replicate this locally. I believe this is a problem with getting docker logs.
The logs I got in the test are:

[
  '2023-10-06T09:18:52.300 DEBUG: change event on doc e2e_contact_test_id seq 5391-g1AAAARFeJyl0j1OwzAUwHHTIrGwIu6ABNj5wM4E4ga08QHi50RRFOjEDBdgQarEjgStB67AKTpxg56B1rw6HjKkLJ6eFMU_Pf3tlhByXI81OYXZI9Ra3fh5zi7aGRRtiz-MCqJOpMybeqwIOfi6x29HwKMqyej-k4Nq3FN3plRnxiw9nDs44UwnItt_eBCO-jCaRl1bu-3g0cTBZQwsTYc2jv6B-x12plW49dRvfOlgWgpesqAUaOaqMWbh4XcHZzGvaJKEpEBzqZ6s3fgUrx0shKBlGZICze3DIZlIOfc73zo6LTlloANioDpFFccn3qPH5w5nCnQaFQFBUF2giuPX2m-Pv3QPDwpBNQREQXWDKo47KVcef-6yQFIA8LAsGHuF48OYtb_OH4frq7jimoVlwdhrHPjCrd_8zeERp4LC0CP0QPMHF9pWhQ ',
  '2023-10-06T09:18:52.530 INFO: Reloading configuration ',
  '2023-10-06T09:18:52.537 WARN: Disabled transition "update_clinics" ',
  '2023-10-06T09:18:52.537 WARN: Disabled transition "self_report" ',
  '2023-10-06T09:18:52.537 WARN: Disabled transition "registration" ',
  '2023-10-06T09:18:52.537 WARN: Disabled transition "accept_patient_reports" ',
  '2023-10-06T09:18:52.537 WARN: Disabled transition "accept_case_reports" ',
  ''

Clearly lacking lines, which were actually logged.
I believe this is caused by adding two listeners to the same container log at the same time, and some race condition preventing one from getting output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Flaky Indicates a flaky or unreliable test Testing Affects how the code is tested Type: Technical issue Improve something that users won't notice
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant