Skip to content

Refactor macOS CI so that tests run in parallel - #9056

Merged
Travis Plunk (TravisEz13) merged 12 commits into
PowerShell:masterfrom
TravisEz13:refactor-mac-ci
Mar 11, 2019
Merged

Travis Plunk (TravisEz13) merged 12 commits into
PowerShell:masterfrom
TravisEz13:refactor-mac-ci

Conversation

@TravisEz13

@TravisEz13 Travis Plunk (TravisEz13) commented Mar 5, 2019 •

Copy link
Copy Markdown
Member

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 Travis Plunk (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

@RDIL Reece Dunham (RDIL) left a comment

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.

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

Comment thread tools/ci.psm1 Outdated

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.

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

@TravisEz13
Travis Plunk (TravisEz13) force-pushed the refactor-mac-ci branch 19 times, most recently from ed6ce6a to d883b25 Compare March 9, 2019 00:51
Comment thread tools/WindowsCI.psm1
@@ -0,0 +1,74 @@
if($PSVersionTable.PSEdition -ne 'Desktop')

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.

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

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

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.

dir -> Get-ChildItem

Comment thread .vsts-ci/templates/nix-test.yml Resolved
Comment thread .vsts-ci/templates/nix-test.yml Resolved
Comment thread .vsts-ci/templates/nix-test.yml Outdated
$options = (Get-PSOptions)
$rootPath = '$(System.ArtifactsDirectory)\bins'
$originalRootPath = Split-Path -path $options.Output
Write-Host "orp- '$originalRootPath'"

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.

Remove debug comments

Comment thread .vsts-ci/mac.yml Resolved
@TravisEz13
Travis Plunk (TravisEz13) merged commit 058a190 into PowerShell:master Mar 11, 2019
@TravisEz13
Travis Plunk (TravisEz13) deleted the refactor-mac-ci branch March 11, 2019 20:00
@daxian-dbw Dongbo Wang (daxian-dbw) added this to the 6.2.0 milestone Mar 11, 2019
Travis Plunk (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 Travis Plunk (TravisEz13) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Mar 26, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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.
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