ci: narrow windows check scope

This commit is contained in:
Peter Steinberger
2026-04-22 20:13:18 +01:00
parent bfc72b5256
commit 7ff8f8cef8
3 changed files with 47 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
@@ -175,14 +175,14 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: false,
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
it("does not run Windows for test-only changes", () => {
it("runs Windows only for Windows-relevant changes", () => {
expect(detectChangedScope(["extensions/memory-lancedb/index.test.ts"])).toEqual({
runNode: true,
runMacos: false,
@@ -192,7 +192,7 @@ describe("detectChangedScope", () => {
runChangedSmoke: false,
runControlUiI18n: false,
});
expect(detectChangedScope(["test/helpers/windows-paths.test-utils.ts"])).toEqual({
expect(detectChangedScope(["src/auto-reply/reply/streaming-directives.ts"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
@@ -201,6 +201,33 @@ describe("detectChangedScope", () => {
runChangedSmoke: false,
runControlUiI18n: false,
});
expect(detectChangedScope(["src/process/exec.ts"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
expect(detectChangedScope(["src/process/exec.windows.test.ts"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
expect(detectChangedScope(["scripts/npm-runner.mjs"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
it("runs changed-smoke for install and packaging surfaces", () => {
@@ -208,7 +235,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
@@ -217,7 +244,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
@@ -235,7 +262,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
@@ -244,7 +271,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
@@ -253,7 +280,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
@@ -262,7 +289,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
@@ -274,7 +301,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: true,
@@ -284,7 +311,7 @@ describe("detectChangedScope", () => {
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: true,