Uh oh!
There was an error while loading. Please reload this page.
test: update FileAPI wpt - #55194
Conversation
nodejs-github-bot
commented
Sep 30, 2024
Review requested:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #55194 +/- ##
==========================================
+ Coverage 88.39% 88.40% +0.01%
==========================================
Files 652 652 Lines 186565 186565 Branches 36046 36038 -8 ==========================================
+ Hits 164916 164936 +20 + Misses 14908 14902 -6 + Partials 6741 6727 -14 🚀 New features to boost your workflow:
|
nodejs-github-bot
commented
Oct 18, 2024
aduh95
commented
Oct 22, 2024
Seemingly related test failures: |
avivkeller
commented
Oct 24, 2024
I can't reproduce the failures locally |
richardlau
commented
Oct 24, 2024
Removing
These look very much like endianness issues, especially since they're failing on AIX and LinuxONE which are both big endian platforms. |
avivkeller
commented
Oct 25, 2024
I don't have a big endian machine to test this one, but it's likely, there may be a bug 🤔. Drafting until whatever this is is resolved. |
I think it's a bug in WPT. Taking, for example, node/test/fixtures/wpt/FileAPI/blob/Blob-constructor.any.js Lines 285 to 299 in b1c015c Typed arrays are by definition
which means, e.g. that the bytes for |
KhafraDev
commented
Oct 31, 2024
This is a bug in node. I will give some more context in a little bit. |
KhafraDev
commented
Nov 1, 2024
I forgot to follow up, but here are the steps (this follows through multiple specs so I will link each one).
|
avivkeller
commented
Nov 3, 2024
Thanks for the details! I'll update these files later today, and if this is still the case, I'll open an issue in the WPT repository |
richardlau
commented
Nov 3, 2024
@KhafraDev 's analysis is that this is a Node.js bug, not a WPT one. |
avivkeller
commented
Nov 3, 2024
Oh, I misunderstood. Got it, keeping this is a draft until that's fixed |
miladfarca
commented
Feb 10, 2026
Adding some info here since this issue has resurfaced by #61750: meaning there is no byte reversing happening. The main issue is simply the use of TypedArrays which are host endian dependent. We can either make use of |
git node wpt FileAPINote one new failure:
Passing a Float16Array as element of the blobParts array should work.Note that several tests now pass that previously failed.