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

Added OSX and Ubuntu 16.04 to the pr job builders. #894

Merged
merged 8 commits into from
Mar 9, 2017

Conversation

333fred
Copy link
Member

@333fred 333fred commented Feb 21, 2017

This adds OSX to the list of PR jobs so that we verify all commits on it.

@333fred
Copy link
Member Author

333fred commented Feb 21, 2017

@dotnet-bot test ci please

@nguerrera
Copy link
Contributor

Retarget to master after #917 goes in

@333fred 333fred changed the base branch from future to master February 27, 2017 17:46
* dotnet/master: (21 commits)
  fixing iteration of publish filter list
  Fix test expectation to match project change coming from master
  add "ubuntu.16.04-x64" as valid RID for RID tests
  Filter out System files during caching step
  Remove Default FX_Version, as we let it to default to CLI in usage
  Build with VS 15 dev tools
  Use Dev15 CI machines for Windows builds
  Don't set environment variables for VS SDK during CI runs
  Try fixing groovy script
  Set VS Install location environment variables in netci.groovy
  Creating an Intermediate directory for cache to work in
  Refactoring Crossgen and enabling parallel execution of Crossgen
  Fix test for new runtimeconfig.json property.
  Fix Global user path
  Fixed the download scripts to consume cli rel/1.0.0 branch
  Integration test for publish filter profile
  Adding a FilterProfile option to filter out the closure of specified list of packages
  Integration Test for ComposeCache
  Compose cache
  Update NuGet to include new TFMs for .NET Core 2.0.
  ...
@333fred 333fred changed the title Added osx to the pr job builders. Added OSX and Ubuntu 16.04 to the pr job builders. Feb 27, 2017
@333fred
Copy link
Member Author

333fred commented Feb 27, 2017

@dotnet-bot test ci please

@dsplaisted
Copy link
Member

Are we waiting on anything to merge this? @333fred @nguerrera

@333fred
Copy link
Member Author

333fred commented Mar 6, 2017

It still doesn't work. See the offline mail thread.

Copy link
Contributor

@nguerrera nguerrera left a comment

Choose a reason for hiding this comment

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

Preventing merge based on the fact that this isn't working (see above)

@333fred
Copy link
Member Author

333fred commented Mar 7, 2017

@dotnet-bot test ci please

@eerhardt
Copy link
Member

eerhardt commented Mar 9, 2017

What's the status of this? We've introduced more "OSX" specific failures in the meantime: See #965

@333fred
Copy link
Member Author

333fred commented Mar 9, 2017

@dotnet-bot test ci please

@333fred
Copy link
Member Author

333fred commented Mar 9, 2017

Setting HOME appears to have made the build successful. @nguerrera, can you approve?

@333fred
Copy link
Member Author

333fred commented Mar 9, 2017

Test failures on OSX, appear to be the same ones in #965.

@@ -35,7 +35,7 @@ while [[ $# > 0 ]]; do
args=( "${args[@]/$1}" )
args=( "${args[@]/$2}" )
shift
;;
;;
Copy link
Contributor

@nguerrera nguerrera Mar 9, 2017

Choose a reason for hiding this comment

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

I keep seeing unrelated whitespace cleanup. Is your editor configured to do that? It's not code review friendly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, my editor trims whitespace. Which works fine when I'm creating a file, but less fine when I'm not.

@eerhardt
Copy link
Member

eerhardt commented Mar 9, 2017

Test failures on OSX, appear to be the same ones in #965.

Working on fixing them now.

build.sh Outdated
if [ -z "$HOME" ]; then
export HOME="$REPOROOT/.home"

[ ! -d "$HOME" ] || rm -Rf $HOME
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is terrifying. Do we really need to delete it? CI does a clean of the enlistment, right? And we don't put stuff in there.

Copy link
Member Author

Choose a reason for hiding this comment

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

I copied it from the CliCommandLineParser repo. @jonsequitur, was there a reasoning behind deleting everything?

Copy link
Member

Choose a reason for hiding this comment

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

I have an extremely strong feeling that CliCommandLineParser just copied it from

https://github.com/dotnet/cli/blob/master/build.sh#L19-L25

which came in over a year ago here:
dotnet/cli@34b0b68
with the commit message patch up some final missing CI build things

build.sh Outdated

# Use a repo-local install directory (but not the artifacts directory because that gets cleaned a lot
[ -z "$DOTNET_INSTALL_DIR" ] && export DOTNET_INSTALL_DIR=$REPOROOT/.dotnet_cli
[ -d "$DOTNET_INSTALL_DIR" ] || mkdir -p $DOTNET_INSTALL_DIR

# Some things depend on HOME and it may not be set. We should fix those things, but until then, we just patch a value in
Copy link
Contributor

Choose a reason for hiding this comment

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

This should say what things and link to bugs.

netci.groovy Outdated
@@ -10,7 +10,7 @@ def project = GithubProject
def branch = GithubBranchName
def isPR = true

def osList = ['Windows_NT', 'Windows_NT_FullFramework', 'Ubuntu14.04']
def osList = ['Windows_NT', 'Windows_NT_FullFramework', 'Ubuntu14.04', 'Ubuntu16.04', 'OSX']
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this include 10.12?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure, @mmitche? What OS is the OSX host?

Copy link
Member

Choose a reason for hiding this comment

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

See https://github.com/dotnet/corefx/pull/16562/files for how corefx explicitly includes 10.12

build.sh Outdated
@@ -68,7 +68,7 @@ export NUGET_HTTP_CACHE_PATH="$REPOROOT/packages"
[ -z "$DOTNET_INSTALL_DIR" ] && export DOTNET_INSTALL_DIR=$REPOROOT/.dotnet_cli
[ -d "$DOTNET_INSTALL_DIR" ] || mkdir -p $DOTNET_INSTALL_DIR

# Some things depend on HOME and it may not be set. We should fix those things, but until then, we just patch a value in
# NuGet depends on HOME and it may not be set. Until it's fixed, we just patch a value in
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug filed?

@eerhardt
Copy link
Member

eerhardt commented Mar 9, 2017

test ci please

@eerhardt
Copy link
Member

eerhardt commented Mar 9, 2017

@333fred - I'm getting errors on the OSX run with your latest changes:

https://ci.dot.net/job/dotnet_sdk/job/master/job/GenPRTest/job/release_osx10.12_prtest/1/console

13:09:16 Unhandled Exception: System.ArgumentNullException: Value cannot be null.
13:09:16 Parameter name: path1
13:09:16    at System.IO.Path.Combine(String path1, String path2, String path3)
13:09:16    at NuGet.Common.NuGetEnvironment.GetFolderPath(SpecialFolder folder)
13:09:16    at NuGet.Common.NuGetEnvironment.GetFolderPath(NuGetFolderPath folder)
13:09:16    at NuGet.Configuration.SettingsUtility.GetHttpCacheFolder()
13:09:16    at NuGet.Configuration.NuGetPathContext.Create(ISettings settings)
13:09:16    at Microsoft.DotNet.Configurer.NuGetCacheSentinel.get_NuGetCachePath()
13:09:16    at Microsoft.DotNet.Configurer.NuGetCacheSentinel.Exists()
13:09:16    at Microsoft.DotNet.Cli.Telemetry..ctor(INuGetCacheSentinel sentinel, String sessionId)
13:09:16    at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
13:09:16    at Microsoft.DotNet.Cli.Program.Main(String[] args)

are the NuGet env vars set up correctly?

IGNORE: I was running "master".

@eerhardt
Copy link
Member

eerhardt commented Mar 9, 2017

@333fred @nguerrera - OSX.10.12 now passes:

https://ci.dot.net/job/dotnet_sdk/job/master/job/GenPRTest/job/release_osx10.12_prtest/3/

I'll let you guys merge when ready.

@333fred 333fred merged commit 8da0846 into dotnet:master Mar 9, 2017
@333fred 333fred deleted the osx-build branch March 9, 2017 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants