8000 test: cover a killed resume and take screenshots off the main thread by aorumbayev · Pull Request #109 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

test: cover a killed resume and take screenshots off the main thread - #109

Merged
aorumbayev merged 4 commits into
mainfrom
chore/loose-ends
Nov 10, 2026
Merged

aorumbayev merged 4 commits into
mainfrom
chore/loose-ends

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

Three loose ends from the untangle (#108).

  • Resume test: a test-only Workspace::open_with runs setup before resume, so a killed resume pass is now tested (a_killed_resume_pass_brings_back_a_thread_that_exited_cleanly, shown to fail without the keep block). The four restart tests use the homes map instead of process-wide env vars, and a resume-order flake (equal created_at under the test clock) is fixed.
  • Screenshots off the main thread: kg ui screenshot reads the window id on the window's thread and runs the capture on the background executor, on macOS and Windows.
  • One "empty counts as unset" helper in kg.

Skipped: "sidebar rows built twice per frame" was wrong; the second build runs only on keyboard navigation, not in render.

Checked: fmt, clippy, 1780 tests, all repo checks, macOS smoke. Windows capture compiles only in CI.

test(core): set program homes before a restart resumes < 8000 button data-telemetry-action="pull_requests.activity.expand_commit_message" aria-expanded="false" aria-label="Commit message body" type="button" data-view-component="true" class="ellipsis-expander js-details-target btn"> …
Restart tests set process variables because resume ran before the homes map was filled. A test-only open_with runs a setup step before resume, so the four restart tests read the homes map instead. Adds a Start hold, and a test that a killed resume pass brings back a thread that exited cleanly.
A kg ui screenshot ran screencapture inside update_window, which blocks the window's thread. The window id is read on the window's thread; the capture runs on the background executor.
The data folder lookup and the socket lookup each had their own rule for an empty value. Both now use one non_empty helper.
@aorumbayev
aorumbayev merged commit 9ee960b into main Nov 10, 2026
19 checks passed
@aorumbayev
aorumbayev deleted the chore/loose-ends branch November 10, 2026 07:00
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.

1 participant

0