Fix antsibull-changelog failing under Forgejo Actions' non-blocking stdio #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/release-nonblocking-io"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
antsibull-changelog imports ansible-core, which refuses to start if any of stdin/stdout/stderr is non-blocking. Confirmed live in run #13: the Forgejo Actions docker-exec environment hands the job non-blocking stdio, so both antsibull-changelog calls failed with a generic "ERROR: Uncaught exception" and no useful message.
Fix: clear O_NONBLOCK on all three fds via a short python3 snippet before the antsibull-changelog calls. Verified locally by running the exact script as a single
bash -cinvocation (matching how arun: |step actually executes): fails without the fix, exits 0 with it.🤖 Generated with Claude Code
https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp