Skip to content

Re-enable macOS CI - #1962

Merged
dagood merged 1 commit into
dotnet:masterfrom
omajid:master-macos-ci-failure-brew-openssl
Jan 19, 2021
Merged

dagood merged 1 commit into
dotnet:masterfrom
omajid:master-macos-ci-failure-brew-openssl

Conversation

@omajid

@omajid omajid commented Jan 7, 2021 •

Copy link
Copy Markdown
Member

Enable the currently-commented out CI setup for macOS.

Fix the find command used for logger:

  • Always specify path: the macOS version of find needs that or a -path argument to work.

  • The regex engines differ between GNU find and macOS find. The \| part is parsed differently by both of them. Use a simpler regex that they can both support.

Use TargetOverrideRid (osx-x64) instead of TargetRid (osx.10.13-x64) to determine the RID of the runtime tarball.

Fixes: #1819

@omajid
omajid force-pushed the master-macos-ci-failure-brew-openssl branch 12 times, most recently from 1609cbf to 2936a9d Compare January 8, 2021 23:54
@omajid omajid changed the title WIP: try out brew ci error Re-enable macOS CI Jan 8, 2021
@omajid
omajid force-pushed the master-macos-ci-failure-brew-openssl branch from 2936a9d to b563bca Compare January 8, 2021 23:56
Comment thread repos/runtime.proj
<Target Name="InstallJustBuiltRuntime" AfterTargets="RemoveBuiltPackagesFromCache">
<!-- Install the runtime that was just built to be used by downstream repos, namely, aspnetcore -->
<Exec Command="tar -xvf $(SourceBuiltAssetsDir)dotnet-runtime-$(runtimeOutputPackageVersion)-$(TargetRid).tar.gz -C $(DotNetCliToolDir)" />
<Exec Command="tar -xvf $(SourceBuiltAssetsDir)dotnet-runtime-$(runtimeOutputPackageVersion)-$(OverrideTargetRid).tar.gz -C $(DotNetCliToolDir)" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is there any way this can break portable or non-portable builds? I don't fully understand how this was working for portable Linux builds: are those only triggered via runtime-portable.proj?

@dagood dagood Jan 19, 2021 •

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.

This has gotten pretty convoluted... I think this works because when we do a portable build, we also always also do a non-portable build. Then on macOS (and a few others), even when built using non-portable flags, this runtime.proj is forced to build a non-portableportable (edit) RID anyway.

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.

@crummel @dseefeld please check me on that, I've never been too on top of the portable build.

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.

I think the change is correct. It shouldn't impact non-portable builds. In a non-portable Linux build, TargetRid and OverrideTargetRid are the same. For OSX builds, OverrideTargetRid gets updated and used correctly based on this change. For portable Linux builds, as Davis stated, both portable and non-portable builds occur. The non-portable build runs this target via runtime.proj and OverrideTargetRid is the same as TargetRid. The portable build does not run this target because it is triggered by runtime-portable.proj.

@omajid

This comment has been minimized.

@omajid
omajid force-pushed the master-macos-ci-failure-brew-openssl branch from b563bca to 7df8a81 Compare January 14, 2021 18:13
Enable the currently-commented out CI setup for macOS.

Fix the find command used for logger:

- Always specify path: the macOS version of find needs that or a -path
  argument to work.

- The regex engines differ between GNU find and macOS find. The `\|`
  part is parsed differently by both of them. Use a simpler regex that
  they can both support.

Use `TargetOverrideRid` (`osx-x64`) instead of `TargetRid`
(`osx.10.13-x64`) to determine the RID of the runtime tarball.

Fixes: dotnet#1819
@omajid
omajid force-pushed the master-macos-ci-failure-brew-openssl branch from 7df8a81 to 8ac9185 Compare January 18, 2021 19:30
@omajid
omajid requested review from dagood and dseefeld January 19, 2021 14:54
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.

macOS CI failure: "brew update" doesn't work in CI image; workaround causes openssl to be missing

3 participants