Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci(bench): use the image pwsh instead of a 7.5.4 overlay
ubuntu-26.04 already has pwsh 7.6.6 on PATH. Extracting 7.5.4 into
/opt/microsoft/powershell/7 replaced that binary and left the newer
files behind. Install PowerShell only when command -v pwsh fails.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Oct 28, 2026
commit 3e0d0fef32472498c8ada8c7ee2738b3ae2e2261
26 changes: 12 additions & 14 deletions .github/workflows/benchmark-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,21 @@ jobs:
continue-on-error: true

- name: Install PowerShell
# Ubuntu 26.04 has no `powershell` apt package (packages.microsoft.com
# resolute is already configured and apt still returns "Unable to locate
# package powershell"). Pin the upstream linux-x64 tarball. The export
# and threshold steps below still call `pwsh`.
# ubuntu-latest already has pwsh on PATH (7.6.6 in
# /opt/microsoft/powershell/7). apt has no `powershell` package on
# 26.04, which is why run 40438097478 failed. Do not extract a
# tarball over that prefix: it downgrades the image binary and
# leaves the newer files in place.
run: |
set -euo pipefail
ver=7.5.4
url="https://github.com/PowerShell/PowerShell/releases/download/v${ver}/powershell-${ver}-linux-x64.tar.gz"
tmp="$(mktemp)"
curl -fsSL -L -o "$tmp" "$url"
echo "1fd7983fe56ca9e6233f126925edb24bf6b6b33e356b69996d925c4db94e2fef $tmp" | sha256sum -c -
sudo mkdir -p /opt/microsoft/powershell/7
sudo tar -xzf "$tmp" -C /opt/microsoft/powershell/7
sudo chmod +x /opt/microsoft/powershell/7/pwsh
sudo ln -sf /opt/microsoft/powershell/7/pwsh /usr/local/bin/pwsh
if command -v pwsh >/dev/null; then
pwsh -NoLogo -Command '$PSVersionTable.PSVersion.ToString()'
exit 0
fi
sudo apt-get update
sudo apt-get install -y powershell
command -v pwsh
pwsh -NoLogo -Command '$PSVersionTable.PSVersion.ToString()'
Comment on lines 71 to +74

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These lines are the failure from schedule run 40438097478 (job 121971584242). That job ran on ubuntu-latest, which was image ubuntu-26.04 20261012.163.1. packages.microsoft.com resolute was already configured, and apt-get install -y powershell exited with E: Unable to locate package powershell. The same command has failed every nightly run from 2026-10-22 through 2026-10-27.

actions/runner-images install-powershell.sh still installs from the GitHub linux tarball when is_ubuntu26, extracts into /opt/microsoft/powershell/7, and links /usr/bin/pwsh, because the apt package is absent. Readme 20261023.163.3 lists PowerShell 7.6.6. Image update 20261026.180.1 lists 7.6.9. command -v pwsh is true on that image, so this branch does not run today. A stub pwsh on PATH took exit 0 and never reached sudo.

This branch is still the only recovery path, and it cannot succeed while ubuntu-latest is 26.04. The comment on this step already says the package is absent. Delete the apt-get lines. A missing pwsh should fail the step. An install fallback belongs in an empty directory, with a pinned digest, and not on the 7.5.4 tarball this branch just removed.

rm -f "$tmp"

- name: Export Benchmark JSONL
run: |
Expand Down
Loading