Skip to content

test: make the stale-userdata regression test headless-safe - #264

Merged
arzafran merged 1 commit into
mainfrom
test/registry-headless-safe
Aug 5, 2026
Merged

test: make the stale-userdata regression test headless-safe#264
arzafran merged 1 commit into
mainfrom
test/registry-headless-safe

Conversation

@arzafran

@arzafran arzafran commented Aug 5, 2026

Copy link
Copy Markdown
Member

The registry regression test added alongside the userdata fix needed a real ghostty surface, which CI has no window server for. It failed at setup in 0.000s on CI while passing locally, which is what blocked the last re-land gate run (crashes were already at zero by then).

It now exercises the registry directly: construct a context, register it, resolve it, release it, assert the stale pointer resolves to nil and carries no snapshot. That is a closer test of the code that actually crashed than going through a surface was, and it runs anywhere. The sibling test that genuinely needs a live surface now skips rather than fails when one is not available.

Test plan

  • CI green
  • WorkspaceSplitWorkingDirectoryTests 5/5 locally (verified, incl. both registry tests)

The registry regression test from #262/#263 needed a real ghostty surface,
which the CI runner has no window server for: it failed at setup there in
0.000s while passing locally. The crash it pins lives entirely in the Swift
registry/resolve path, so it now drives the registry directly (construct a
context, register, resolve, release, assert the stale pointer resolves to
nil) with no ghostty dependency - strictly better coverage of the code that
actually crashed. The sibling tabId-propagation test genuinely needs a live
surface, so it skips instead of failing when one is unavailable.
@arzafran
arzafran merged commit d1c2963 into main Aug 5, 2026
10 checks passed
@arzafran
arzafran deleted the test/registry-headless-safe branch August 5, 2026 19:44
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