Skip to content

ci: tighten path classification, isolate script checks, and remove dead CI steps #1931

Open

Description

@eric8810

What needs tracking?

scripts/ci-changes.mjs and .github/workflows/ci.yml currently trigger unnecessary builds, tie lightweight checks to the contended macOS runner pool, and run dead or over-broad steps:

  1. Unmatched non-code paths fall through to every check group (including eval, execution, windows, and web). Editing .agents/skills/**, skills/**, .github/ISSUE_TEMPLATE/**, or .github/pull_request_template.md triggers a full workspace build and test run — e.g. PR docs(release): define provider catalog sync acceptance #1895 (run 44676046075) queued 40 min and ran 27 min (including 4m43s of xtask/eval-tests) for doc/skill markdown edits.
  2. dependencies (cargo-deny) runs on every Rust change (needs.changes.outputs.rust == 'true'), even when no Cargo.toml, Cargo.lock, deny.toml, or LICENSE changed and the dependency graph is identical.
  3. scripts/ changes unconditionally trigger web and run inside the macOS verify job. Only web-packaging scripts (such as scripts/stage-web.mjs) affect the Web workspace, and node --test scripts/*.test.mjs does not need a macOS runner.
  4. changes and ci-ok use runs-on: self-hosted without OS labels, so they occasionally claim scarce macOS runners instead of idle Linux runners.
  5. push to main skips only 100% pure-documentation pushes, forcing full Rust verify, windows-cli, dependencies, and acp-registry runs even on Web-only merges (e.g. chat-ui: copy through host.commands.copy when a host is provided #1922 run 44686585950, which also cancelled the prior Rust main run 44685591901). Paired with ci: let every main push finish its checks #1920 (no mutual cancellation on main), routing main pushes by changed paths plus a scheduled full sweep avoids saturating runners on non-Rust merges.
  6. Dead and redundant steps inside verify:
    • node scripts/run-rust-test.mjs target/test-artifacts.jsonl migration_flow node_ --ignored --test-threads=2 matches 0 tests.
    • Step 9 (Verify actual CLI profiles and line-mode flows) runs three npm ci/npm install commands against registry.npmjs.org (~15s) on every rust run even when node == 'false', without --no-audit --no-fund.

Refs #1919.

References or acceptance criteria

  • Classify .agents/**, skills/**, .github/ISSUE_TEMPLATE/**, and .github/pull_request_template.md in scripts/ci-changes.mjs so they do not trigger build/test groups.
  • Trigger dependencies only when Cargo.toml, **/Cargo.toml, Cargo.lock, deny.toml, or LICENSE change (plus full scheduled / manual runs).
  • Run scripts checks in a dedicated [self-hosted, linux, x64] job, and trigger web from scripts/ only for web-packaging scripts.
  • Pin changes and ci-ok to [self-hosted, linux, x64].
  • Apply path-based group selection on main pushes (with a periodic full scheduled run for cross-cutting safety).
  • Remove the 0-test migration_flow node_ step, avoid unnecessary npm ci when Node plugins are not exercised, and pass --no-audit --no-fund.
  • Update scripts/ci-changes.test.mjs and docs/release/README.md to match.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. added 2 commits that reference this issue on Nov 20, 2026
    8f9a8a8
    5e20ef2
  3. added
    roadmap
    P2
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2roadmap

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions