Skip to content

Add standard output and error when a test fails and does not display it#7847

Merged
NachoEchevarria merged 1 commit intomasterfrom
nacho/ImproveTestLoggingOnError
Nov 25, 2025
Merged

Add standard output and error when a test fails and does not display it#7847
NachoEchevarria merged 1 commit intomasterfrom
nacho/ImproveTestLoggingOnError

Conversation

@NachoEchevarria
Copy link
Collaborator

@NachoEchevarria NachoEchevarria commented Nov 19, 2025

Summary of changes

We get some CI errors in tests caused by a non 0 exit code from a sample but we get no output from the sample itself.

This PR improves error reporting when tests fail due to non-zero exit codes by ensuring that process stdout and stderr are logged to the test output before assertions fail. This makes debugging CI failures significantly easier, especially for signal-related crashes (SIGABRT, SIGSEGV, etc.).

Reason for change

Implementation details

Test coverage

Other details

@NachoEchevarria NachoEchevarria marked this pull request as ready for review November 20, 2025 10:31
@NachoEchevarria NachoEchevarria requested review from a team as code owners November 20, 2025 10:31
Copy link
Member

@andrewlock andrewlock left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Collaborator

@gleocadie gleocadie left a comment

Choose a reason for hiding this comment

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

LGTM

@NachoEchevarria NachoEchevarria merged commit b6e31df into master Nov 25, 2025
163 checks passed
@NachoEchevarria NachoEchevarria deleted the nacho/ImproveTestLoggingOnError branch November 25, 2025 15:50
@github-actions github-actions bot added this to the vNext-v3 milestone Nov 25, 2025
@bouwkast bouwkast added the area:tests unit tests, integration tests label Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests unit tests, integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants