Skip to content

fix(ci): stabilize rust-preview suites and fix activity end-follow - #6619

Merged
M4n5ter merged 1 commit into
rust-previewfrom
fix/rust-preview-ci
Nov 4, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
fix/rust-preview-ci

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 4, 2026

Copy link
Copy Markdown
Member

Summary

Stabilize recent rust-preview CI failures across native-windows, nsh, products-linux, plugins-linux and platform-linux, fix ActivityLog end-follow resumption, and remove unstable/low-value tests:

  • native-windows (windows-shell): Resolve env.ProgramFiles ?? env.PROGRAMFILES in scripts/ci/run.mjs. Node process.env is case-sensitive on non-Windows hosts and when constructing plain env maps from GitHub Actions runner variables (PROGRAMFILES=C:\Program Files), which previously resolved MAKA_TEST_GIT_BASH to \Git\bin\bash.exe and broke every windows-shell push run since #6570.
  • nsh (shader-browser.test.mjs): Remove the cold-Chrome shader-browser.test.mjs runner step that intermittently stalled >20s on Linux runner D-Bus startup before opening its CDP socket, and cover Player shader observer/frame/canvas cleanup across ID reuse and stop()/reset() reloads deterministically in third-party/nsh/crates/nsh-platform-web/web/nsh.test.mjs.
  • ActivityLog end-follow resumption (TurnPanel.tsx, nsh-core, components.rs): Keep ListState::anchored_end tracking across set_follow_end / anchor_end in nsh-core (preserving Pin::Reading semantics for declarative Prop::FollowEnd), and issue an explicit scrollToEnd / scrollToOffset command in ActivityLog when transitioning following back from false to true after reading an expanded tool so the captured reading pin is cleared. Also wait for Following latest and At activity end to settle before appending in activity_resumes_following_after_reading_an_expanded_tool.
  • plugins-linux (maka-agent-engine): Apply threads-required = 3 to all package(maka-agent-engine) targets (including --lib, not only binary(integration)) in .config/nextest.toml, reuse a single RootStore arena across both protocol modes in backed_zero_width_items_preserve_logical_offsets_and_midmessage_seek, and drop arbitrary 20s wall-clock tokio::time::timeout wrappers in prepared_prompt::wire::backed::tests.
  • Unstable / low-value test cleanup: Remove unclaimed_worker_registration_payload_releases_globals in platform/js-runtime (asserted cross-thread weak-handle collection before the worker thread necessarily parked) and desktop_model_menu_opens_on_its_rows_and_closes_with_escape in products/maka/terminal-shell (flaky cosmetic popup dismissal check with behavior already covered by composer_shortcuts_switch_thinking_plan_and_model_across_saved_state).

Verification

  • node --test scripts/ci.test.mjs third-party/nsh/crates/nsh-platform-web/web/nsh.test.mjs — 42/42 passed
  • cargo test --locked -j 2 --manifest-path third-party/nsh/Cargo.toml -p nsh-core --lib -- --quiet — 980 passed, 0 failed
  • cargo test --locked -j 2 -p maka-js-runtime --test integration captured -- --quiet — 9 passed, 0 failed
  • cargo test --locked -j 2 -p maka-agent-engine --lib backed_ -- --quiet — 4 passed, 0 failed
  • cargo test --locked -j 2 -p maka-cli --no-default-features --test integration activity_resumes_following_after_reading_an_expanded_tool -- --quiet — passed 6/6 consecutive runs
  • node scripts/ci.mjs run tooling — passed (cargo fmt, biome format, 170/170 tooling tests, ASF license headers, cargo-deny licenses)
  • node scripts/ci.mjs check notices — passed
  • Not run locally: live Windows windows-shell Git Bash integration run (verified environment resolution via unit test in scripts/ci.test.mjs on Linux; full suite runs on windows-2025 in CI).

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 investigation, root-cause fixes, test cleanup, 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

Resolve uppercase PROGRAMFILES in Windows shell CI runs, replace the flaky cold-Chrome shader browser test with deterministic Player lifecycle tests, restore ActivityLog end-following after reading an expanded tool, account for maka-agent-engine lib test concurrency without arbitrary 20s timeouts, and remove racy/low-value tests.

Generated-by: Antigravity
@M4n5ter
M4n5ter force-pushed the fix/rust-preview-ci branch from f133f5d to 8e1d27b Compare November 4, 2026 05:11
@M4n5ter
M4n5ter merged commit 561fe24 into rust-preview Nov 4, 2026
13 checks passed
@M4n5ter
M4n5ter deleted the fix/rust-preview-ci branch November 4, 2026 05:12

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.

I reviewed all eleven changed files at 8e1d27b5c938d55af46cc5ea371dfb2a7a16c87f, the list reading-pin behavior and the retained test paths. I found no confirmed P0–P2 issue. This is already merged as 561fe244, with an identical code tree.

The Windows failure premise is independently supported by the earlier raw runner logs: constructing paths from the copied env.ProgramFiles produced ERR_INVALID_ARG_TYPE. scripts/ci/run.mjs:35–73 now accepts either spelling from the original environment and permits a controlled command runner. I ran the unmodified CI and Player tests on Linux/Node 24.18.1: 42 passed, 0 skipped. Removing the uppercase fallback in a temporary source copy made the focused path test fail with the original undefined-path error. This validates path construction locally; the merged CI actually executed all five Windows shell cases successfully.

The activity change includes production behavior, not just a longer wait. products/maka/workbench/app/TurnPanel.tsx:215–227 issues an explicit scroll command when resuming from a reading pause. The native list retains its prior end position when the follow threshold changes and records it while following is disabled; its Pin::Reading guard remains. The strengthened native regression waits for both the end position and following state before appending. That case passed in 2.731 seconds on the merged branch. I did not run Rust or native UI locally, reproduce the author's six-run experiment, or establish a statistical flake-rate improvement.

The coverage tradeoffs are material. The two shader lifecycle tests now call production Player methods using simulated DOM, IntersectionObserver and animation-frame scheduling. Their assertions still detect omitted observer disconnection and late frame scheduling: my temporary source faults caused two failures and one failure respectively. They no longer validate real browser attachment/observer/RAF behavior. Removing Chrome startup also avoids that startup dependency; it does not demonstrate that a D-Bus message caused the old timeout, and neither old nor new lifecycle tests validate GPU pixels.

The PR additionally removes the specific desktop model-popup Escape assertion, the unpolled capture/1,025-handle stress case, and two 20-second backed-prompt progress deadlines. Other keyboard/capture lifecycle cases and backed-source assertions remain; the two protocol modes now share one RootStore arena. I am not claiming equivalent coverage for every removed assertion. The nextest scheduling change includes all engine-package targets, including its library tests.

The merged run's forty jobs succeeded. There is no schema or wire-protocol change here. My local evidence is the Node tests and isolated failure controls; Rust execution and Windows integration evidence above are hosted, not local.


Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.

me2seeks added a commit that referenced this pull request Nov 4, 2026
Integrate rust-preview 561fe24 (#6619), including the inherited Windows PROGRAMFILES path failure and terminal activity end-follow fix. Preserve this PR Windows desktop/native CI coverage.

Generated-by: Maka (OpenAI)
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