fix(ci): patch main regression surfaces

This commit is contained in:
Peter Steinberger
2026-04-06 04:16:18 +01:00
parent 82ad0f6b24
commit 2a5c355688
17 changed files with 127 additions and 46 deletions

View File

@@ -13,6 +13,7 @@ const { detectChangedScope, listChangedPaths } =
runWindows: boolean;
runSkillsPython: boolean;
runChangedSmoke: boolean;
runControlUiI18n: boolean;
};
listChangedPaths: (base: string, head?: string) => string[];
};
@@ -37,6 +38,7 @@ describe("detectChangedScope", () => {
runWindows: true,
runSkillsPython: true,
runChangedSmoke: true,
runControlUiI18n: true,
});
});
@@ -48,6 +50,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -59,6 +62,7 @@ describe("detectChangedScope", () => {
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -70,6 +74,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
expect(detectChangedScope(["apps/shared/OpenClawKit/Sources/Foo.swift"])).toEqual({
runNode: false,
@@ -78,6 +83,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -90,6 +96,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
},
);
});
@@ -102,6 +109,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
expect(detectChangedScope(["assets/icon.png"])).toEqual({
@@ -111,6 +119,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -122,6 +131,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -133,6 +143,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: true,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -144,6 +155,7 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: true,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -155,6 +167,7 @@ describe("detectChangedScope", () => {
runWindows: true,
runSkillsPython: true,
runChangedSmoke: false,
runControlUiI18n: false,
});
});
@@ -166,6 +179,7 @@ describe("detectChangedScope", () => {
runWindows: true,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
});
expect(detectChangedScope([bundledPluginFile("matrix", "package.json")])).toEqual({
runNode: true,
@@ -174,6 +188,7 @@ describe("detectChangedScope", () => {
runWindows: true,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
});
expect(detectChangedScope([".github/workflows/install-smoke.yml"])).toEqual({
runNode: true,
@@ -182,6 +197,29 @@ describe("detectChangedScope", () => {
runWindows: false,
runSkillsPython: false,
runChangedSmoke: true,
runControlUiI18n: false,
});
});
it("runs control-ui locale check only for control-ui i18n surfaces", () => {
expect(detectChangedScope(["ui/src/i18n/locales/en.ts"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: true,
});
expect(detectChangedScope(["scripts/control-ui-i18n.ts"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: true,
runSkillsPython: false,
runChangedSmoke: false,
runControlUiI18n: true,
});
});