Fix release workflow's real root cause: install ansible-core too #7

Merged
jsanchezd merged 1 commit from fix/release-install-ansible-core into main 2026-09-29 12:38:39 +00:00
Owner

Found via a real container reproduction (node:20-bookworm, matching the CI job image), with -v for the actual traceback that CI's job log never surfaces:

FileNotFoundError: [Errno 2] No such file or directory: 'ansible-doc'

antsibull-changelog shells out to ansible-doc to detect the installed ansible-core version. Only antsibull-changelog itself was being pip-installed, so that binary never existed, and every run failed here regardless of what came before or after in the workflow.

The previous three fixes (743a71c, a8b68a6, aa07c70) were chasing a real but unrelated non-blocking-stdio bug that only ever existed in one of my own local interactive shell sessions -- confirmed by reproducing the actual CI failure in a fresh container from scratch, where that bug doesn't occur at all. This reverts that extra complexity and fixes the real cause: pip3 install ... antsibull-changelog ansible-core.

Verified end-to-end in the same container: apt/pip install, sed version bump, antsibull-changelog release+generate, and git commit+tag all succeed with ansible-core installed alongside antsibull-changelog.

🤖 Generated with Claude Code

https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp

Found via a real container reproduction (node:20-bookworm, matching the CI job image), with `-v` for the actual traceback that CI's job log never surfaces: ``` FileNotFoundError: [Errno 2] No such file or directory: 'ansible-doc' ``` antsibull-changelog shells out to `ansible-doc` to detect the installed ansible-core version. Only antsibull-changelog itself was being pip-installed, so that binary never existed, and every run failed here regardless of what came before or after in the workflow. The previous three fixes (743a71c, a8b68a6, aa07c70) were chasing a real but unrelated non-blocking-stdio bug that only ever existed in one of my own local interactive shell sessions -- confirmed by reproducing the actual CI failure in a fresh container from scratch, where that bug doesn't occur at all. This reverts that extra complexity and fixes the real cause: `pip3 install ... antsibull-changelog ansible-core`. Verified end-to-end in the same container: apt/pip install, sed version bump, `antsibull-changelog release`+`generate`, and git commit+tag all succeed with ansible-core installed alongside antsibull-changelog. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp
Fix release workflow's real root cause: install ansible-core too
All checks were successful
Ansible Lint / ansible-lint (pull_request) Successful in 33s
e439f8af13
Found via a real container reproduction (node:20-bookworm, matching
the CI job image exactly), with -v for the actual traceback that CI's
job log never surfaces:

  FileNotFoundError: [Errno 2] No such file or directory: 'ansible-doc'

antsibull-changelog shells out to `ansible-doc` to detect the
installed ansible-core version whenever it processes changelog
fragments. Only antsibull-changelog itself was being pip-installed, so
that binary never existed, and every run failed here regardless of
what came before or after in the workflow.

The previous two fixes (743a71c fcntl, a8b68a6 redirect-to-file,
aa07c70 set -e guard) were chasing a real but unrelated non-blocking-
stdio bug that only ever existed in one of my own local interactive
shell sessions -- confirmed by reproducing the actual CI failure in a
fresh container from scratch, where that bug does not occur at all.
Those changes are reverted here along with fixing the real cause,
since they added complexity for a problem that was never actually
present in CI.

Verified end-to-end in the same container: apt/pip install, sed
version bump, `antsibull-changelog release`+`generate`, and git
commit+tag all succeed with ansible-core installed alongside
antsibull-changelog.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp
jsanchezd deleted branch fix/release-install-ansible-core 2026-09-29 12:38:39 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ansible-collections/silvarion.repos!7
No description provided.