8000 Refactor macOS CI so that tests run in parallel by TravisEz13 · Pull Request #9056 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Refactor macOS CI so that tests run in parallel#9056

Merged
TravisEz13 merged 12 commits intoPowerShell:masterfrom
TravisEz13:refactor-mac-ci
Mar 11, 2019
Merged

Refactor macOS CI so that tests run in parallel#9056
TravisEz13 merged 12 commits intoPowerShell:masterfrom
TravisEz13:refactor-mac-ci

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.

tools/ci.psm1 Outdated
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
@TravisEz13 TravisEz13 marked this pull request as ready for review March 9, 2019 01:36
@@ -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

$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

@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.

4 participants

0