mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:40:43 +00:00
ci: expand docker smoke changed scope
This commit is contained in:
@@ -74,7 +74,7 @@ describe("detectChangedScope", () => {
|
||||
});
|
||||
|
||||
it("enables node lane for node-relevant files", () => {
|
||||
expect(detectChangedScope(["src/plugins/runtime/index.ts"])).toEqual({
|
||||
expect(detectChangedScope(["src/config/defaults.ts"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
@@ -313,6 +313,15 @@ describe("detectChangedScope", () => {
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope(["scripts/e2e/plugin-update-unchanged-docker.sh"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope(["scripts/postinstall-bundled-plugins.mjs"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
@@ -333,6 +342,75 @@ describe("detectChangedScope", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("runs changed-smoke for Docker-covered core and extension runtime surfaces", () => {
|
||||
expect(detectChangedScope(["src/plugins/loader.ts"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope(["src/plugin-sdk/provider-entry.ts"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope(["src/gateway/protocol/messages.ts"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope(["src/channels/plugins/catalog.ts"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope([bundledPluginFile("matrix", "index.ts")])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: true,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps changed-smoke off for runtime-surface tests", () => {
|
||||
expect(detectChangedScope(["src/plugins/loader.test.ts"])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: false,
|
||||
runControlUiI18n: false,
|
||||
});
|
||||
expect(detectChangedScope([bundledPluginFile("matrix", "index.test.ts")])).toEqual({
|
||||
runNode: true,
|
||||
runMacos: false,
|
||||
runAndroid: false,
|
||||
runWindows: false,
|
||||
runSkillsPython: false,
|
||||
runChangedSmoke: false,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user