Skip to content

Version pin pwsh version inside of our CI tests

Steve Xuereb requested to merge fix-pwsh-test into master

What does this MR do?

Version pin pwsh version inside of our CI tests

Why was this MR needed?

The alpine-3.12 tag points to the latest version of PowerShell core, this gets automatically updated when a new version is released, for example in https://gitlab.com/hirokiyoshida837/gitlab-runner/-/jobs/1025765632#L2066 it failed because a new version of PowerShell (7.1.2) came out and we are expecting v7.1.1.

Use the specific PowerShell version so we make sure our tests run successful for that version and aren't subject to updates.

What's the best way to test this MR?

  1. Build help image locally: make helper-dockerarchive-host
  2. Run test locally: go test -ldflags "$(make print_ldflags)" -run TestDockerCommand_Pwsh -v ./executors/docker
  3. Make sure test is successful

What are the relevant issue numbers?

#27554 (closed)

Edited by Tomasz Maczukin

Merge request reports