Skip to content

tests: pass logger to smokehouse runners to get log even on timeout#16175

Merged
connorjclark merged 2 commits intomainfrom
smokehouse-timed-out-logs
Sep 4, 2024
Merged

tests: pass logger to smokehouse runners to get log even on timeout#16175
connorjclark merged 2 commits intomainfrom
smokehouse-timed-out-logs

Conversation

@connorjclark
Copy link
Copy Markdown
Collaborator

When smokehouse runners timeout we don't get anything logged to help debug (unless the runner logged directly to stdout or stderr, which they try not to do).

Passing the logger to each runner so we can grab the log if we need to timeout should help with that.

@connorjclark connorjclark requested a review from a team as a code owner September 3, 2024 21:53
@connorjclark connorjclark requested review from adamraine and removed request for a team September 3, 2024 21:53
Copy link
Copy Markdown
Contributor

@adamraine adamraine left a comment

Choose a reason for hiding this comment

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

Good changes thanks!

@connorjclark connorjclark changed the title test: pass logger to smokehouse runners to get log even if timed out tests: pass logger to smokehouse runners to get log even if timed out Sep 3, 2024
@connorjclark connorjclark changed the title tests: pass logger to smokehouse runners to get log even if timed out tests: pass logger to smokehouse runners to get log even on timeout Sep 3, 2024
@connorjclark
Copy link
Copy Markdown
Collaborator Author

Needed to change to spawn so we can stream the output in the cli runner. Otherwise we still aren't getting anything when timing out.

@connorjclark connorjclark merged commit ba1a46c into main Sep 4, 2024
@connorjclark connorjclark deleted the smokehouse-timed-out-logs branch September 4, 2024 23:50
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