ci(cmux-tui): run lint once per verification

Merged
LA
3mo ago
+128-28

Summary

  • move cargo fmt and clippy out of the macOS/Linux behavior matrix into one required Linux lint job
  • keep exact checkout and rustfmt patch upload in the single lint lane
  • require lint in the hosted verification gate

This removes duplicate platform-independent work and lets OS behavior tests start without waiting for clippy.

Verification

  • actionlint .github/workflows/cmux-tui.yml
  • python3 -m pytest -q tests/test_tui_focused_filter_guard.py
  • python3 -m pytest -q tests/test_tui_publish_workflow_security.py

PR #11823 changes the adjacent Valgrind block and may need a conflict-free rebase if merged first.


Summary by cubic

Moves cargo fmt and cargo clippy out of the macOS/Linux behavior-test matrix into a dedicated lint job that runs on both Linux and macOS, so OS behavior tests no longer wait for Clippy. Hosted verification now fails if lint fails, and workflow tests cover the lint placement, per-host matrix, and gate enforcement.

  • Preserves exact-commit checkout validation and uploads a one-day rustfmt patch when formatting fails.
  • The adjacent Valgrind block may need a conflict-free rebase if PR #11823 merges first.

Summary by CodeRabbit

  • Chores

    • Added dedicated macOS and Linux linting stages for formatting and code quality checks.
    • Separated lint checks from platform-specific behavior tests.
    • Hosted verification now requires successful completion of linting.
    • Formatting failures can produce downloadable, OS-specific patch artifacts.
  • Tests

    • Added coverage for lint job configuration, platform matrix behavior, dependency guards, Clippy settings, and required verification gates.