ci(390): fix CI-image smoke test — reportgenerator --version exits 1
Build CI Toolchain Image / Build & push CI image (push) Successful in 2m9s
Build CI Toolchain Image / Build & push CI image (push) Successful in 2m9s
The build-time smoke test failed the image build even though the toolchain was
healthy: reportgenerator prints its version banner then exits 1 ("No report
files specified"), so it has no clean version probe. Probe the dotnet-tool shim
on PATH instead. dotnet --info confirmed the SDK + .NET 10.0.10 runtimes resolve
correctly on the ffmpeg base (ICU/glibc fine).
Refs #390
This commit is contained in:
+11
-2
@@ -58,6 +58,12 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# actions/checkout clones as root into a runner-mounted workspace, which trips git's
|
||||
# "detected dubious ownership in repository" guard and breaks every `git` call in a step
|
||||
# (scripts/e2e-local.sh's `git rev-parse --show-toplevel`, the base-ref diffs, ...). Trusting all
|
||||
# paths is the right call for a throwaway single-tenant CI container.
|
||||
RUN git config --global --add safe.directory '*'
|
||||
|
||||
# .NET 10 SDK. Copied from the official SDK image rather than dotnet-install.sh: same mechanism as
|
||||
# docker/Dockerfile's runtime copy, one pinned artifact, no install script to fail at build time.
|
||||
# global.json pins sdk 10.0.0 with rollForward latestMinor, which this satisfies.
|
||||
@@ -82,10 +88,13 @@ RUN dotnet tool install --global dotnet-ef --version 9.0.12 && \
|
||||
RUN set -eux; \
|
||||
dotnet --info; \
|
||||
dotnet ef --version; \
|
||||
reportgenerator --version; \
|
||||
node --version; \
|
||||
npm --version; \
|
||||
git --version; \
|
||||
python3 --version; \
|
||||
ffmpeg -version; \
|
||||
ffprobe -version
|
||||
ffprobe -version; \
|
||||
# reportgenerator has no clean version probe: `--version` prints the banner and then exits 1
|
||||
# ("No report files specified"), so asserting on it would fail this build. Probe that the
|
||||
# dotnet-tool shim resolves on PATH instead.
|
||||
command -v reportgenerator
|
||||
|
||||
Reference in New Issue
Block a user