Skip to content

xtask/ci: separate pure static repository checks from workspace-coupled xtask commands #1933

Closed

Description

@eric8810

What needs tracking?

xtask/Cargo.toml depends on 15 internal workspace crates (dim-app-server, dim-agent-runtime with testing, dim-agent-capabilities, dim-agent-aimux, dim-goal, dim-modality, rusqlite, axum, rutis, etc.) plus ~750 KB of evaluation harness code (scenario_eval.rs, summary_eval.rs, prompt_eval.rs).

However, 4 of the 6 checks in xtask check (xtask/src/main.rs:67-74) are pure static repository scans with no need to compile or instantiate the Rust backend:

  • boundaries (Cargo dependency / module graph checks)
  • npm
  • comment_links
  • literal_main (scans Rust and web/src/**/*.{ts,vue,mjs,js} for forbidden "main" branch literals)

Because all checks are bundled into the monolithic xtask binary, any CI path rule that selects xtask without rust (such as docs/architecture/rust-agent/{plugins,generated}/, or PR #1925 proposing web/src/*.{ts,vue,mjs,js}) runs cargo build --locked -p xtask, which compiles nearly the entire Rust backend and contends for the macOS runner pool — turning ~2 min Web/docs PRs into 10–30+ min runs.

Refs #1919, #1925.

References or acceptance criteria

  • Separate pure-static repository checks (literal_main, comment_links, npm, and crate/module static boundary checks) from the workspace-coupled runtime checks (catalog::check, types::check) and evaluation tools (scenario-eval, summary-eval, prompt-eval).
  • Ensure static checks that scan web/src (such as literal_main) can run in the web / lightweight CI job in seconds without compiling dim-app-server or other backend crates.
  • Keep cargo run --locked -p xtask -- check (or documented equivalent) working as a single local entry point for full verification.
  • Update scripts/ci-changes.mjs, .github/workflows/ci.yml, and docs/release/README.md accordingly.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. added 2 commits that reference this issue on Nov 20, 2026
    e6ae710
    cf331c5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions