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

Activate the selector check for the autoprint integration test as soon as possible #17090

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Oct 7, 2023

The Windows bot is usually slower than the Linux bot, and therefore text layer rendering is as well. However, the autoprint test awaited text layer rendering to complete before activating the selector check, which makes it timing-sensitive and causes it to never resolve because the page is already printed (and the printed page div removed) by then.

This commit should fix the issue by activating the selector check as soon as possible, namely as soon as the viewer appears, which should ensure we're always registering the selector check in time because we're doing it even before rendering is starting.

Fixes #16965.

…oon as possible

The Windows bot is usually slower than the Linux bot, and therefore
text layer rendering is as well. However, the `autoprint` test awaited
text layer rendering to complete before activating the selector check,
which makes it timing-sensitive and causes it to never resolve because
the page is already printed (and the printed page div removed) by then.

This commit should fix the issue by activating the selector check as
soon as possible, namely as soon as the viewer appears, which should
ensure we're always registering the selector check in time because we're
doing it even before rendering is starting.
@timvandermeij
Copy link
Contributor Author

I have been able to reproduce the Windows bot issues locally on Linux by introducing a delay (as small as 100-200 ms was already enough) before adding the .endOfContent div to the DOM. However, let's see if the bots also agree now...

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/63685f013e095b0/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/332285bacfa7225/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/63685f013e095b0/output.txt

Total script time: 5.43 mins

  • Integration Tests: Passed

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

Interesting and by the way nice find.

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/332285bacfa7225/output.txt

Total script time: 18.96 mins

  • Integration Tests: Passed

@timvandermeij timvandermeij marked this pull request as ready for review October 7, 2023 17:53
@timvandermeij
Copy link
Contributor Author

/botio-windows integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

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

Total script time: 17.37 mins

  • Integration Tests: Passed

@timvandermeij
Copy link
Contributor Author

/botio-windows integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/931ad77aec37d3b/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/931ad77aec37d3b/output.txt

Total script time: 19.37 mins

  • Integration Tests: Passed

@timvandermeij timvandermeij merged commit 60a458d into mozilla:master Oct 7, 2023
3 checks passed
@timvandermeij timvandermeij deleted the autoprint-intermittent branch October 7, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants