Skip to content

Conversation

@saintstack
Copy link
Contributor

Use TimeoutExpired.stdout to capture partial output before timeout. Generate fallback XML if no output captured (hung containers). Prevents empty output for timed-out tests.

Already deployed and doesn't seem to break anything.

Use TimeoutExpired.stdout to capture partial output before timeout.
Generate fallback XML if no output captured (hung containers).
Prevents empty output for timed-out tests.
@saintstack saintstack requested a review from jzhou77 December 5, 2025 03:57
jzhou77
jzhou77 previously approved these changes Dec 5, 2025
Copy link
Contributor

@jzhou77 jzhou77 left a comment

Choose a reason for hiding this comment

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

LGTM. Only a nit on formatting

spec:
containers:
- env:
- env:
Copy link
Contributor

Choose a reason for hiding this comment

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

revert this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Done. Good thing I didn't restart the agent-scalers after deploy.

Copy link
Member

@johscheuer johscheuer left a comment

Choose a reason for hiding this comment

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

Changes LGTM, only one comment (nothing blocking).

break
if timeout_time and time.time() > timeout_time:
log("<timed out>")
process.kill()
Copy link
Member

Choose a reason for hiding this comment

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

I don't have a strong opinion here, but should we first try to terminate() the process (sends SIGTERM) and then send the kill() (sends SIGKILL) if it doesn't terminate after a fixed amount of time? That should give the process some additional time to write the logs before shutting down.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry. Missed this @johscheuer . Making a new PR to implement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@saintstack saintstack merged commit 799e4a4 into FoundationDB:main Dec 5, 2025
2 checks passed
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.

3 participants