Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Modify Outerloop job in groovy to run on Ubuntu and Windows.#6028

Merged
Priya91 merged 3 commits into
dotnet:dev/negotiatestreamfrom
Priya91:negotiatestream
Feb 17, 2016
Merged

Modify Outerloop job in groovy to run on Ubuntu and Windows.#6028
Priya91 merged 3 commits into
dotnet:dev/negotiatestreamfrom
Priya91:negotiatestream

Conversation

@Priya91
Copy link
Copy Markdown
Contributor

@Priya91 Priya91 commented Feb 11, 2016

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 11, 2016

@dotnet-bot Test OuterLoop Ubuntu Debug

@@ -0,0 +1,97 @@
#!/bin/bash

OS=`cat /etc/os-release | grep "PRETTY_NAME" | sed 's/PRETTY_NAME=//g' | sed 's/["]//g' | awk '{print $1}'`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why parse PRETTY_NAME when you can just read ID from os-release?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@rahulkotecha Can you please address the PR comments on networking scripts. Thanks!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure.. Rahul can take care of all these changes when he sends his PR with the updates required for other distros as well

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

took care of these changes and changes required for other Linux distros as part of: rahulkotecha-zz@e8acf95
Thanks!

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 11, 2016

Need dotnet/dotnet-ci#164 to test the ubuntu outerloop changes.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 11, 2016

@dotnet-bot Test OuterLoop Ubuntu Debug

@mmitche
Copy link
Copy Markdown
Member

mmitche commented Feb 11, 2016

@Priya91 Your netci changes will not affect any runs here. This will need to be merged first.

Question: Are there implications of running multiple runs on the same machine at the same time here?

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 11, 2016

@mmitche Yes we don't want to do that. But we run only one run per machine at a time right?

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 11, 2016

Also it would be best if we can bring this setup step further down below to xunit setup, as these tests will surely fail on local outerloop dev box runs.

@mmitche
Copy link
Copy Markdown
Member

mmitche commented Feb 11, 2016

In the auto-images, yes

Comment thread netci.groovy Outdated

def osShortName = ['Windows 10': 'win10', 'Windows 7' : 'win7', 'Windows_NT' : 'windows_nt']
def osShortName = ['Windows 10': 'win10', 'Windows 7' : 'win7', 'Windows_NT' : 'windows_nt', 'Ubuntu' : 'ubuntu']
def outerloopOSs = ['Windows 10', 'Windows 7', 'Windows_NT', 'Ubuntu']
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you change this to Ubuntu14.04 to be more specific (since we have 15.10 now too)

@mmitche
Copy link
Copy Markdown
Member

mmitche commented Feb 11, 2016

LGTM besides the minor comment.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 12, 2016

@mmitche Incorporated the 14.04 changes. @rahulkotecha @vijaykota Can you please check if executing the script as a test class initialization works? I have created a fixture template for it to test, or would you prefer it to be in jenkins setup ?

cc @joshfree

@vijaykota
Copy link
Copy Markdown
Contributor

Can you please check if executing the script as a test class initialization works

We will try this out. I believe this should work since the Jenkins user now has sudo perms.

LGTM for Priya's changes. Thanks!

@stephentoub
Copy link
Copy Markdown
Member

@dotnet-bot test this please

@joshfree
Copy link
Copy Markdown
Member

The test initialization needs to be separate from Jenkins infrastructure - so that developers can execute the test outside of a Jenkins CI environment.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 12, 2016

This needs dotnet/dotnet-ci#173 before merge.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 12, 2016

The Outerloop ubuntu/OSX tests are failing because they are not being run sudo. The netci.groovy changes in the PR are not used for PR testing. These changes will be reflected after merge.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 12, 2016

@dotnet-bot test this please

@kapilash
Copy link
Copy Markdown
Contributor

@Priya91

Can you please check if executing the script as a test class initialization works? I have created a fixture template for it to test, or would you prefer it to be in jenkins setup ?

I tried running it as a fixture, but could not succeed. I need to execute the script as a super user, otherwise it would fail to install the required packages or setup the KDC.

But trying to run the tests as super user via sudo ./corerun xunit.console.exe <dll-name> results in coreclr_initialize failed - status: 0x8007001f

I could be wrong but this seems to have something to do with the permissions of the assemblies that are generated using our build.

Is there any reason to expect that this issue would not occur on CI machines?

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 16, 2016

@kapilash The script does not have to be run as sudo, since I have made the individual instructions in the script that need to be elevated as sudo. Or if the whole script has to be sudo then there can be a wrapper to run it as sudo setup-kdc.sh from the wrapper script.

Regarding the coreclr_initialize failed, that is not related to these changes. Seems like coreclr package was not found.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 16, 2016

Have pushed the wrong branch tracking master. fixing this.

Initial KDC setup script (tested on ubuntu)
Configuration files for the KDC setup (tested on ubuntu)
Execute kdc script has a test class initialization step.

Conflicts:
	src/System.Net.Security/tests/FunctionalTests/unix/project.json
@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 16, 2016

15:30:26 Mismatch : expected: <Root><!--test - - --></Root>
15:30:26  actual: <Root>
15:30:26   <!--test - - -->
15:30:26 </Root>
15:30:26 Mismatch : expected: <Root><?badpi text ? >?></Root>
15:30:26  actual: <Root>
15:30:26   <?badpi text ? >?>
15:30:26 </Root>
15:30:26 Mismatch : expected: <Root><![CDATA[test ]]]]><![CDATA[> test]]></Root>
15:30:26  actual: <Root><![CDATA[test ]]]]><![CDATA[> test]]></Root>

@dotnet-bot Test Innerloop Ubuntu Release Build and Test

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 17, 2016

16:01:57 d:\j\workspace\dotnet_corefx\osx_release_bld_prtest>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86   && build.cmd /p:ConfigurationGroup=Release /p:OSGroup=OSX /p:SkipTests=true /p:TestNugetRuntimeId=osx.10.10-x64 
16:01:57 Installing dotnet cli...
16:02:08 Restoring BuildTools version 1.0.25-prerelease-00165...
16:07:09 Error: FindPackagesById: Microsoft.DotNet.BuildTools
16:07:09   HTTP request timed out. Exiting.
16:07:09 ERROR: Could not restore build tools correctly. See 'd:\j\workspace\dotnet_corefx\osx_release_bld_prtest\init-tools.log' for more details.

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 17, 2016

@dotnet-bot test this please

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 17, 2016

Test failures due to #6153 in OSX and Ubuntu

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 17, 2016

@dotnet-bot Test Innerloop OSX Release Build and Test

@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 17, 2016

@dotnet-bot Test Innerloop Ubuntu Release Build and Test

1 similar comment
@Priya91
Copy link
Copy Markdown
Contributor Author

Priya91 commented Feb 17, 2016

@dotnet-bot Test Innerloop Ubuntu Release Build and Test

Comment thread netci.groovy
// Globals

// List of all CI OS
def allOSs = ['Ubuntu', 'Debian8.2', 'OSX', 'FreeBSD', 'CentOS7.1', 'OpenSUSE13.2', 'Windows 10', 'Windows 7', 'Windows_NT']
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where is this used? Perhaps I missed it but I don't see it used in the script anywhere.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is not used anywhere currently, but will be used when all OSes are supported in Outerloop. Will remove the def Outerloop then. Sorry your comment didnt update on my client.. Saw this only now.

Priya91 added a commit that referenced this pull request Feb 17, 2016
Modify Outerloop job in groovy to run on Ubuntu and Windows.
@Priya91 Priya91 merged commit 013d0c0 into dotnet:dev/negotiatestream Feb 17, 2016
@Priya91 Priya91 deleted the negotiatestream branch March 1, 2016 22:09
@karelz karelz added this to the 1.0.0-rtm milestone Jan 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.