Repository navigation
fix(ci): stabilize rust-preview suites and fix activity end-follow - #6619
Conversation
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
f133f5d to
8e1d27b
Compare
Astro-Han
left a comment
There was a problem hiding this comment.
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.
Summary
Stabilize recent
rust-previewCI failures acrossnative-windows,nsh,products-linux,plugins-linuxandplatform-linux, fixActivityLogend-follow resumption, and remove unstable/low-value tests:native-windows(windows-shell): Resolveenv.ProgramFiles ?? env.PROGRAMFILESinscripts/ci/run.mjs. Nodeprocess.envis case-sensitive on non-Windows hosts and when constructing plain env maps from GitHub Actions runner variables (PROGRAMFILES=C:\Program Files), which previously resolvedMAKA_TEST_GIT_BASHto\Git\bin\bash.exeand broke everywindows-shellpush run since#6570.nsh(shader-browser.test.mjs): Remove the cold-Chromeshader-browser.test.mjsrunner step that intermittently stalled >20s on Linux runner D-Bus startup before opening its CDP socket, and coverPlayershader observer/frame/canvas cleanup across ID reuse andstop()/reset()reloads deterministically inthird-party/nsh/crates/nsh-platform-web/web/nsh.test.mjs.ActivityLogend-follow resumption (TurnPanel.tsx,nsh-core,components.rs): KeepListState::anchored_endtracking acrossset_follow_end/anchor_endinnsh-core(preservingPin::Readingsemantics for declarativeProp::FollowEnd), and issue an explicitscrollToEnd/scrollToOffsetcommand inActivityLogwhen transitioningfollowingback fromfalsetotrueafter reading an expanded tool so the captured reading pin is cleared. Also wait forFollowing latestandAt activity endto settle before appending inactivity_resumes_following_after_reading_an_expanded_tool.plugins-linux(maka-agent-engine): Applythreads-required = 3to allpackage(maka-agent-engine)targets (including--lib, not onlybinary(integration)) in.config/nextest.toml, reuse a singleRootStorearena across both protocol modes inbacked_zero_width_items_preserve_logical_offsets_and_midmessage_seek, and drop arbitrary 20s wall-clocktokio::time::timeoutwrappers inprepared_prompt::wire::backed::tests.unclaimed_worker_registration_payload_releases_globalsinplatform/js-runtime(asserted cross-thread weak-handle collection before the worker thread necessarily parked) anddesktop_model_menu_opens_on_its_rows_and_closes_with_escapeinproducts/maka/terminal-shell(flaky cosmetic popup dismissal check with behavior already covered bycomposer_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 passedcargo test --locked -j 2 --manifest-path third-party/nsh/Cargo.toml -p nsh-core --lib -- --quiet— 980 passed, 0 failedcargo test --locked -j 2 -p maka-js-runtime --test integration captured -- --quiet— 9 passed, 0 failedcargo test --locked -j 2 -p maka-agent-engine --lib backed_ -- --quiet— 4 passed, 0 failedcargo 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 runsnode scripts/ci.mjs run tooling— passed (cargo fmt,biome format, 170/170 tooling tests, ASF license headers,cargo-denylicenses)node scripts/ci.mjs check notices— passedwindows-shellGit Bash integration run (verified environment resolution via unit test inscripts/ci.test.mjson Linux; full suite runs onwindows-2025in CI).AI use
Select exactly one:
Tool(s) and scope: Antigravity — CI failure investigation, root-cause fixes, test cleanup, and local verification.
Checklist
Does this PR entail a change in behavior?