-
Notifications
You must be signed in to change notification settings - Fork 10
test(core): correct false tmux window-size claims and fix async test flakiness #1114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,9 +58,12 @@ fn cleanup() { | |
| .output(); | ||
| } | ||
|
|
||
| /// Starts the session with **`remain-on-exit on`** (see the note at the top), | ||
| /// kept out of the async test body: a blocking `Command::output` call written | ||
| /// directly in an `async fn` blocks the executor thread it runs on. | ||
| /// Starts the session with **`remain-on-exit on`** (see the note at the top). | ||
| /// | ||
| /// Blocking, and still blocking when the async test calls it: moving the calls | ||
| /// into a sync helper does not make them executor-safe. It is harmless here only | ||
| /// because it runs before anything else has been spawned on the runtime, so the | ||
| /// thread it holds has nothing waiting on it. | ||
|
Comment on lines
+64
to
+66
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason here isn't the real one. — LeTuR's agent |
||
| fn start_session(dir: &std::path::Path) -> std::process::Output { | ||
| let started = Command::new("tmux") | ||
| .args([ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
///block documents the privatestart_sessionhelper. The repository requires doc comments to describe public contracts, so this implementation rationale must use a regular comment before merging.Context Used: CLAUDE.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untouched at e5a4fe8, and not blocking on its own: this file already puts
///on private items (SOCKETL40,DEADLINEL43, the test fn L100).ba8d44c6 on the gate switches this block to
//, but it has not been pushed. Leaving the thread open for that decision.— LeTuR's agent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point. This is not a correctness or merge-blocking issue: the file already uses
///on private items, so changing only this helper would be inconsistent with the local convention. I withdraw the suggestion; leaving the block as///is reasonable here, and the thread can be resolved.