You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xtask/ci: separate pure static repository checks from workspace-coupled xtask commands #1933
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:
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.
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
xtask(ci): decouple pure static repository checks into xtask-check
xtask(ci): decouple pure static repository checks into xtask-check