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

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

Open
lucas-delafuente-deel opened this issue Jan 25, 2024 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@lucas-delafuente-deel
Copy link

lucas-delafuente-deel commented Jan 25, 2024

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.

@AliakseiLiasnitski
Copy link
Contributor

AliakseiLiasnitski commented Jan 26, 2024

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?

@lucas-delafuente-deel
Copy link
Author

lucas-delafuente-deel commented Jan 26, 2024

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

@AmsterGet AmsterGet added the bug Something isn't working label Jan 26, 2024
@lucas-delafuente-deel
Copy link
Author

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.

@AliakseiLiasnitski AliakseiLiasnitski self-assigned this Jan 29, 2024
@AliakseiLiasnitski
Copy link
Contributor

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
Copy link
Contributor

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.

@lucas-delafuente-deel
Copy link
Author

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

@lucas-delafuente-deel
Copy link
Author

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.

@AmsterGet
Copy link
Member

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

@lucas-delafuente-deel
Copy link
Author

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.

@AmsterGet
Copy link
Member

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?

@lucas-delafuente-deel
Copy link
Author

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.

@AmsterGet
Copy link
Member

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

@lucas-delafuente-deel
Copy link
Author

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 🥲

@AmsterGet
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants