agent-js-playwright icon indicating copy to clipboard operation
agent-js-playwright copied to clipboard

The failed tests appear repeated instead of appearing grouped and with the corresponding retries

Open lucas-delafuente-deel opened this issue 1 year ago • 14 comments

Hi RP team! I'm using Report Portal with Playwright and I have the following issue: The failed tests appear repeated instead of appearing grouped and with the corresponding retries:

Screenshot 2024-01-25 at 16 15 47

The 'Unique test case id' is the same for both. The test in my console and in the Playwright report appear grouped together.

Versions:

  • "@playwright/test": "^1.40.1"
  • "@reportportal/agent-js-playwright": "^5.1.6"

Any idea what the problem could be? Thanks in advance.

lucas-delafuente-deel avatar Jan 25 '24 19:01 lucas-delafuente-deel

Hi @lucas-delafuente-deel. We are currently working to resolve this issue. Does this issue occur constantly or occur with some frequency? If you have case that reproduces this issue exactly, could you share that information with us?

AliakseiLiasnitski avatar Jan 26 '24 08:01 AliakseiLiasnitski

Hi @AliakseiLiasnitski, it is weird because I used report portal in the past and it worked fine, I will try with old versions of the report portal agent.

  • It's not always with the same tests, it seems to be something random, I couldn't find a pattern (update -I confirm that it always happens with the first test that fails, the following ones that fail are grouped well)
  • Example: if I run 60 tests and 4 tests are unstable and have two or one retries, one of those tests appears repeated instead of grouped, from what I saw it seems that it is always the first test that fails and has retries, that one doesn't appear repeated, the rest of flaky or fail test appear grouped with their retries.

First test is not grouped, second test is grouped: Screenshot 2024-01-26 at 09 59 18

lucas-delafuente-deel avatar Jan 26 '24 12:01 lucas-delafuente-deel

I appreciate the work you do to solve this bug 🚀 , I was wondering if there is any estimate of when the solution will be available?

Thank you so much.

lucas-delafuente-deel avatar Jan 26 '24 13:01 lucas-delafuente-deel

Hello @lucas-delafuente-deel Thank you very much for your observations, I will take into account everything you wrote above.

We currently do not know when this issue will be resolved, but we will keep you updated and write to you as soon as we resolve this issue.

AliakseiLiasnitski avatar Jan 29 '24 09:01 AliakseiLiasnitski

Hi @lucas-delafuente-deel We have improved our approach to retry tests and released these changes. To solve your problem, I would like to ask you to install the latest version of @reportportal/agent-js-playwright (5.1.7) and check if everything works correctly for you. If this error continues to occur, please contact us.

AliakseiLiasnitski avatar Feb 21 '24 08:02 AliakseiLiasnitski

Hi team! thanks for the update 🚀 , I will try with that version!

lucas-delafuente-deel avatar Feb 21 '24 14:02 lucas-delafuente-deel

We are testing @reportportal/agent-js-playwright (5.1.7), so I will send the update in a few days to see if we continue to see the issue.

lucas-delafuente-deel avatar Feb 22 '24 19:02 lucas-delafuente-deel

Hi @lucas-delafuente-deel ! Thanks for testing the latest version. Have you encountered any occurrences of this issue in the meantime?

AmsterGet avatar Mar 01 '24 16:03 AmsterGet

Hi, sorry for the delay! We still have the same issue and in addition, we are not having the screenshot and the trace in the tests.

lucas-delafuente-deel avatar Mar 06 '24 12:03 lucas-delafuente-deel

Hi @lucas-delafuente-deel ! Sad to hear that. Looks like we have another cause for this issue. Can you please tell us if you are using manual provisioning of testCaseId? We have a hunch that this may be related.

Regarding the missing screenshot and trace. Are they missing for all tests or for some of them? Are there any errors in the console output?

AmsterGet avatar Mar 06 '24 12:03 AmsterGet

Sorry for the delay. The issue about the screenshot and trace are related to minIO from Report Portal, our devops is investigating that.

I will try with manual provisioning of testCaseId.

lucas-delafuente-deel avatar Mar 12 '24 18:03 lucas-delafuente-deel

Hello @lucas-delafuente-deel ! Hope you are doing well! Do you have any news related to this issue? Does it still exist?

AmsterGet avatar May 10 '24 10:05 AmsterGet

Hi @AmsterGet sorry for the delay, yes, we are still seeing the issue (less frequently than before) , I haven't had time to test the approach with testCaseId yet 🥲

lucas-delafuente-deel avatar May 13 '24 20:05 lucas-delafuente-deel

@lucas-delafuente-deel Understood. Anyway, if you can gather more information related to the problem, please share it with us. Ideally, it would be great to have a reproducible example to help us identify the issue.

AmsterGet avatar May 16 '24 14:05 AmsterGet