Skip to content

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented Dec 19, 2025

Update the run_command helper to support merging stderr with stdout using the merge_stderr parameter. This ensures error output is captured in the same stream, improving logging and debugging. Applied in start_cluster to simplify cluster startup diagnostics.

Update the `run_command` helper to support merging stderr with stdout
using the `merge_stderr` parameter. This ensures error output is captured
in the same stream, improving logging and debugging. Applied in
`start_cluster` to simplify cluster startup diagnostics.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the run_command helper function to support merging stderr with stdout by adding a merge_stderr parameter. This allows error output to be captured in the same stream as standard output, simplifying logging and debugging workflows, particularly for cluster operations.

Key Changes:

  • Added merge_stderr parameter to run_command function with default value False
  • Updated subprocess handling to conditionally redirect stderr to stdout
  • Simplified error message construction logic
  • Applied merge_stderr=True in start_cluster to consolidate cluster startup output

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cardano_node_tests/utils/helpers.py Added merge_stderr parameter to run_command and updated subprocess configuration to merge stderr with stdout when enabled
cardano_node_tests/utils/cluster_nodes.py Updated start_cluster to use merge_stderr=True for improved diagnostics

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mkoura mkoura merged commit 2c87d77 into master Dec 19, 2025
9 checks passed
@mkoura mkoura deleted the merge_stderr branch December 19, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants