Skip to content

Convert ChunkedStreamManager.prototype.sendRequest to an asynchronous method#20660

Merged
timvandermeij merged 1 commit intomozilla:masterfrom
Snuffleupagus:ChunkedStream-async-sendRequest
Feb 20, 2026
Merged

Convert ChunkedStreamManager.prototype.sendRequest to an asynchronous method#20660
timvandermeij merged 1 commit intomozilla:masterfrom
Snuffleupagus:ChunkedStream-async-sendRequest

Conversation

@Snuffleupagus
Copy link
Collaborator

This is not only shorter, but (in my opinion) it also simplifies the code.

Note: In order to keep the five different BasePDFStreamRangeReader implementations consistent, we purposely don't re-factor the PDFWorkerStreamRangeReader class to support for await...of iteration.

…us method

This is not only shorter, but (in my opinion) it also simplifies the code.

*Note:* In order to keep the *five* different `BasePDFStreamRangeReader` implementations consistent, we purposely don't re-factor the `PDFWorkerStreamRangeReader` class to support `for await...of` iteration.
@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.82%. Comparing base (b6d0284) to head (59fbad6).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/core/chunked_stream.js 84.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20660      +/-   ##
==========================================
+ Coverage   59.79%   59.82%   +0.02%     
==========================================
  Files         169      169              
  Lines       90158    90151       -7     
==========================================
+ Hits        53907    53929      +22     
+ Misses      36251    36222      -29     
Flag Coverage Δ
unittestcli 59.82% <84.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Snuffleupagus Snuffleupagus marked this pull request as ready for review February 19, 2026 08:40
@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/5b36fb62edd21b5/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/ec6dcea1664590f/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/5b36fb62edd21b5/output.txt

Total script time: 60.00 mins

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

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

Total script time: 84.35 mins

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

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

@timvandermeij timvandermeij merged commit 82de224 into mozilla:master Feb 20, 2026
12 checks passed
@timvandermeij
Copy link
Contributor

Looks good; thank you for simplifying this code!

@Snuffleupagus Snuffleupagus deleted the ChunkedStream-async-sendRequest branch February 20, 2026 22:07
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