diff --git a/docs/release/README.md b/docs/release/README.md index 301b91db92..5ad1d78dec 100644 --- a/docs/release/README.md +++ b/docs/release/README.md @@ -180,7 +180,7 @@ release packages use the ordinary Cargo executable. `ci.yml` runs on pull requests, pushes to `main`, and manual dispatch. A pull request runs the groups its changed paths need, as decided by `scripts/ci-changes.mjs`. A push to `main` runs only `changes` and `ci-ok` when its entire push range changes only documentation paths that select no check group. Architecture pages checked by `xtask` and the native storage format document retain the full main run, as do mixed pushes and pushes whose base cannot be compared. Manual dispatch selects every group. A documentation-only run leaves in-progress main build and test jobs running. -CI builds the workspace, checks formatting and Clippy, runs workspace tests and boundary checks, runs the packaging/development script tests, and exercises the ignored actual CLI profile and public Node-backed flows. `ci-ok` passes when every selected job passed, so it is the check to require. CI builds without debug info (`CARGO_PROFILE_DEV_DEBUG=0`). The [build environment](../architecture/build.md) describes test artifact reuse, concurrency limits, and target deadlines. Cargo runs documentation tests with the same features, and ignored CLI and Node flows reuse the recorded binaries without package-scoped recompilation. Node-backed checks run for runtime, binding and service-contract paths, and CLI-only changes retain their ordinary and actual-profile flows. Evaluation tests use `xtask/eval-tests` for `xtask/` changes, and the wall-clock handoff runs for execution-related changes. The `web` job runs on self-hosted Windows x64 alongside macOS `verify` when both are selected. It stages the frontend package, verifies generated declarations and bundled dependency notices, and runs the Web tests. +CI builds the workspace, checks formatting and Clippy, runs workspace tests and boundary checks, runs the packaging/development script tests, and exercises the ignored actual CLI profile and public Node-backed flows. `ci-ok` passes when every selected job passed, so it is the check to require. CI builds without debug info (`CARGO_PROFILE_DEV_DEBUG=0`). The [build environment](../architecture/build.md) describes test artifact reuse, concurrency limits, and target deadlines. Cargo runs documentation tests with the same features, and ignored CLI and Node flows reuse the recorded binaries without package-scoped recompilation. Web source changes also run the `xtask` check, which reads them for branch id literals. Node-backed checks run for runtime, binding and service-contract paths, and CLI-only changes retain their ordinary and actual-profile flows. Evaluation tests use `xtask/eval-tests` for `xtask/` changes, and the wall-clock handoff runs for execution-related changes. The `web` job runs on self-hosted Windows x64 alongside macOS `verify` when both are selected. It stages the frontend package, verifies generated declarations and bundled dependency notices, and runs the Web tests. The `Verify Python plugins` step is off by default. When a Python plugin ships, set the repository Actions variable `DIM_CI_PYTHON_PLUGINS` to `true` to run it whenever the Node check group is selected. It prepares CPython for the `python_plugin_` flows and reuses the App Server test binary from the workspace build. See the [App Server verification commands](../../crates/dim-app-server/README.md#verification) to run the suites locally. diff --git a/scripts/ci-changes.mjs b/scripts/ci-changes.mjs index 4c7fb01087..05a3f3483d 100644 --- a/scripts/ci-changes.mjs +++ b/scripts/ci-changes.mjs @@ -13,6 +13,7 @@ const rules=[ [documentation,[]], [/^deny\.toml$|^LICENSE$/,['dependencies']], [/^web\/src\/features\/chat\/quote-cases\.json$/,['web','rust','windows']], + [/^web\/src\/.*\.(ts|vue|mjs|js)$/,['web','xtask']], [/^web\//,['web']], [/^scripts\/run-rust-test\.mjs$/,groups], [/^scripts\//,['scripts','web']], diff --git a/scripts/ci-changes.test.mjs b/scripts/ci-changes.test.mjs index c8e2db3b7d..eea78e70c0 100644 --- a/scripts/ci-changes.test.mjs +++ b/scripts/ci-changes.test.mjs @@ -36,12 +36,17 @@ test('documents that code reads keep their checks',()=>{ assert.deepEqual(classify(['docs/design/appserver/native-storage-format.md']),only('rust')); }); +test('Web sources that xtask reads keep its check',()=>{ + for (const file of ['web/src/main.ts','web/src/chat-ui/WebChatTimeline.vue','web/src/rpc/protocol.ts','web/src/a.mjs','web/src/a.js']) + assert.deepEqual(classify([file]),only('web','xtask'),file); +}); + test('dependency policy changes select the scan without compiling the workspace',()=>{ assert.deepEqual(classify(['deny.toml','LICENSE']),only('dependencies')); }); test('source areas select their groups',()=>{ - assert.deepEqual(classify(['web/src/main.ts']),only('web')); + assert.deepEqual(classify(['web/package.json','web/src/styles/base.css']),only('web')); assert.deepEqual(classify(['web/src/features/chat/quote-cases.json']),only('web','rust','windows')); assert.deepEqual(classify(['scripts/stage-web.mjs']),only('scripts','web')); assert.deepEqual(classify(['docker/Dockerfile']),only('scripts'));