Skip to content

[Request]: cut duplicated CI work (double builds, node --check sweep, always-on jobs) #567

Closed

Description

@jimhoyd

Problem or use case

  • npm ci runs root prepare (build) and each job then runs npm run build again (ci.yml:104,128,176,217,264,308) across ~60 jobs per full run.
  • scripts/check.ts:4-16 spawns node --check for 278 files (~10 s) although ESLint/tsc cover the .ts files; it also walks examples/ without skipping dist/, and omits recipes/ and action/.
  • The container job runs on docs-only PRs (ci-plan.ts:109 "always").
  • workspace-verify runs 25 jobs per full PR; the daily cron (ci.yml:12) runs 9 legs.
  • Example-project tests (ci.yml:131-140) have no npm script, so contributors cannot reproduce them locally.
  • extension-artifacts.yml lacks timeout-minutes and concurrency; extension-bundles.yml lacks timeout-minutes; release.yml step numbering is inconsistent.

Proposed behavior and alternatives

Use npm ci --ignore-scripts + one explicit build (except build-fidelity); limit check.ts to files lint/tsc don't parse; gate container on the plan; merge small workspace-verify jobs and run them on Linux for 22/26; consider a weekly cron; add npm run test:examples; add timeouts/concurrency.

Activity

  1. added
    enhancement
    github_actions
    on Sep 23, 2026
  2. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    Landed in #596 (#596): CI jobs now install with --ignore-scripts and build once instead of twice; scripts/check.ts checks 65 files instead of ~280 (the old per-file node --check of .ts files wasn't actually checking anything, since node --check doesn't strip types — that's fixed too, and recipes/ and action/ are now covered); the container job is skipped on docs-only PRs while keeping its required-check name so verify-complete still gates correctly; added npm run test:examples; added timeouts and concurrency limits to extension-artifacts.yml and extension-bundles.yml.

    Not done: merging the workspace-verify matrix jobs, running them Linux-only for Node 22/26, and moving to a weekly cron. Each of those would cut platform coverage or change what release-run.ts looks for in scheduled runs, so they need a maintainer decision. Leaving this issue open for that.

  3. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    The remaining item (scoping/merging the workspace-verify matrix and cutting its always-on cost) landed directly in #609 (#609, "ci: scope workspace verification to releases") and #611 ("ci: scope expensive PR smoke checks"), both already on main. Workspace integration, container smoke and build-fidelity now scope to what actually changed and to explicit release dispatches instead of running on every PR. Combined with #596's earlier fix (install/build dedup, check.ts scoping, container gating on the docs lane), this closes out the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgithub_actions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions