Skip to content

fix(nsh): validate published crates and wait for the TUI avatar - #7354

Merged
M4n5ter merged 1 commit into
mainfrom
fix/main-nsh-ci-followup
Nov 27, 2026
Merged

M4n5ter merged 1 commit into
mainfrom
fix/main-nsh-ci-followup

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

The NSH job on main failed in two tests. Both failures reproduced locally at a081e8ffcd. Failed NSH job

The CLI test walked upstream's separate GPUI workspace, which Maka omits. It also treated Maka's local terminal transport as an upstream release. The test now reads Cargo's publish metadata for the vendored workspace, includes the two upstream-only GPUI packages, and compares the full set against the CLI patch list. The terminal transport inherits the workspace's private publish setting.

The TUI test checked the avatar cell as soon as its static label appeared. That frame can precede PNG decoding. The test now waits for a painted half block before asserting the avatar position, label placement, and collapsed icon row.

#7338 closed with both tests still using the old logic. Its follow-up #7352 touches different files.

Verification

  • Before the fix, both targeted tests failed on macOS with the same errors as the Linux job.
  • cargo nextest run --locked --manifest-path third-party/nsh/Cargo.toml -p nsh-cli --bin nsh -p nsh-platform-tui --test tui -E 'test(every_published_nsh_crate_is_patched) | test(/^image::/)' passed all 8 selected tests.
  • Both original failures passed all 30 nextest stress iterations on the rebased branch (60 executions).
  • Cargo metadata reports 30 publishable NSH workspace packages after excluding the CLI, and an empty publish list for the local terminal transport.
  • Stable rustfmt checks for both edited Rust files and git diff --check passed. The Linux nsh worker on this commit passed, including both previously failing tests and all 6,829 tests selected in their nextest run.

AI use

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

Maka diagnosed the failures, authored the changes, ran the targeted checks and drafted this PR. The commit carries the Generated-by: Maka trailer.

Checklist

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

Does this PR entail a breaking change or persisted-data migration?

  • Yes
  • No

Does this PR entail a change in behavior?

  • Yes — Cargo marks the Maka-only terminal transport private.
  • No

Read Cargo publish metadata for the vendored workspace and account for the two upstream GPUI packages. Mark the Maka-only terminal transport private so upstream patch generation stays accurate.

Wait for the first painted half block before checking the icon and avatar rows.

Generated-by: Maka
@github-actions github-actions Bot added the effort/S Under 100 readable lines label Nov 27, 2026
@M4n5ter
M4n5ter merged commit 4481117 into main Nov 27, 2026
8 checks passed
@M4n5ter
M4n5ter deleted the fix/main-nsh-ci-followup branch November 27, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants