@@ -74,7 +74,7 @@ describe("detectChangedScope", () => {
|
74 | 74 | }); |
75 | 75 | |
76 | 76 | it("enables node lane for node-relevant files", () => { |
77 | | -expect(detectChangedScope(["src/plugins/runtime/index.ts"])).toEqual({ |
| 77 | +expect(detectChangedScope(["src/config/defaults.ts"])).toEqual({ |
78 | 78 | runNode: true, |
79 | 79 | runMacos: false, |
80 | 80 | runAndroid: false, |
@@ -313,6 +313,15 @@ describe("detectChangedScope", () => {
|
313 | 313 | runChangedSmoke: true, |
314 | 314 | runControlUiI18n: false, |
315 | 315 | }); |
| 316 | +expect(detectChangedScope(["scripts/e2e/plugin-update-unchanged-docker.sh"])).toEqual({ |
| 317 | +runNode: true, |
| 318 | +runMacos: false, |
| 319 | +runAndroid: false, |
| 320 | +runWindows: false, |
| 321 | +runSkillsPython: false, |
| 322 | +runChangedSmoke: true, |
| 323 | +runControlUiI18n: false, |
| 324 | +}); |
316 | 325 | expect(detectChangedScope(["scripts/postinstall-bundled-plugins.mjs"])).toEqual({ |
317 | 326 | runNode: true, |
318 | 327 | runMacos: false, |
@@ -333,6 +342,75 @@ describe("detectChangedScope", () => {
|
333 | 342 | }); |
334 | 343 | }); |
335 | 344 | |
| 345 | +it("runs changed-smoke for Docker-covered core and extension runtime surfaces", () => { |
| 346 | +expect(detectChangedScope(["src/plugins/loader.ts"])).toEqual({ |
| 347 | +runNode: true, |
| 348 | +runMacos: false, |
| 349 | +runAndroid: false, |
| 350 | +runWindows: false, |
| 351 | +runSkillsPython: false, |
| 352 | +runChangedSmoke: true, |
| 353 | +runControlUiI18n: false, |
| 354 | +}); |
| 355 | +expect(detectChangedScope(["src/plugin-sdk/provider-entry.ts"])).toEqual({ |
| 356 | +runNode: true, |
| 357 | +runMacos: false, |
| 358 | +runAndroid: false, |
| 359 | +runWindows: false, |
| 360 | +runSkillsPython: false, |
| 361 | +runChangedSmoke: true, |
| 362 | +runControlUiI18n: false, |
| 363 | +}); |
| 364 | +expect(detectChangedScope(["src/gateway/protocol/messages.ts"])).toEqual({ |
| 365 | +runNode: true, |
| 366 | +runMacos: false, |
| 367 | +runAndroid: false, |
| 368 | +runWindows: false, |
| 369 | +runSkillsPython: false, |
| 370 | +runChangedSmoke: true, |
| 371 | +runControlUiI18n: false, |
| 372 | +}); |
| 373 | +expect(detectChangedScope(["src/channels/plugins/catalog.ts"])).toEqual({ |
| 374 | +runNode: true, |
| 375 | +runMacos: false, |
| 376 | +runAndroid: false, |
| 377 | +runWindows: false, |
| 378 | +runSkillsPython: false, |
| 379 | +runChangedSmoke: true, |
| 380 | +runControlUiI18n: false, |
| 381 | +}); |
| 382 | +expect(detectChangedScope([bundledPluginFile("matrix", "index.ts")])).toEqual({ |
| 383 | +runNode: true, |
| 384 | +runMacos: false, |
| 385 | +runAndroid: false, |
| 386 | +runWindows: false, |
| 387 | +runSkillsPython: false, |
| 388 | +runChangedSmoke: true, |
| 389 | +runControlUiI18n: false, |
| 390 | +}); |
| 391 | +}); |
| 392 | + |
| 393 | +it("keeps changed-smoke off for runtime-surface tests", () => { |
| 394 | +expect(detectChangedScope(["src/plugins/loader.test.ts"])).toEqual({ |
| 395 | +runNode: true, |
| 396 | +runMacos: false, |
| 397 | +runAndroid: false, |
| 398 | +runWindows: false, |
| 399 | +runSkillsPython: false, |
| 400 | +runChangedSmoke: false, |
| 401 | +runControlUiI18n: false, |
| 402 | +}); |
| 403 | +expect(detectChangedScope([bundledPluginFile("matrix", "index.test.ts")])).toEqual({ |
| 404 | +runNode: true, |
| 405 | +runMacos: false, |
| 406 | +runAndroid: false, |
| 407 | +runWindows: false, |
| 408 | +runSkillsPython: false, |
| 409 | +runChangedSmoke: false, |
| 410 | +runControlUiI18n: false, |
| 411 | +}); |
| 412 | +}); |
| 413 | + |
336 | 414 | it("runs control-ui locale check only for control-ui i18n surfaces", () => { |
337 | 415 | expect(detectChangedScope(["ui/src/i18n/locales/en.ts"])).toEqual({ |
338 | 416 | runNode: true, |
|