Skip to content

CI: fail fast when the Qt install fails on Windows - #579

Merged
luisangelsm merged 1 commit into
YACReader:developfrom
starlit-void:starlit/ci-fail-fast-on-qt-install
Aug 1, 2026
Merged

CI: fail fast when the Qt install fails on Windows#579
luisangelsm merged 1 commit into
YACReader:developfrom
starlit-void:starlit/ci-fail-fast-on-qt-install

Conversation

@starlit-void

Copy link
Copy Markdown
Contributor

The Windows install steps run under shell: cmd, which has no equivalent of set -e: every line runs regardless of what came before, and the step takes its exit code from the last command. When aqt install-qt fails, the trailing where iscc still succeeds, so the step is reported green with an incomplete Qt installation.

The failure then surfaces about a minute later in the Build step as Failed to find required Qt component "ShaderTools" followed by ninja: error: loading 'build.ninja', which gives no hint that Qt was never installed in the first place.

Seen on a recent run, where aqt aborted with
py7zr.exceptions.Bad7zFile: Specified path is bad: metatypes/qt6shadertools_metatypes.json while unpacking qtshadertools downloaded from a mirror, and the job was left looking like a build error.

Guard the three install-qt calls with || exit /b 1 so the step fails where the problem actually is, with aqt's own error on screen. The macOS job needs no change: it uses the default shell, which already exits on error.

The Windows install steps run under `shell: cmd`, which has no equivalent
of `set -e`: every line runs regardless of what came before, and the step
takes its exit code from the last command. When `aqt install-qt` fails,
the trailing `where iscc` still succeeds, so the step is reported green
with an incomplete Qt installation.

The failure then surfaces about a minute later in the Build step as
`Failed to find required Qt component "ShaderTools"` followed by
`ninja: error: loading 'build.ninja'`, which gives no hint that Qt was
never installed in the first place.

Seen on a recent run, where aqt aborted with
`py7zr.exceptions.Bad7zFile: Specified path is bad:
metatypes/qt6shadertools_metatypes.json` while unpacking qtshadertools
downloaded from a mirror, and the job was left looking like a build error.

Guard the three `install-qt` calls with `|| exit /b 1` so the step fails
where the problem actually is, with aqt's own error on screen. The macOS
job needs no change: it uses the default shell, which already exits on
error.
@luisangelsm
luisangelsm merged commit 08d7d12 into YACReader:develop Aug 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants