Skip to content

Create a subprocess for uploading the report as it goes#533

Open
ian-sift wants to merge 10 commits intomainfrom
test-result-delayed-upload-subproc
Open

Create a subprocess for uploading the report as it goes#533
ian-sift wants to merge 10 commits intomainfrom
test-result-delayed-upload-subproc

Conversation

@ian-sift
Copy link
Copy Markdown
Contributor

No description provided.

@ian-sift ian-sift requested a review from alexluck-sift April 10, 2026 01:02
os.dup2(saved_stderr, 2)
os.close(saved_stderr)
else:
self._replay_proc = None
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

define this at the class level to make it a bit easier to follow (right now it is just defined/set in this function)

simulated_steps_order: list[str] = []
simulated_measurements_by_id: dict[str, TestMeasurement] = {}
simulated_measurements_order: list[str] = []
if incremental:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Perhaps a bit more error handling?

Any thoughts on how to handle partial writes/killed processes and replaying from those?

jsonl is a good call since at least each line is independent (vs. I've seen json logs/dbs get corrupted very easily) so should be fairly isolated

Base automatically changed from test-result-delayed-upload to main April 13, 2026 18:23
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