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: Add UCRT based test on Appveyor #2268
Conversation
and use a wider range of ruby versions
Which isn't currently on Appveyor's MINGW-UCRT.
@larskanis is this why ruby-head on windows is failing at the moment? (example: https://github.com/sparklemotion/nokogiri/runs/2837044316?check_suite_focus=true) |
@larskanis also, we're testing every version of Ruby on windows: What versions were you thinking of when you say " I would suggest to use a wider range of ruby versions"? |
@larskanis One other note, in addition to my comments above: the real value that the appveyor builds are providing right now (given that we're testing windows thoroughly in github actions) is the 32-bit windows builds, which have been removed in this PR. If you'd like to add UCRT coverage on ruby-head, that's great. But please restore the 32-bit tests. Is there a plan to work with @MSP-Greg on UCRT support on Github Actions? |
I just opened an issue re adding the ucrt packages to the Actions Windows images, and I'll be looking at the code in |
@flavorjones Sorry for the noise - the CI didn't run without opening a pull request. But now that it run, I noticed the (failing) test run in the "upstream" github action, that you already mentioned above. So since there is already a rubyinstaller-head test run in the CI, so this PR can be considered obsolete. The reason why the "upstream" test fails, is that the wrong PATH is set and the wrong packages are installed. The PATH should be However both issues should be solved in https://github.com/MSP-Greg/setup-ruby-pkgs . |
What I meant is, that ruby-2.7 and 3.0 are close together, while ruby-2.4 and ruby-head might trigger more potential issues on the 32 bit x86 platform. |
@MSP-Greg Thanks for opening that issue! @larskanis Thanks for the additional context! I'll close this, but will also take your advice on adding versions for the 32-bit build (I was being lazy). |
It's not quite that simple. The path manipulation happens in Currently on Windows, To clarify, Also, But, if they're only using Hence, let's wait and see the response to adding ucrt to the Actions image? Regardless, I'll get the code ready. |
I added Windows ruby-head (the ucrt build) to Actions. Please see https://github.com/MSP-Greg/nokogiri/actions/runs/944724538 windows (enable, head) compiled with a lot of warnings, failed one test. windows (disable, head) also compiled with a lot of warnings, but passed all tests. Feel free to look at the test logs. As to the code, I've got debug output in it, etc. It involves patches to both Or, maybe we can wait to see if MSFT/GitHub will be adding the ucrt packages... |
see #2268 for context Co-authored-by: MSP-Greg <Greg.mpls@gmail.com>
see #2268 for context Co-authored-by: MSP-Greg <Greg.mpls@gmail.com>
see #2268 for context Co-authored-by: MSP-Greg <Greg.mpls@gmail.com>
and use a wider range of ruby versions
What problem is this PR intended to solve?
I would like to test nokogiri on rubyinstaller-head which has switched to a newer C runtime called UCRT. Unfortuantely https://github.com/MSP-Greg/setup-ruby-pkgs doesn't support UCRT yet, so that I reactivated appveyor x64 build for it. While being over there, I would suggest to use a wider range of ruby versions, so that the latest and newest supported version is checked.
Have you included adequate test coverage?
The CI run.
Does this change affect the behavior of either the C or the Java implementations?
Only C.