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

test-packet-x64-windows-2012r2-1 seems to have broken cygwin setup #1023

Closed
jerboaa opened this issue Nov 29, 2019 · 18 comments
Closed

test-packet-x64-windows-2012r2-1 seems to have broken cygwin setup #1023

jerboaa opened this issue Nov 29, 2019 · 18 comments
Assignees
Labels
Milestone

Comments

@jerboaa
Copy link

jerboaa commented Nov 29, 2019

From https://ci.adoptopenjdk.net/view/Test_upstream/job/Test_openjdk11_hs_sanity.openjdk_x86-64_windows_upstream/30/console

Fails with:

12:39:55  ./openjdk-tests/get.sh: line 14: $'\r': command not found
12:39:55  ./openjdk-tests/get.sh: line 15: set: -
: invalid option
12:39:55  set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
12:39:55  ./openjdk-tests/get.sh: line 16: $'\r': command not found
12:39:55  ./openjdk-tests/get.sh: line 35: $'\r': command not found
12:39:55  ./openjdk-tests/get.sh: line 36: $'\r': command not found
12:39:55  ./openjdk-tests/get.sh: line 37: syntax error near unexpected token `$'\r''
12:39:55  ./openjdk-tests/get.sh: line 37: `usage ()

Line 14 of get.sh is an empty line. Perhaps missing cygwin on that machine? Note that the box had labels sw.os.win over sw.os.windows which prevented it from getting any jobs. Maybe that was intentional? Anyway, a better way would be to get it properly set up.

Thanks!

@AdamBrousseau
Copy link
Contributor

See #378 (comment)

@sxa sxa added the bug label Nov 29, 2019
@sxa sxa added this to the December 2019 milestone Nov 29, 2019
@jerboaa
Copy link
Author

jerboaa commented Dec 2, 2019

Looks like #378 didn't fully resolve this?

@smlambert
Copy link
Contributor

FYI @sxa555 - we are seeing same problem on windows machines that Sej set up (using Adopt ansible playbooks) on the internal svt team Jenkins server

@sxa
Copy link
Member

sxa commented Dec 12, 2019

Hmm the default git install from the playbooks ought to be ok, but the fix I put onto that particular machines was to run this through the script console to ensure it takes effect for the jenkins user. If it's still an issue with newly provisioned machines we need to check the installation steps we're using and/or do something to add that after jenkins user creation (or add it to the test scripts!)

git config --global core.autocrlf input

It will be interesting to see if @Willsparker sees this when he gets to the testing phase of his Vagrant playbook testing, so I'll assign to him in case there are further updates required on this ...

@llxia
Copy link

llxia commented Dec 13, 2019

I also hit this machine in Grinder and it does not seem to have curl installed.

https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1386/console

09:41:36  curl -OLJSks  https://api.adoptopenjdk.net/v2/binary/nightly/openjdk8?openjdk_impl=openj9&os=windows&arch=x64&release=latest&type=jdk&heap_size=normal
09:41:36  curl error code: 127. Sleep 300 secs, then retry 1...

127 - command not found from https://stackoverflow.com/questions/1763156/127-return-code-from

Could someone disable this machine for now? Thanks

@jerboaa
Copy link
Author

jerboaa commented Dec 13, 2019

Same here:
https://ci.adoptopenjdk.net/view/Test_upstream/job/Test_openjdk8_hs_sanity.system_x86-64_windows_upstream/21/console

20:11:31  get jdk binary...
20:11:31  curl -OLJSks  https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u242-b04/OpenJDK8U-jdk_x64_windows_8u242b04_ea.zip
20:11:31  curl error code: 127. Sleep 300 secs, then retry 1...

@smlambert
Copy link
Contributor

I have marked https://ci.adoptopenjdk.net/computer/test-packet-x64-windows-2012r2-1/ with a note to refer to this issue for the reason.

@Willsparker
Copy link
Contributor

Willsparker commented Dec 16, 2019

This looks an awful lot like the issue that was on the test-azure-win2012r2 machines : #627 (comment)

So, the line endings are causing the issue with the testing, as they're being converted when git cloning the repository. I don't believe I will see this issue with my vagrant testing as this line is executed when building a JDK on a Windows vagrant VM:
https://github.com/AdoptOpenJDK/openjdk-infrastructure/blob/836917d8a89b697101ac1cdf24a072a11cb4fc88/ansible/pbTestScripts/buildJDKWin.sh#L10

However, I'll see if this does fix the issue and update :-)

@sxa
Copy link
Member

sxa commented Dec 16, 2019

We need to stop overriding things like that in the playbook test scripts as it means we're masking issues with the playbooks ;-)

@Willsparker Can you implement something using the options referred to in https://github.com/git-for-windows/git/wiki/Silent-or-Unattended-Installation to ensure that this works out of the box going forward please?

@sxa
Copy link
Member

sxa commented Dec 16, 2019

@llxia @jerboaa It's definitely not that it doesn't have curl installed. The fact that it says "curl error core" means that it managed to start curl so it isn't the shell saying it's not found ...

It looks like every time I try rto run anything with curl it just dumps me back at the command line so I'm not quite sure what's going on with that (unrelated to the crlf problem though I believe)

@sxa
Copy link
Member

sxa commented Dec 16, 2019

Upgrading curl within cygwin from 7.59.0-1 to 7.66.0-1 seems to have fixed the curl issue

@Willsparker
Copy link
Contributor

@sxa555 Does the test machine use git-for-windows to git clone the tests repository, or does it use cygwin's? If the former, then we can go down the route of adding a task to the Windows Playbook that creates the parameter file and then use it in installation. Otherwise, then we can just add a task after the cygwin install that runs the line in my playbook-test scripts.

@AdamBrousseau
Copy link
Contributor

I can speak for the machines at the Eclipse OpenJ9 farm and internally. We use Cygwin Git not Git for Windows.

@Willsparker
Copy link
Contributor

Thanks @AdamBrousseau . I've decided I'm just going to put a fix in for both of them as I can't see any benefit necessarily to having git change the line endings in our situation.

@sxa
Copy link
Member

sxa commented Dec 20, 2019

@Willsparker Do we believe we've resolved all issues on this box now?

@Willsparker
Copy link
Contributor

The playbooks have been updated now so in the future the boxes should be setup correctly. I haven't done anything to fix specifically this machine.

@sxa
Copy link
Member

sxa commented Dec 23, 2019

Have removed strawberry perl from the machine (well, it's been renamed) as per adoptium/temurin-build#1445 (comment) so assuming https://ci.adoptopenjdk.net/view/Test_openjdk/job/Test_openjdk11_hs_sanity.openjdk_x86-64_windows/107/ passes I'm going to close this on the basis that it appears to be working well now.

@sxa sxa self-assigned this Dec 23, 2019
@sxa
Copy link
Member

sxa commented Dec 23, 2019

There's a jdk_lang test failure but the job has run through unlike before so hopefully that's good enough - we can re-open if necessary

@sxa sxa closed this as completed Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants