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

[api-minor] Move the page reference/number caching into the API #18001

Merged
merged 3 commits into from Apr 29, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

Rather than having to handle this manually throughout the viewer, this functionality can instead be moved into the API which simplifies the code slightly.

@Snuffleupagus
Copy link
Collaborator Author

/botio xfatest

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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/519f5578a5b4b1b/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/85762f08932f492/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/519f5578a5b4b1b/output.txt

Total script time: 27.12 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 22
  different first/second rendering: 2

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/85762f08932f492/output.txt

Total script time: 42.63 mins

  • Unit tests: FAILED
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 5

Image differences available at: http://54.193.163.58:8877/85762f08932f492/reftest-analyzer.html#web=eq.log

We no longer need the helper method to *potentially* call itself once data is available, and can instead take full advantage of async/await by inlining the code.
Rather than having to handle this *manually* throughout the viewer, this functionality can instead be moved into the API which simplifies the code slightly.
…984 follow-up)

After the changes in PR 17984 this code can no longer be reached, since the destination is now validated on the worker-thread.
@timvandermeij timvandermeij merged commit 49b3881 into mozilla:master Apr 29, 2024
8 of 9 checks passed
@timvandermeij
Copy link
Contributor

Thank you for improving this! To me it also makes more sense to handle this in the API instead of in the viewer.

@Snuffleupagus Snuffleupagus deleted the api-pageRefCache branch April 30, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants