-
-
Notifications
You must be signed in to change notification settings - Fork 54
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: fix errors in ci github action for node 8 and 9 #48
ci: fix errors in ci github action for node 8 and 9 #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we include Node@21?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah agree we should add node 21, but everything else looks good!
Added support for node@21 here |
The CI is failing for one test in node@21 and node@22. The error has nothing to do with this PR, because those node versions were not tested before and with this PR we discovered it. |
Interesting, I don't have time to look into the failure right now, but the test is pretty simple and clear so likely this is a change in node as I don't think this package ever returns a 400, so likely we either need to update/remove this test. |
How should we proceed with this PR? Can we merge it and then fix the failing test in a separate PR? Or do you want to proceed differently? |
So I just pulled this down and am poking around at it, and it is because node is sending back the 400 before it gets passed onto |
I realized the thread here didn't have enough context, sorry about that, here is what I was hoping you could look at @ShogunPanda: The test passes an invalid path of |
@wesleytodd Yes, the llhttp is the "problem". Between 8 and 9 llhttp became strict by default: invalid characters in the URL are not supported anymore and return in a parse error. |
Awesome, thanks for the direct confirmation. Now that we are sure that is the cause, I think we can just remove these tests for invalid paths since we will also be dropping node support prior to this soon and I dont think we have any other changes slated for this package which warrant trying to conditionally fix the test. @inigomarquinez do you want to do that in this PR to get it passing before we merge? Or should we do it in a separate one? I am not super opinionated either way. |
This PR fixes nyc version to 14.1.1 when running tests in node 8 or node 9.
nyc 15.x
requires ayargs
package version that requires node >=10.I've also added the latest versions of node (18, 19 and 20) to the matrix.
Related to jshttp/http-errors#108
Warning
The CI is failing for one test in node@21 and node@22. The error has nothing to do with this PR, because those node versions were not tested before and with this PR we discovered it.