test: wait-for-hydra SSE endpoint#241
Conversation
Switch pr-validate workflow to use the SSE-enabled wait-for-hydra action branch. This connects to ci.zw3rk.com's SSE endpoint for instant build status updates instead of polling the GitHub API. Test PR — do not merge.
There was a problem hiding this comment.
Pull request overview
Test-only PR to validate an SSE-enabled version of the wait-for-hydra GitHub Action by pointing PR validation at a non-default action ref and Hydra status endpoint.
Changes:
- Switch
pr-validate.ymlto useinput-output-hk/actions/wait-for-hydra@wait-for-hydra/sse-support. - Configure
hydra-status-url: https://ci.zw3rk.comfor the action.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: input-output-hk/actions/wait-for-hydra@latest | ||
| - uses: input-output-hk/actions/wait-for-hydra@wait-for-hydra/sse-support |
There was a problem hiding this comment.
The workflow now references a feature/test branch of the external input-output-hk/actions/wait-for-hydra action (@wait-for-hydra/sse-support). If this change is ever merged, it will track a moving branch (and could break if the branch is force-pushed or deleted). Prefer pinning to an immutable ref (tag/release) or a commit SHA for stability.
| - uses: input-output-hk/actions/wait-for-hydra@wait-for-hydra/sse-support | |
| - uses: input-output-hk/actions/wait-for-hydra@v1 |
| - uses: input-output-hk/actions/wait-for-hydra@wait-for-hydra/sse-support | ||
| with: | ||
| check: required | ||
| hydra-status-url: https://ci.zw3rk.com |
There was a problem hiding this comment.
Setting hydra-status-url to https://ci.zw3rk.com changes which Hydra instance PR validation waits on, and it differs from .github/workflows/main.yml (which relies on the action default). If this is intended only for this test PR, consider reverting before merge; otherwise, align the endpoint across workflows or make it configurable to avoid inconsistent CI behavior.
| hydra-status-url: https://ci.zw3rk.com |
The wait-for-hydra/sse-support branch now has the pipe subshell fix (process substitution instead of pipe) so SSE exit codes propagate correctly.
The wait-for-hydra SSE mode now uses read -t 60 for periodic timeout checks and re-checks the one-shot endpoint when the SSE stream ends.
SSE through Cloudflare buffers events. Now the script polls the bridge's one-shot endpoint every 120s as a safety net alongside the SSE stream.
Cloudflare now bypasses cache for /status/* paths, enabling real-time SSE event delivery.
|
SSE support verified end-to-end: wait-for-hydra@latest with SSE detected the |
Use the hydra-github-bridge SSE endpoint for real-time build status detection instead of polling the GitHub API. Reduces wait time from minutes (poll interval) to seconds (event-driven). Tested end-to-end in PR #241 — all validation jobs passed.
Use the hydra-github-bridge SSE endpoint for real-time build status detection instead of polling the GitHub API. Reduces wait time from minutes (poll interval) to seconds (event-driven). Tested end-to-end in PR #241 — all validation jobs passed.
Summary
wait-for-hydraactionpr-validate.ymlatinput-output-hk/actions/wait-for-hydra@wait-for-hydra/sse-supporthydra-status-url: https://ci.zw3rk.comfor real-time build status via SSEDo not merge — test PR only.