-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Issues with windows runner - windows-latest #141
Comments
The current issue only happened to jdk8 and jdk11, which don't have the repo Need to see the step of |
Current failure was caused by the workaround to git clone system and openjdk material, which is git clone jdk with wrong repo https://github.com/adoptium/jdk${version}.git. Lines 290 to 294 in fa4002f
Update https://github.com/adoptium/jdk${version}.git to https://github.com/adoptium/jdk${version}u.git can fix this issue. However the workaround means run-aqa will only work with master branch, openjdk, aqa-systemtest, STF cann't be customized or specified. |
Remove the workaround the failure would be the same as https://github.com/adoptium/run-aqa/actions/runs/3016813951/jobs/4849941896. job failed as no bash available. Github runner windows-latest has [Bash 5.1.16(1)-release] installed (https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md). With Cygwin running bash it looks good The problem happened when:
The error message suggest:
This only happened to github runner, which installs cygwin to runner and edit the PATH environment variable to add the Cygwin. Jenkins windows agent in adoptium are also installed cygwin and run the tests with cygwin, but didn't have the same issue. |
Hi! According to my (limited) understanding, ProcessBuilder passes the command as However, when running directly in actions or usings actions/exec library, it calls https://github.com/actions/toolkit/blob/b36e70495fbee083eb20f600eafa9091d832577d/packages/io/src/io.ts#L231 internally. This function searches the path manually for trying to find tool in path so it works when invoking without java/ant. If this understanding is correct, then either the process builder code in TKG will need to be updated to do the same kind of resolving the command from the path or alternatively the full path to bash executable will need to be defined. I am not sure why it works in jenkins but if you could point me to where that is setup, I would like to look into it and figure out why. |
Our Jenkins nodes are setup using Ansible playbooks (found in the infrastructure repository https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml). |
Thanks for the link, @smlambert. Another thing I just noticed is that the Note that these logs have the same WSL error message mentioned earlier in this issue and the one we can also see in |
thanks for digging into it @ultramancoder ! |
Hi again! I looked at https://github.com/adoptium/infrastructure/blob/master/ansible/inventory.yml to find what windows server adoptium's temurin builds were using. Github's windows-latest points to Windows 2022 server. In adoptium's windows build farm, there are mostly Windows 2012 servers, a few Windows 2016 Servers and 1 Windows 2019 server. Since there are no Windows 2022 servers there, this issue probably never showed up there. |
I also looked into reproducing the errors locally and it does fail there as well. I modified the Might I suggest to stick with Windows 2016 Runners till the adoptium build farm's have a 2022 server? |
Hi! One more interesting development, some checks pass on windows-latest when impl is switched to hotspot instead of openj9 in the workflow. https://github.com/ultramancoder/run-aqa/actions/runs/3434222084/jobs/5725336952 . The ones that fail, fail on all platforms with an error about test groups. |
windows-2016 is not supported any more. We'd like to update to windows-latests.
The issue with windows-latests:
C:\cygwin64\bin\make.exe' failed with exit code 2
with all jdk_version , which suggests it might be an issue related with cygwin on windows-latest.https://github.com/adoptium/run-aqa/actions/runs/3016813951/jobs/4849941896
Feels like it's not a cygwin with windows-latest issue any more.
The text was updated successfully, but these errors were encountered: