Skip to content

Detect and report bindep parse errors in assemble script#799

Draft
Shrews wants to merge 1 commit intoansible:develfrom
Shrews:bindep-return-code
Draft

Detect and report bindep parse errors in assemble script#799
Shrews wants to merge 1 commit intoansible:develfrom
Shrews:bindep-return-code

Conversation

@Shrews
Copy link
Contributor

@Shrews Shrews commented Mar 19, 2026

Add exit code 2 detection for all bindep invocations in the assemble script. When bindep exits with code 2 (unparsable content), the script now outputs an error message and exits with code 2, providing clear feedback about invalid bindep.txt syntax.

Exit codes 0 (success) and 1 (dependencies not satisfied) continue to be handled normally and do not cause build failures.

Includes integration test with invalid bindep.txt to verify the error detection and reporting behavior.

Fixes: #798

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Mar 19, 2026
@Shrews
Copy link
Contributor Author

Shrews commented Mar 19, 2026

Should probably add a porting guide for a new 3.3 release since this is a change in behavior.

Add exit code 2 detection for all bindep invocations in the assemble
script. When bindep exits with code 2 (unparsable content), the script
now outputs an error message and exits with code 2, providing clear
feedback about invalid bindep.txt syntax.

Exit codes 0 (success) and 1 (dependencies not satisfied) continue to
be handled normally and do not cause build failures.

Includes integration test with invalid bindep.txt to verify the error
detection and reporting behavior.

Adds a porting guide for a newer release.
@Shrews Shrews force-pushed the bindep-return-code branch from 2f6cb18 to 47c92b2 Compare March 19, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_triage New item that needs to be triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle new bindep return codes

1 participant