Skip to content

fix(ci): public launch smoke fails closed without URL/token - #234

Merged
tcconnally merged 1 commit into
mainfrom
fix/230-public-smoke-fail-closed
Aug 12, 2026
Merged

fix(ci): public launch smoke fails closed without URL/token#234
tcconnally merged 1 commit into
mainfrom
fix/230-public-smoke-fail-closed

Conversation

@tcconnally

Copy link
Copy Markdown
Contributor

Resolves #230 (filed from the 2026-08-11 test-suite + CI audit).

tools/public_launch_smoke.py exited 0 when LEDGER_SMOKE_BASE_URL was
absent and printed SKIP (still exit 0) when LEDGER_SMOKE_ADMIN_TOKEN was
missing — a scheduled smoke run could be green without smoking anything, and
the workflow never asserted the secrets were present.

  • main() returns 1 with RESULT=FAIL when either variable is unset. The
    authenticated contracts are part of the scheduled smoke; a missing token is
    a configuration failure, not a reason to skip half the contract.
  • public-smoke.yml gains a pre-step asserting both secrets are configured
    (clear ::error:: messages at the workflow level).
  • tests/test_public_launch_smoke.py extended with main() unit tests:
    missing URL, missing token, transport failure, bad status, success.
  • Actions in this workflow pinned to commit SHAs while in the file.

Local verification: full suite green (711 passed incl. 5 new main()
tests, 70.69% coverage).

tools/public_launch_smoke.py main() previously exited 0 when
LEDGER_SMOKE_BASE_URL was absent and printed SKIP (still exit 0) when
LEDGER_SMOKE_ADMIN_TOKEN was missing — a scheduled smoke run could be
green without smoking anything, and the workflow never asserted the
secrets were present.

- main() now returns 1 with RESULT=FAIL when either variable is unset
  (the authenticated contracts are part of the scheduled smoke; a missing
  token is a configuration failure, not a reason to skip half the
  contract).
- public-smoke.yml gains a pre-step asserting both secrets are
  configured, with a clear ::error:: message.
- tests/test_public_launch_smoke.py extended with main() unit tests:
  missing URL, missing token, transport failure, bad status, success.
- Actions pinned to commit SHAs while in the file.
@tcconnally
tcconnally merged commit ad431ef into main Aug 12, 2026
11 checks passed
@tcconnally
tcconnally deleted the fix/230-public-smoke-fail-closed branch August 12, 2026 02:38
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.

ci: public smoke can be green without smoking — exit 0 without LEDGER_SMOKE_BASE_URL/admin token

1 participant