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

Fix integration test 'PageOpen and PageClose actions' #15308

Closed
wants to merge 1 commit into from

Conversation

calixteman
Copy link
Contributor

No description provided.

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/c5e61c1b0739c07/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/c2b62f85a32a7ba/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/c5e61c1b0739c07/output.txt

Total script time: 0.00 mins

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/c2b62f85a32a7ba/output.txt

Total script time: 4.83 mins

  • Integration Tests: Passed

@calixteman
Copy link
Contributor Author

/botio-windows integrationtest

1 similar comment
@calixteman
Copy link
Contributor Author

/botio-windows integrationtest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/74814f393270ee0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/74814f393270ee0/output.txt

Total script time: 11.88 mins

  • Integration Tests: FAILED

@timvandermeij
Copy link
Contributor

timvandermeij commented Aug 14, 2022

This integration test sadly fails pretty much all the time now, but only on Windows somehow. Should we perhaps disable it on Windows only for the time being given that this PR doesn't seem to solve the issue? Note that there are more integration tests that can fail, but those are more intermittent.

@calixteman
Copy link
Contributor Author

This PR likely fix an issue: I saw an exception when I ran the test in the vm.
And a strange fact is that I ran successfully the test several times in the vm.
The failure is likely due to an un-executed PageOpen callback and I really wonder why.
My feeling is that there is a bug somewhere (not in the test) and we should figure out it.
We can disable the test but I think it's a good way to forget it.

@timvandermeij
Copy link
Contributor

Oh, definitely. If the issue in this test is indeed composed of multiple issues, fixing one of them is already great! In that case we can indeed try this to at least hopefully decrease the frequency of the issue.

@timvandermeij
Copy link
Contributor

/botio-windows integrationtest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @timvandermeij received. Current queue size: 0

Live output at: http://54.193.163.58:8877/6337ca2fce090d3/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/6337ca2fce090d3/output.txt

Total script time: 9.71 mins

  • Integration Tests: FAILED

@timvandermeij
Copy link
Contributor

/botio-windows integrationtest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @timvandermeij received. Current queue size: 1

Live output at: http://54.193.163.58:8877/e86f36571b96553/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/e86f36571b96553/output.txt

Total script time: 9.96 mins

  • Integration Tests: FAILED

@@ -534,10 +534,15 @@ describe("Interaction", () => {
page,
getSelector(refOpen),
async () => {
const sel = getSelector(refOpen);
await page.waitForSelector(sel, {
timeout: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this safe in the sense that if this selector would not trigger we would basically be waiting here forever? Or is there a global timeout on the Jasmine tests or so?

@timvandermeij
Copy link
Contributor

If the comment above is answered, I'm fine with merging this if it fixes an exception you encountered, but in that case I'd propose we reword the commit message to Fix exception in PageOpen and PageClose actions integration test since it otherwise implies that the entire test is fixed which isn't the case yet.

@timvandermeij
Copy link
Contributor

@calixteman Ping for the above so we can hopefully get this landed to at least improve the situation for this failing test.

@calixteman
Copy link
Contributor Author

I'll take the time "asap" to fix this stuff.

@timvandermeij
Copy link
Contributor

@calixteman Gentle ping for this; if it's still useful it'd be nice to get this merged given the many integration test failures we have.

@calixteman calixteman closed this Jul 28, 2023
@calixteman calixteman deleted the fix_doc_action_test branch July 28, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants