-
Notifications
You must be signed in to change notification settings - Fork 14
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
Reportportal run doesn't end until timeout since version 5.0.3 #46
Comments
Hello @StephaneColson ! |
Hello @StephaneColson , |
Hi @oranje322 I will check when the next version will be released. Currently using a workaround: downgrade to version 5.0.2 😉 |
@StephaneColson , |
@oranje322 Here's
I didn't find any error log and I'm not sure to understand what you mean with |
@StephaneColson , We have released version 5.0.4, can you recheck? |
I let it run...and timeout (compared to the one above #137 with version 5.0.2) |
@StephaneColson , @marverix |
@oranje322 import { expect, Page, test } from "@playwright/test";
test("Sign In Button should be visible on the login page", async ({ page }) => {
await page.goto('/');
const signInButton = page.locator("button", { hasText: "Sign in" });
await expect(signInButton).toBeEnabled();
}); The config {
"use": {
"baseURL": "https://**********************/",
"headless": true,
"ignoreHTTPSErrors": true,
"actionTimeout": 10000,
"navigationTimeout": 10000,
"screenshot": "only-on-failure",
"trace": "on-first-retry"
},
"expect": {
"timeout": 5000
},
"timeout": 30000,
"forbidOnly": false,
"retries": 0,
"reporter": [
[
"list"
],
[
"@reportportal/agent-js-playwright",
{
"token": "**********************",
"endpoint": "**********************",
"project": "**********************",
"launch": "Playwright Tests",
"description": "Integration Tests written with Playwright",
"includeTestSteps": true,
"debug": false
}
]
],
"projects": [
{
"name": "chromium",
"use": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.15 Safari/537.36",
"screen": {
"width": 1920,
"height": 1080
},
"viewport": {
"width": 1280,
"height": 720
},
"deviceScaleFactor": 1,
"isMobile": false,
"hasTouch": false,
"defaultBrowserType": "chromium"
}
},
{
"name": "firefox",
"use": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0.2) Gecko/20100101 Firefox/98.0.2",
"screen": {
"width": 1920,
"height": 1080
},
"viewport": {
"width": 1280,
"height": 720
},
"deviceScaleFactor": 1,
"isMobile": false,
"hasTouch": false,
"defaultBrowserType": "firefox"
}
}
],
"testDir": "**********************/end-to-end-tests/tests"
} |
Hello @marverix ! |
@marverix @StephaneColson |
@oranje322 The Jenkins/CI is using Ubuntu and node 16 |
@oranje322 Locally Ubuntu 20.04 and NodeJS 16. |
Hello guys @StephaneColson @marverix ! |
Hello @AmsterGet , |
Hello @AmsterGet it seems ok now. Thank you |
@StephaneColson @marverix |
Hi @AmsterGet I thought it was ok but it's not. This morning I found a running process (started 4 hours ago, the playwright tests are ended since a long time ago). All other runs ended after more than 4 hours. Not all, some runs that are completely successful ended on the Report Portal side when the run was finished in Jenkins (30 minutes). Could the issue be only for runs with failing tests? |
Hi @StephaneColson ! |
I'm seeing some similar behaviour to this. I downgraded to 5.0.2 and no longer have the issue so it might be related. I'm finding that when I use test.skip() in my test and have retries specified that my run never completes. Very simple example for this:
In my playwright config I have set If I run on version 5.03 or 5.05 then the run never completes. If I run on version 5.02 then the run completes. Where retries isn't specified then the run completes. |
Thanks a lot, this helped to investigate a bug |
Hello guys! |
Hi @AmsterGet I'm not working anymore on the project but we could ask to @mockersf 👋 |
Hi @mockersf! |
Hello, I work with @mockersf and I take back the ticket opened by @StephaneColson I have upgraded the agent to 5.0.7, but we still have the issue 😢 Other problem, ReportPortal shows us 2 runs with one have no test evaluation 🤔 Any idea ? |
Hello @pgalmes ! |
Maybe I've found in which contidions ReportPortal run don't end properly
I reproduce it with this small test
If i run this test with no retry, it ended in Jenkins with FAILURE status => noRetry.txt If i run this test with one retry, it ended in Jenkins with UNSTABLE status => oneRetry.txt If i run this test with one retry but without beforeAll step, it ended in Jenkins with FAILURE status => withoutBeforeAll.txt If we focus on the Unstable test with one retry, we noticed 2 runs (instead of just one) The first one, which is finished, show me the three tests with the good status The second one, which didn't stopped properly, show me only the second and the third thest which haven't been evaluated (and have been skipped). I think it waits a return code which never arrives and that's why it falls in timeout. I think now you have a better idea of what is going wrong 🤞 |
@pgalmes Thank you!! |
Hello @pgalmes ! |
Hi @AmsterGet , Thanks a lot ! |
@pgalmes |
Awesome! |
Since version 5.0.3, even when our Jenkins runs are finished, they appear still pending in the reportportal until the defined timeout.
I just downgraded to version 5.0.2 and we don't have the issue anymore.
Is there something specific to configure since 5.0.3 on our side? I know that
RP should receive FinishLaunchRQ, in order to finish launch on UI.
but we didn't change anything.The text was updated successfully, but these errors were encountered: