Skip to content

ci: add Windows and packed-integration legs to PRs that touch installer, manifest, release or integration paths (#744) - #748

Merged
jimhoyd merged 1 commit into
mainfrom
claude/sleepy-shannon-xvazgl
Sep 25, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/sleepy-shannon-xvazgl

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Problem and change

Closes #744. Platform and package-boundary failures (#668, #669, #673) were found only after merge, because every PR ran only the compact Ubuntu/Node 24 lane and packed add-on integration ran only on dispatch or release. The compact default lane stays; high-impact PRs now get focused extra checks before merge.

  • What counts as high-impact: highImpact(paths) in scripts/ci-plan.ts checks changed paths against explicit, commented rules. Prose paths are ignored.
    • Installer, upgrade and scaffolding: packages/core/src/{addon-install,extensions-cli,init-with,scaffold,recipes}.ts, packages/core/src/upgrade*, scripts/create-extension*, starters/**.
    • Manifests and dependency wiring: any package.json or package-lock.json, packages/*/urlcode.json, scripts/{workspaces,build-addon-manifest,check-workspace-links}.ts.
    • Release tooling: scripts/release-*.ts, scripts/pack-addons.ts, scripts/package-*.ts, scripts/npm-command.ts (the Windows-aware npm launcher), .github/workflows/publish.yml.
    • Integration and cleanup: test/addons.integration.ts, scripts/test-addons*, packages/*/test/cleanup.ts (the SQLite cleanup behind test: close the served site before removing it in the add-on integration test #673).
    • Fails closed: .github/**, non-prose root files, and an empty, unknown or unreadable diff.
    • Not high-impact: docs-only and ordinary source changes.
  • What a high-impact PR gets:
    • Windows: a windows-latest/Node 24 leg on all three verify shards (--test-shard splits by file, so it cannot target individual tests). For an extension-only change, core checks don't run, so the Windows leg is added to the selected workspace packages instead.
    • Integration: the workspace-integration job (packed add-on integration, ubuntu). workspaceIntegrationMatrix(event, paths) now takes paths.
  • Unchanged: main pushes, merge queue, schedule, dispatch and release planning, as tests assert.
  • Wiring: jobs pick up the extra entries through the plan outputs they already read (shards, workspacePackages, workspaceIntegration, workspaceIntegrationMatrix). No job's if: or matrix expression changed. New outputs highImpact and platformLegs are diagnostics, and the plan log prints them.
  • Required checks:
    • verify-complete and container are neither renamed nor changed.
    • The new Windows entries exist only when selected, so they never appear as skipped checks.
    • verify-complete expects workspace-integration to be success exactly when the plan selected it and skipped otherwise; a test covers both directions.
  • Docs: docs/CI.md has a new "High-impact pull requests" section with the rules table, plus a change-portfolio row. It states that the measurement [Request]: Select platform and packed-integration checks for high-impact PR changes #744 asks for (first-attempt elapsed time, job time, reruns, release-discovered failures, before and after) will be collected over the next releases. No speed or reliability improvement is claimed.

Verification

  • node --test test/ci-plan.test.ts test/ci-workflow.test.ts: 20/20 pass.
    • Each high-impact area selects the Windows shards and the integration leg, while checks stays on Linux.
    • Extension-only high-impact changes put the Windows leg on packages.
    • Docs-only and ordinary PRs get neither.
    • null, empty, .github/, root config and unreadable history fail closed.
    • push, schedule, dispatch and merge_group are unchanged.
    • The gate expects the integration job exactly when it was selected.
    • Every plan output is written by the planner.
  • npm run typecheck, typecheck:tooling, lint, check: exit 0 on this branch (latest main + this commit).
  • Only CI can prove the rest. This PR touches .github/workflows/ci.yml and scripts/ci-plan.ts, so it is itself high-impact: its own run is the first real run of the Windows shards and the PR-time integration job. The known Windows V8 crash ([Bug]: V8 fatal 'jit_page_->allocations_' crash in sandbox tests on Windows Node 24 CI #708) may appear there.

Compatibility and security

  • CI only: no runtime or package change.

  • Cost: high-impact PRs use more runner minutes and wall time; the amount is not measured yet.

  • Not covered: scripts/render-homebrew.ts and packaging/** are not classified as high-impact. Windows checks/package-smoke legs were intentionally not added.

  • Changes match the documented portable contract; docs/examples are updated where needed.

  • Relevant tests and package checks pass, or limitations are explained above.

  • No credentials, customer data or private project material are included.

  • Runtime/starter changes remain aligned where applicable.

🤖 Generated with Claude Code

https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP


Generated by Claude Code

…er, manifest, release or integration paths (#744)

A pull request whose diff touches installer/upgrade/scaffolding sources,
package manifests and dependency wiring, release tooling, integration
cleanup, or shared inputs (.github/, root-level config, or an empty or
unclassifiable diff) now adds Windows Node 24 entries to the verify shards
(or, for an extension-only change, to the selected workspace-verify
packages) and the Linux Node 24 workspace-integration leg. Docs-only and
ordinary source pull requests, main pushes, release and dispatch runs are
unchanged. The plan also reports highImpact and platformLegs. No job is
renamed; verify-complete still gates every planned job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
@jimhoyd
jimhoyd merged commit dd08855 into main Sep 25, 2026
27 checks passed
@jimhoyd
jimhoyd deleted the claude/sleepy-shannon-xvazgl branch September 25, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Select platform and packed-integration checks for high-impact PR changes

2 participants