Files
copilotkit__copilotkit/.github/workflows/showcase_deploy.yml
Jordan Ritter df1d62d0be fix(showcase): send schema-correct succeeded/failed/cancelled to harness deploy webhook
deploy.yml's notify-harness step was sending {state, services, ...},
but the harness ingest schema at showcase/harness/src/http/webhooks/
deploy.ts is .strict() and requires succeeded/failed/cancelled arrays
+ bool. Every push-to-main notify-harness POST has been 400ing as
invalid-payload (unknown key 'state') since the schema landed.

Build the payload from the redeploy gate's success-and-error buckets:

- Emit failed_services alongside ok_services from the redeploy-gate
  step (services whose status==error), and expose both as resolve-matrix
  job outputs.
- Rewrite the notify-harness payload to drop state and emit:
  succeeded=ok_services, failed=failed_services, cancelled=(verify
  conclusion==cancelled), services=union of succeeded and failed.
- Omit buildRunId/buildRunUrl entirely when empty (the schema runs
  .url() on buildRunUrl, so an empty string would be rejected). Same
  treatment for runUrl as defense-in-depth.
- Group the no-summary echoes through a single >>GITHUB_OUTPUT block
  so shellcheck SC2129 stays clean once a third echo is added.
2026-05-30 08:48:43 -07:00

18 KiB