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

Replace XMLHttpRequest usage with the Fetch API in Driver._send #14642

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

This is another part in a series of patches that try to re-implement PR #14287 in smaller steps.

Besides converting Driver._send to use the Fetch API, this also changes the method to return a Promise to get rid of the callback function.
Please note that I purposely try to maintain the existing behaviour of re-sending the data on failure/unexpected response, including how/where the old callback function was invoked.

This is another part in a series of patches that try to re-implement PR 14287 in smaller steps.

Besides converting `Driver._send` to use the Fetch API, this also changes the method to return a `Promise` to get rid of the callback function.
Please note that I *purposely* try to maintain the existing behaviour of re-sending the data on failure/unexpected response, including how/where the old callback function was invoked.
@Snuffleupagus
Copy link
Collaborator Author

/botio browsertest

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/59cf75fa78a8adf/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Windows)


Success

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

Total script time: 20.61 mins

  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/59cf75fa78a8adf/output.txt

Total script time: 21.05 mins

  • Regression tests: FAILED
  different ref/snapshot: 7
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/59cf75fa78a8adf/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/5245d2ecb25cb49/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/5245d2ecb25cb49/output.txt

Total script time: 24.70 mins

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

Image differences available at: http://54.241.84.105:8877/5245d2ecb25cb49/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2022

From: Bot.io (Windows)


Failed

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

Total script time: 26.05 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit fee1bc6 into mozilla:master Mar 9, 2022
@timvandermeij
Copy link
Contributor

Looks much better this way; thanks!

@Snuffleupagus Snuffleupagus deleted the Driver-send-fetch branch March 10, 2022 08:50
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.

None yet

3 participants