Skip to content

ci: exit cleanly after the rawspeed-cli smoke test - #2

Merged
Abas-Tim merged 1 commit into
developfrom
fix/publish-smoke-test-exit-code
Sep 6, 2026
Merged

Abas-Tim merged 1 commit into
developfrom
fix/publish-smoke-test-exit-code

Conversation

@Abas-Tim

@Abas-Tim Abas-Tim commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

The rawspeed-cli publish workflow's smoke test step failed on the
rawspeed-cli-v1.0.1 tag run even though the check itself passed
("smoke test ok" was printed).

Root cause: the tool exits with code 2 after printing its usage,
and the GitHub Actions runner appends exit $LASTEXITCODE to pwsh
scripts, so the step inherited that 2 and was marked failed.

Fix: end the smoke test step with an explicit exit 0 on success;
the throw on failure is unchanged.

Verification

Notes

  • Prepared with AI assistance (opencode), per AGENTS.md disclosure rules

The smoke test intentionally runs rawspeed-cli without arguments, and
the tool exits with code 2 after printing its usage. The GitHub
Actions runner appends `exit $LASTEXITCODE` to pwsh scripts, so the
step inherited that 2 and was marked failed even though the check
itself passed ("smoke test ok"). End the step with an explicit exit 0
on success; the throw on failure is unchanged.

AI assistance disclosure: prepared with AI assistance (opencode), per
AGENTS.md disclosure rules.
@Abas-Tim
Abas-Tim merged commit 8ad8e20 into develop Sep 6, 2026
53 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.

1 participant