Skip to content

test(terminal): stabilize headless GPU, Host timeout, and composer submit tests - #6640

Merged
M4n5ter merged 1 commit into
rust-previewfrom
fix/stabilize-ci-and-prune-tests
Nov 5, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
fix/stabilize-ci-and-prune-tests

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

Stabilize rust-preview CI failures across maka-terminal-shell and maka-cli integration/desktop suites, and prune low-confidence UI copy/pixel tests:

  • Decouple pixel Inbox ordering tests from headless GPU & serialize real WGPU tests: Add inert FrameToken::inert / InlineFrame::inert constructors (still rejected by TerminalPlatform::mark_presented) so sixel_latest_ready_* tests validate pure queue/generation state in <20ms instead of booting WgpuHeadlessRenderer + GPUI + Sixel encoding (previously 569s panic on 4-vCPU Lavapipe runners), and mark terminal::pixels::tests:: as threads-required = "num-test-threads" in .config/nextest.toml.
  • Fix Desktop composer Enter submission race: Route all four remaining desktop.type_text(...) -> desktop.key("enter", false) composer submissions in desktop_new_session.rs through desktop.submit().await so Enter waits until the JS workbench enables "Send message" instead of racing native paste propagation and timing out on next_request().
  • Align real_host step timeouts with measured Host revision latency & remove redundant outer timeouts: Raise real_host step wait timeout (WAIT_TIMEOUT) to 60s (a single cold configureBatch revision takes ~27s on 4-vCPU CI runners, exceeding the previous 20s poll limit), trim redundant vendor copy-toggle/re-install loops in external_agents.rs, and drop ad-hoc whole-test tokio::time::timeout wrappers in favor of nextest.
  • Prune 8 low-confidence UI tests & orphaned preview fixtures: Remove 4 static-copy / wall-clock / string-formatting tests in components.rs and 4 pixel-brightness / static-translation / rotation tests in desktop_new_session.rs along with their unused fixture files (ContextGaugePreview.tsx, context_gauge_preview.tsx, loading_preview.tsx).

Verification

  • cargo nextest run --locked -p maka-terminal-shell — 69/69 passed (sixel_latest_ready_* ~18ms, real GPU pixel tests serialized cleanly)
  • node scripts/ci.mjs run gpui — passed (including tests::windows verifying TerminalPlatform::mark_presented rejects FrameToken::inert)
  • cargo nextest run --locked -p maka-cli --test integration on all touched real_host suites (external_agents, components, configuration_management, catalog_association, keyboard, send_hold, resumable, ui_plugins, attachments) — 20/20 passed
  • cargo nextest run --locked -p maka-cli --no-default-features --features desktop-tests --test integration -E 'test(desktop_connection_failure_has_one_status_below_the_workspace) | test(desktop_retries_a_failed_turn_in_place) | test(desktop_system_permission_guidance_uses_native_actions_without_paths)' -j 1 — 3/3 passed (desktop_connection_failure... 23.0s, previously timed out at 84s before the submit() fix)
  • cargo clippy --no-deps --locked on maka-terminal-shell, maka-cli (integration + desktop-tests), and nsh-gpui-terminal — 0 warnings
  • node scripts/ci.mjs check format, licenses, notices, tooling-tests — all passed (217/217 tooling tests passed)
  • Not run locally: Windows (windows-desktop, windows-nsh, windows-shell) and macOS (macos-host, native) CI jobs.

AI use

Select exactly one:

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Antigravity — CI failure root-cause analysis, test stabilization and pruning, and local verification.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

…bmit tests

Decouple pixel Inbox ordering unit tests from WgpuHeadlessRenderer via inert FrameToken/InlineFrame constructors, serialize real headless GPU pixel tests under nextest, wait for Send message readiness before Enter submission across desktop composer tests, align real_host step timeouts with measured Host configureBatch latency while removing redundant whole-test timeout wrappers, and prune 8 low-confidence static-copy/pixel-probe UI tests.

Generated-by: Antigravity
@M4n5ter
M4n5ter merged commit d6fc99a into rust-preview Nov 5, 2026
1 check passed
@M4n5ter
M4n5ter deleted the fix/stabilize-ci-and-prune-tests branch November 5, 2026 06:27
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