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

[test/driver.js] Ensure that Image src is set *after* the callbacks in resolveImages #13675

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

While I cannot guarantee that this will fix the recent intermittents, this patch really shouldn't hurt.

By setting the Image src first, there's a small possibility that the Image is loaded before we've had a change to attach the onload/onerror callbacks which may cause the Promise to remain in a pending state.
Note that prior to PR #13641 we didn't correctly await all image resources to actually load, which could explain the very recent intermittent test-failures.

… in `resolveImages`

*While I cannot guarantee that this will fix the recent intermittents, this patch really shouldn't hurt.*

By setting the Image `src` first, there's a small possibility that the Image is loaded *before* we've had a change to attach the `onload`/`onerror` callbacks which may cause the Promise to remain in a pending state.
Note that prior to PR 13641 we didn't correctly await all image resources to actually load, which could explain the very recent intermittent test-failures.
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.

I don't know either if it'll fix the issues but it's definitely an interesting find

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2021

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.67.70.0:8877/7d3c2ce66de405f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2021

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://3.101.106.178:8877/dd684a5d775e961/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/dd684a5d775e961/output.txt

Total script time: 34.84 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 8
  different first/second rendering: 1

Image differences available at: http://3.101.106.178:8877/dd684a5d775e961/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/7d3c2ce66de405f/output.txt

Total script time: 24.05 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 614
  different ref/snapshot: 6
  different first/second rendering: 1

Image differences available at: http://54.67.70.0:8877/7d3c2ce66de405f/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

Apparently this didn't help :-(
Should we actually bother to land this, or just abandon the patch?

@marco-c
Copy link
Contributor

marco-c commented Jul 6, 2021

Should we actually bother to land this, or just abandon the patch?

I'd say landing it doesn't hurt and might be useful, so... let's land it?

@Snuffleupagus Snuffleupagus merged commit b3de26f into mozilla:master Jul 6, 2021
@Snuffleupagus Snuffleupagus deleted the driver-image-src-last branch July 6, 2021 09:10
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