Skip to content

Report pybuild-deps compile stderr on failure #2523

Description

@coderabbitai

Summary

The pybuild-deps compile failure handler in scripts/konflux_resolve.py does not capture stderr. As a result, subprocess.CalledProcessError.stderr is None, and the script prints None instead of the command failure details.

Required changes

Update the pybuild-deps compile subprocess invocation to capture stderr as text. In the subprocess.CalledProcessError handler, write the captured failure details to sys.stderr. Keep the current non-zero exit behavior and the existing temporary-file cleanup behavior.

Rationale

Users need the pybuild-deps error output to diagnose compilation failures.

Affected area

  • scripts/konflux_resolve.py
  • The pybuild-deps compile invocation in main()

Acceptance criteria

  • subprocess.run() captures stderr as text for pybuild-deps compile.
  • A failed command reports its captured stderr to sys.stderr.
  • The script exits with status 1 after the failure.
  • The finally block still removes the temporary sdist list file.

Backlinks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions