Skip to content

Fix CI step swallowing quarto list tools errors#14341

Merged
cderv merged 1 commit intomainfrom
fix/ci-list-tools-diagnostic
Apr 9, 2026
Merged

Fix CI step swallowing quarto list tools errors#14341
cderv merged 1 commit intomainfrom
fix/ci-list-tools-diagnostic

Conversation

@cderv
Copy link
Copy Markdown
Collaborator

@cderv cderv commented Apr 9, 2026

The "Verify quarto list tools does not show chromium" step in
test-install.yml runs under bash -e (errexit). If quarto list tools
exits non-zero — e.g. a transient network failure in one of the
latestRelease() calls — the script dies at the command substitution
before echo "$output" runs, leaving zero diagnostics in the CI log.

This is what happened in https://github.com/quarto-dev/quarto-cli/actions/runs/24194985703/job/70622305236
(macOS-only, same code passed on the PR run minutes earlier).

Fix

Use set +e around the command and check the exit code separately —
matching the pattern already used by the install and update steps in
the same workflow.

Test plan

  • The workflow change is self-contained (CI only)
  • If quarto list tools crashes again, the log will now show the actual
    error output before failing

The 'Verify quarto list tools does not show chromium' step runs under
bash -e (errexit). If quarto list tools exits non-zero (e.g. transient
network failure in latestRelease()), the script dies at the command
substitution before echo prints any output — leaving zero diagnostics.

Use set +e around the command and check the exit code separately, matching
the pattern already used by the install and update steps in the same
workflow.
@cderv cderv merged commit f86a0bb into main Apr 9, 2026
11 of 13 checks passed
@cderv cderv deleted the fix/ci-list-tools-diagnostic branch April 9, 2026 15:41
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.

1 participant