ci: keep harness changes on fast checks (#88429) · openclaw/openclaw@e24a9c5
steipete
·
2026-05-31
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -834,10 +834,10 @@ jobs:
|
834 | 834 | ;; |
835 | 835 | contracts-plugins-ci-routing) |
836 | 836 | pnpm test:contracts:plugins |
837 | | - pnpm test src/commands/status.scan-result.test.ts src/scripts/ci-changed-scope.test.ts test/scripts/test-projects.test.ts |
| 837 | + pnpm test src/commands/status.scan-result.test.ts src/scripts/ci-changed-scope.test.ts test/scripts/changed-lanes.test.ts test/scripts/run-vitest.test.ts test/scripts/test-projects.test.ts |
838 | 838 | ;; |
839 | 839 | ci-routing) |
840 | | - pnpm test src/commands/status.scan-result.test.ts src/scripts/ci-changed-scope.test.ts test/scripts/test-projects.test.ts |
| 840 | + pnpm test src/commands/status.scan-result.test.ts src/scripts/ci-changed-scope.test.ts test/scripts/changed-lanes.test.ts test/scripts/run-vitest.test.ts test/scripts/test-projects.test.ts |
841 | 841 | ;; |
842 | 842 | bun-launcher) |
843 | 843 | OPENCLAW_TEST_BUN_LAUNCHER=1 pnpm test test/openclaw-launcher.e2e.test.ts |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,8 @@ const SHRINKWRAP_POLICY_PATH_RE =
|
33 | 33 | const CORE_OXLINT_TS_CONFIG = "config/tsconfig/oxlint.core.json"; |
34 | 34 | const TARGETED_CORE_LINT_PATH_LIMIT = 8; |
35 | 35 | const LINTABLE_CORE_PATH_RE = /^(?:src|ui|packages)\/.+\.[cm]?[jt]sx?$/u; |
36 | | -const CORE_LINT_OPTIMIZATION_NEUTRAL_PATH_RE = /^(?:scripts|test\/scripts)\//u; |
| 36 | +const CORE_LINT_OPTIMIZATION_NEUTRAL_PATH_RE = |
| 37 | +/^(?:scripts|test\/scripts)\/|^\.github\/workflows\/ci\.yml$/u; |
37 | 38 | let corepackPnpmShimDir; |
38 | 39 | |
39 | 40 | export function createChangedCheckChildEnv(baseEnv = process.env) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -52,9 +52,9 @@ const FULL_INSTALL_SMOKE_SCOPE_RE =
|
52 | 52 | const FAST_INSTALL_SMOKE_RUNTIME_SCOPE_RE = |
53 | 53 | /^(?:src\/(?:channels|gateway|plugin-sdk|plugins)\/|packages\/gateway-(?:client|protocol)\/src\/)/; |
54 | 54 | const NODE_FAST_PLUGIN_CONTRACT_SCOPE_RE = |
55 | | -/^(src\/plugins\/contracts\/(?:inventory\/bundled-capability-metadata|registry|tts-contract-suites)\.ts$|scripts\/test-projects(?:\.test-support)?\.mjs$|test\/scripts\/test-projects\.test\.ts$)/; |
| 55 | +/^src\/plugins\/contracts\/(?:inventory\/bundled-capability-metadata|registry|tts-contract-suites)\.ts$/; |
56 | 56 | const NODE_FAST_CI_ROUTING_SCOPE_RE = |
57 | | -/^(scripts\/ci-changed-scope\.mjs$|src\/commands\/status\.scan-result\.test\.ts$|src\/scripts\/ci-changed-scope\.test\.ts$|\.github\/workflows\/ci\.yml$)/; |
| 57 | +/^(scripts\/(?:ci-changed-scope|check-changed|run-vitest|test-projects(?:\.test-support)?)\.mjs$|scripts\/test-projects\.test-support\.d\.mts$|src\/commands\/status\.scan-result\.test\.ts$|src\/scripts\/ci-changed-scope\.test\.ts$|test\/scripts\/(?:changed-lanes|run-vitest|test-projects)\.test\.ts$|\.github\/workflows\/ci\.yml$)/; |
58 | 58 | const NODE_FAST_SCOPE_RE = new RegExp( |
59 | 59 | `${NODE_FAST_PLUGIN_CONTRACT_SCOPE_RE.source}|${NODE_FAST_CI_ROUTING_SCOPE_RE.source}`, |
60 | 60 | ); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -590,17 +590,23 @@ describe("detectChangedScope", () => {
|
590 | 590 | ).toEqual({ |
591 | 591 | runFastOnly: true, |
592 | 592 | runPluginContracts: true, |
593 | | -runCiRouting: false, |
| 593 | +runCiRouting: true, |
594 | 594 | }); |
595 | 595 | }); |
596 | 596 | |
597 | 597 | it("identifies CI routing changes as fast Node-only CI scope", () => { |
598 | 598 | expect( |
599 | 599 | detectNodeFastScope([ |
600 | 600 | ".github/workflows/ci.yml", |
| 601 | +"scripts/check-changed.mjs", |
601 | 602 | "scripts/ci-changed-scope.mjs", |
| 603 | +"scripts/run-vitest.mjs", |
| 604 | +"scripts/test-projects.test-support.d.mts", |
602 | 605 | "src/commands/status.scan-result.test.ts", |
603 | 606 | "src/scripts/ci-changed-scope.test.ts", |
| 607 | +"test/scripts/changed-lanes.test.ts", |
| 608 | +"test/scripts/run-vitest.test.ts", |
| 609 | +"test/scripts/test-projects.test.ts", |
604 | 610 | "docs/ci.md", |
605 | 611 | ]), |
606 | 612 | ).toEqual({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -344,6 +344,7 @@ describe("scripts/changed-lanes", () => {
|
344 | 344 | expect( |
345 | 345 | createTargetedCoreLintCommand( |
346 | 346 | [ |
| 347 | +".github/workflows/ci.yml", |
347 | 348 | "scripts/check-changed.mjs", |
348 | 349 | "src/agents/auth-profiles/usage.ts", |
349 | 350 | "test/scripts/changed-lanes.test.ts", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。