You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first there was celebration when the changes in #3061 allowed us to drop the node-fetch dependency. Unfortunately we learned after the fact that the change caused intermittent CI failures as described in #3063. The fix for that problem came in #3069 where we switched over to using Electron's net.fetch in the app and going back to node-fetch elsewhere.
As described in #3063 (comment), evidence suggests that nodejs/undici#2026 might have been the root cause of the symptoms described in #3063, but the fix is only available in Node v21 and newer, and Electron's current latest release is still using Node v20, and based on prior history it looks like we're probably several months away from a release that will include a Node release new enough to include the fix.
This issue serves as a reminder for us to revisit the topic when a new Electron release is available to test with. The rough summary of the steps would be to create a branch where we:
It turns out we were able to drop node-fetch dependency by the time we merged #3069 and no longer rely on the Fetch implementation that has the nodejs/undici#2026 bug. See #3069 (comment) for details.
We ended up reopening this one after all. The perf problem cited in #3105 led us to bring node-fetch back into the picture again via the changes in #3106.
That brings us back to the previous plan of record: Once there's an Electron release that's bundled with a Node v21 or newer, I can check if our CI runs reliably when using the fetch implementation in that Node, and if that's true and it also performs as well as what we're getting right now with node-fetch, we could once again drop the node-fetch dependency.
At first there was celebration when the changes in #3061 allowed us to drop the
node-fetch
dependency. Unfortunately we learned after the fact that the change caused intermittent CI failures as described in #3063. The fix for that problem came in #3069 where we switched over to using Electron'snet.fetch
in the app and going back tonode-fetch
elsewhere.As described in #3063 (comment), evidence suggests that nodejs/undici#2026 might have been the root cause of the symptoms described in #3063, but the fix is only available in Node v21 and newer, and Electron's current latest release is still using Node v20, and based on prior history it looks like we're probably several months away from a release that will include a Node release new enough to include the fix.
This issue serves as a reminder for us to revisit the topic when a new Electron release is available to test with. The rough summary of the steps would be to create a branch where we:
main
, which will once again achieve the goal of droppingnode-fetch
The text was updated successfully, but these errors were encountered: