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

Improve platform detection for [Default]OSGroup - #36766

Merged
ericstj merged 1 commit into
dotnet:masterfrom
am11:os-detection-improvements
Apr 12, 2019
Merged

ericstj merged 1 commit into
dotnet:masterfrom
am11:os-detection-improvements

Conversation

@am11

@am11 am11 commented Apr 10, 2019

Copy link
Copy Markdown
Member

This change fixes the following two issues:

  • If there exists an /Applications directory on non-macOS Unix,
    OSGroup is misclassified as OSX.
  • If $OS variable is preset in the invocation environment of
    build.sh script, the configuration misclassifies the OSGroup
    property. For example, on CirrusCI FreeBSD, the environment has
    preset OS=freebsd (lowercase), which eventually results in
    OSGroup=freebsd instead of OSGroup=FreeBSD and causes build
    failure.

Comment thread Directory.Build.props Resolved
@ViktorHofer
ViktorHofer requested a review from ericstj April 11, 2019 15:20
Comment thread Directory.Build.props Resolved
Comment thread Directory.Build.props Resolved
This change fixes the following two issues:

* If there exists an `/Applications` directory on non-macOS Unix,
  `OSGroup` is misclassified as OSX.
* If `$OS` variable is preset in the invocation environment of
  `build.sh` script, the configuration misclassifies the `OSGroup`
  property. For example, on CirrusCI FreeBSD, the environment has
  preset `OS=freebsd` (lowercase), which eventually results in
  `OSGroup=freebsd` instead of `OSGroup=FreeBSD` and causes build
  failure.
@am11

am11 commented Apr 11, 2019

Copy link
Copy Markdown
Member Author

/azp Run corefx-ci (Linux musl_x64_Release)

@am11

am11 commented Apr 11, 2019

Copy link
Copy Markdown
Member Author

/azp help

@azure-pipelines

Copy link
Copy Markdown
Supported commands
     help:
          Get descriptions, examples and documentation about supported commands
          Example: help "command_name"
     run:
          Run all pipelines or a specific pipeline for this repository using a comment. Use
          this command by itself to trigger all related pipelines, or specify a pipeline
          to run.
          Example: "run" or "run pipeline_name"

See additional documentation.

@am11

am11 commented Apr 11, 2019

Copy link
Copy Markdown
Member Author

Can we re-run a specific job (in addition to the whole pipeline)? Like the good old:

@dotnet-bot, test corefx-ci (Linux musl_x64_Release) please

@ericstj

ericstj commented Apr 11, 2019

Copy link
Copy Markdown
Member

We're waiting on a feature from Azure DevOps for non-authenticated users to be able to retry individual build legs. For now you need to ping a collaborator to rerun individual legs. You can usually reach out to me @safern or @stephentoub to do this.

To rerun the whole leg you can always ammend the last commit or close/reopen the PR, but I understand we don't want to do that when only one leg is failing.

@ericstj
ericstj merged commit fe5c12a into dotnet:master Apr 12, 2019
@safern

safern commented Apr 12, 2019

Copy link
Copy Markdown
Member

@safern test this please 🤣 -- feel free to reach out whenever needed 😄

@am11
am11 deleted the os-detection-improvements branch April 12, 2019 07:45
@karelz karelz added this to the 3.0 milestone May 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants