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

Refactor macOS CI so that tests run in parallel #9056

Merged
merged 12 commits into from
Mar 11, 2019

Conversation

TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Mar 5, 2019

PR Summary

Refactor macOS CI so that tests run in parallel

  • Also:
    • Fix bootstrap issue where curl was failing for a month (so obviously not needed)
    • Change Windows test stages to use PowerShell Core (where we can) to avoid compat issues

PR Context

This allows running all tests in about the same about of clock time.

PR Checklist

@TravisEz13 TravisEz13 changed the title Refactor ci.psm1 to allow mac ci to use existing cmdlets Refactor macOS CI so that tests run in parallel Mar 5, 2019
Copy link
Contributor

@RDIL RDIL left a comment

Choose a reason for hiding this comment

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

Looks good so far, just saw this and thought it could be simplified.

}
else
{
Write-Verbose "Tests did not fail! Nice job!"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Write-Verbose "Tests did not fail! Nice job!"
Write-Verbose "Tests passed! Nice job!"

@TravisEz13 TravisEz13 force-pushed the refactor-mac-ci branch 19 times, most recently from ed6ce6a to d883b25 Compare March 9, 2019 00:51
@@ -0,0 +1,74 @@
if($PSVersionTable.PSEdition -ne 'Desktop')
Copy link
Member Author

Choose a reason for hiding this comment

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

This is code that other that this imperative code to protect against loading in PowerShell core was just moved from CI.psm1

.vsts-ci/mac.yml Outdated
displayName: Bootstrap
condition: succeeded()
- pwsh: |
dir "$(System.ArtifactsDirectory)\*" -Recurse
Copy link
Member

Choose a reason for hiding this comment

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

dir -> Get-ChildItem

.vsts-ci/templates/nix-test.yml Outdated Show resolved Hide resolved
.vsts-ci/templates/nix-test.yml Outdated Show resolved Hide resolved
$options = (Get-PSOptions)
$rootPath = '$(System.ArtifactsDirectory)\bins'
$originalRootPath = Split-Path -path $options.Output
Write-Host "orp- '$originalRootPath'"
Copy link
Member

Choose a reason for hiding this comment

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

Remove debug comments

.vsts-ci/mac.yml Outdated Show resolved Hide resolved
@TravisEz13 TravisEz13 merged commit 058a190 into PowerShell:master Mar 11, 2019
@TravisEz13 TravisEz13 deleted the refactor-mac-ci branch March 11, 2019 20:00
@daxian-dbw daxian-dbw added this to the 6.2.0 milestone Mar 11, 2019
TravisEz13 added a commit that referenced this pull request Mar 13, 2019
Refactor macOS CI so that tests run in parallel 
  - Also:
    - Fix bootstrap issue where curl was failing for a month (so obviously not needed)
    - Change Windows test stages to use PowerShell Core (where we can) to avoid compat issues

## PR Context

This allows running all tests in about the same about of clock time.
@TravisEz13 TravisEz13 added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CL-Test Indicates that a PR should be marked as a test change in the Change Log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants