aws-toolkit-vscode
aws-toolkit-vscode copied to clipboard
unreliable test: SamCliLocalInvokeInvocation, ChildProcess tests are slow
(from Windows CI)
SamCliLocalInvokeInvocation
✔ invokes `sam local` with args (7671ms)
✔ Passes template resource name to sam cli (1703ms)
✔ Passes template path to sam cli (1583ms)
✔ Passes event path to sam cli (2268ms)
✔ Passes env-vars path to sam cli (1570ms)
✔ Passes debug port to sam cli (1568ms)
✔ undefined debug port does not pass to sam cli (1568ms)
✔ Passes docker network to sam cli (1774ms)
✔ Does not pass docker network to sam cli when undefined (2261ms)
✔ passes --skip-pull-image to sam cli if skipPullImage is true (1568ms)
✔ does not pass --skip-pull-image to sam cli if skipPullImage is false (1565ms)
✔ does not pass --skip-pull-image to sam cli if skipPullImage is undefined (1570ms)
✔ Passes debuggerPath to sam cli (1769ms)
✔ Does not pass debuggerPath to sam cli when undefined (1570ms)
also ChildProcess :
2022-06-03T02:45:01.7774675Z [0m ChildProcess[0m
2022-06-03T02:45:01.7774976Z [0m run[0m
2022-06-03T02:45:01.8543459Z [32m ✔[0m[90m starts and captures stdout - windows[0m[31m (705ms)[0m
2022-06-03T02:45:02.5709247Z [32m ✔[0m[90m runs cmd files containing a space in the filename and folder[0m[31m (704ms)[0m
2022-06-03T02:45:03.2533512Z [32m ✔[0m[90m errs when starting twice - windows[0m[31m (669ms)[0m
2022-06-03T02:45:04.2837880Z [32m ✔[0m[90m runs scripts containing a space in the filename and folder[0m[31m (1018ms)[0m
2022-06-03T02:45:05.4812674Z [32m ✔[0m[90m reports error for missing executable[0m[31m (1181ms)[0m
2022-06-03T02:45:05.5023757Z [0m Extra options[0m
2022-06-03T02:45:06.5293470Z [32m ✔[0m[90m can report errors[0m[31m (1018ms)[0m
2022-06-03T02:45:07.8951017Z [32m ✔[0m[90m can reject on errors if `rejectOnError` is set[0m[31m (1353ms)[0m
2022-06-03T02:45:08.9303743Z [32m ✔[0m[90m kills the process if an error is reported[0m[31m (1020ms)[0m
2022-06-03T02:45:09.6517739Z [32m ✔[0m[90m can merge with base options[0m[31m (704ms)[0m
2022-06-03T02:45:10.3399460Z [32m ✔[0m[90m uses `Timeout` objects[0m[31m (672ms)[0m
2022-06-03T02:45:11.0542796Z [32m ✔[0m[90m still runs if the timer completed (not rejected) after starting[0m[31m (704ms)[0m
2022-06-03T02:45:11.0887307Z [32m ✔[0m[90m rejects if using a completed timer[0m
2022-06-03T02:45:11.0944344Z [0m stop()[0m
2022-06-03T02:45:11.8746797Z [32m ✔[0m[90m detects running processes and successfully stops a running process - Windows[0m[31m (769ms)[0m
2022-06-03T02:45:12.6558170Z [32m ✔[0m[90m cannot stop() previously stopped processes - Windows[0m[31m (769ms)[0m
This is a common failure:
1 failing
1) SamCliLocalInvokeInvocation
invokes `sam local` with args:
Error: Test length exceeded max duration: 30 seconds
[No Pending UI Elements Found]
at Timeout._onTimeout (src/test/setupUtil.ts:44:32)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)