Skip to content

fix(ci): release workflow must fail on test failures#73

Merged
telivity-otaip merged 1 commit into
mainfrom
fix/release-fail-on-test-failure
Apr 18, 2026
Merged

fix(ci): release workflow must fail on test failures#73
telivity-otaip merged 1 commit into
mainfrom
fix/release-fail-on-test-failure

Conversation

@telivity-otaip
Copy link
Copy Markdown
Collaborator

Summary

Codex review HIGH #1.

The previous `Run tests and capture count` step used `pnpm test 2>&1 || true`, swallowing test failures so a broken release could publish with a misleading "all green" count. Split into two steps:

  1. Run tests — `pnpm test 2>&1 | tee /tmp/test-output.log`. Fails the job on non-zero exit (GitHub Actions default shell is `bash -eo pipefail`, so the pipe propagates pnpm's exit code).
  2. Capture test counts — runs only when tests pass; parses the tee'd log.

Test plan

  • YAML diff is minimal — only the test-running block changed
  • Next release run on `main` exercises the new flow end-to-end

🤖 Generated with Claude Code

The previous step used `pnpm test 2>&1 || true`, swallowing test
failures so a broken release could publish with a misleading test
count. Split into two steps:

1. Run tests — fails the job on non-zero exit (relies on bash
   pipefail, which is the default in GitHub Actions).
2. Capture test counts — runs only when tests pass, reading the
   tee'd log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@telivity-otaip telivity-otaip merged commit f0a2faf into main Apr 18, 2026
1 check passed
@telivity-otaip telivity-otaip deleted the fix/release-fail-on-test-failure branch April 18, 2026 19:01
telivity-otaip pushed a commit that referenced this pull request Apr 18, 2026
Eleven PRs (#73#83) merged since 0.6.2:
- Codex review closeout (12 findings, all severities)
- First npm publish of the @otaip/* scope
- HTTP hardening (fetchWithRetry, https defaults)
- EU 261 + US DOT IDB regulation modules in @otaip/core
- Per-transaction GDS/NDC routing
- ATPCO-rule-driven change/refund penalties (no invented defaults)
- CLI agent registry auto-discovery
- Bootstrap docs + single-source agent count
- CI/publish workflow hardening (fail on test failures, verify packages live)

Root + 15 workspace packages bumped 0.6.2 → 0.6.3.
See CHANGELOG.md 0.6.3 entry for full detail and potentially-breaking notes.

Verification: 3,092 tests pass, all 16 packages build, dry-run publish
emits 15 tarballs at 0.6.3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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