Skip to content

discord-ci-notify v1: classify from needs (skipped = INCOMPLETE), tested scripts, release pinning; Actions audit 2026-10-12 - #1

Merged
T3mps merged 1 commit into
mainfrom
discord-ci-notify-v1
Oct 12, 2026
Merged

T3mps merged 1 commit into
mainfrom
discord-ci-notify-v1

Conversation

@T3mps

@T3mps T3mps commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix (audit C1): callers' contains(needs.*.result, ...) expression reported a run with skipped jobs as success, and as RECOVERED after a red run. v1 takes needs: ${{ toJSON(needs) }} and classifies: any failure → FAILED, else any cancelled → silent, else any skipped → INCOMPLETE (names the jobs that never ran; never a recovery), else success. FAILED / RECOVERED / manual PASSED behavior is unchanged. The legacy result input still works during migration.
  • The logic moved into classify.sh / notify.sh, with tests/test-notify.sh (23 checks) and a Test workflow (unit tests + a no-webhook dry run of the action).
  • Audit C2: the README now says to pin callers to a release tag's commit SHA, never @main. After merge: tag discord-ci-notify-v1.0.0, then bump Arcane, Astra, Manifold2D and Mosaic.
  • docs/ci-audit-2026-10-12.md: the cross-repo Actions audit.

Test plan

  • tests/test-notify.sh green in ubuntu:24.04 + jq
  • actionlint clean
  • Test workflow green on this PR

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ertr3dpdimU1VjCXXAJSBi

…pped job is INCOMPLETE, never success or RECOVERED), logic moved into tested scripts, a test workflow; README pins by release SHA; the 2026-10-12 Actions audit

- classify.sh: any failure -> failure, else any cancelled -> cancelled, else any skipped -> incomplete, else success; the legacy `result` input still works (skipped -> incomplete).
- notify.sh: the posting logic, unchanged for FAILED / RECOVERED / manual PASSED; INCOMPLETE posts name the jobs that never ran.
- tests/test-notify.sh: 23 checks run by .github/workflows/test.yml, plus a no-webhook dry run of the action.
- docs/ci-audit-2026-10-12.md: the cross-repo audit (confirmed issues C1-C12, proposals P1-P6, disposition).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ertr3dpdimU1VjCXXAJSBi
@T3mps
T3mps merged commit af9284c into main Oct 12, 2026
1 check passed
@T3mps
T3mps deleted the discord-ci-notify-v1 branch October 12, 2026 21:39
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