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

ci: re-enable testing in Node.js 12 #1646

Merged
merged 4 commits into from
Sep 15, 2022
Merged

ci: re-enable testing in Node.js 12 #1646

merged 4 commits into from
Sep 15, 2022

Conversation

dominykas
Copy link
Member

@dominykas dominykas commented Sep 13, 2022

Closes #1645

@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2022

Codecov Report

Base: 94.60% // Head: 94.89% // Increases project coverage by +0.29% 🎉

Coverage data is based on head (30fe9cd) compared to base (88eca8d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1646      +/-   ##
==========================================
+ Coverage   94.60%   94.89%   +0.29%     
==========================================
  Files          53       53              
  Lines        4803     4803              
==========================================
+ Hits         4544     4558      +14     
+ Misses        259      245      -14     
Impacted Files Coverage Δ
lib/core/util.js 98.10% <0.00%> (+0.63%) ⬆️
lib/client.js 97.63% <0.00%> (+0.65%) ⬆️
lib/core/request.js 100.00% <0.00%> (+3.10%) ⬆️
lib/handler/RedirectHandler.js 94.93% <0.00%> (+3.79%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -55,7 +57,7 @@ test('request timeout with readable body', (t) => {
t.type(err, errors.HeadersTimeoutError)
})
})
})
}, { skip: nodeMajor < 14 })
Copy link
Member Author

@dominykas dominykas Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested by Matteo: #1645 (comment)

Although I wonder if there's a way to feature detect writableNeedDrain? I'm not familiar with Node's internals, but it seems I could not find a way to see if the getter for it is declared or not?

@@ -49,7 +49,7 @@
"test": "npm run test:tap && npm run test:node-fetch && npm run test:fetch && npm run test:jest && tsd",
"test:node-fetch": "node scripts/verifyVersion.js 16 || mocha test/node-fetch",
"test:fetch": "node scripts/verifyVersion.js 16 || (npm run build:node && tap test/fetch/*.js && tap test/webidl/*.js)",
"test:jest": "jest",
"test:jest": "node scripts/verifyVersion.js 14 || jest",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jest@29+, used here, does not support Node.js 12...

@dominykas dominykas marked this pull request as ready for review September 15, 2022 09:33
@dominykas
Copy link
Member Author

dominykas commented Sep 15, 2022

Seems GH actions are stuck for this one job, wasting precious build minutes? I don't have access to stop/restart that job...

@mcollina
Copy link
Member

PTAL #1652

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit dcd4e81 into nodejs:main Sep 15, 2022
@dominykas dominykas deleted the patch-1 branch September 16, 2022 08:41
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
* ci: re-enable testing in Node.js 12

* ci: bump codecov version

* test: disable failing test in node@v12

* test: disable testing in Jest in Node < 14
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
* ci: re-enable testing in Node.js 12

* ci: bump codecov version

* test: disable failing test in node@v12

* test: disable testing in Jest in Node < 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node.js 12 support?
3 participants