qwen-code/integration-tests/cli
Ryan Gabriel 6420d69d14
test(acp-cron): kill whole process tree on cleanup to stop ENOTEMPTY flakes (#9815)
* test(acp-cron): kill whole process tree on cleanup to stop ENOTEMPTY flakes

The recurring cron job under QWEN_CODE_TEST_CRON_FAST can drop a fresh
file into the fake QWEN_HOME while rmSync walks it, failing cleanup
with ENOTEMPTY. The direct agent.kill() only signals the CLI process;
grandchildren spawned by the CLI keep running and can still write.

Spawn the CLI in its own process group and signal the group during
cleanup (taskkill /T on Windows). Also widen the rmSync retry window.

Same flake tracked by #9766, #9643 and #9555.

* test(acp-cron): kill whole process tree on cleanup to stop ENOTEMPTY flakes

The recurring cron job under QWEN_CODE_TEST_CRON_FAST can drop a fresh
file into the fake QWEN_HOME while rmSync walks it, failing cleanup
with ENOTEMPTY. The direct agent.kill() only signals the CLI process;
grandchildren spawned by the CLI keep running and can still write.

Spawn the CLI in its own process group and signal the group during
cleanup (taskkill /T on Windows). Replace the widened rmSync built-in
retries with fresh-walk retry attempts.

Same flake tracked by #9766, #9643 and #9555.
2026-08-24 08:23:33 +00:00
..
_daemon-benchmark-helpers.ts test(cli): add daemon startup benchmark (#5825) 2026-06-25 06:56:13 +00:00
_daemon-harness.ts feat(mcp): reconcile MCP servers live on settings change (#5561) 2026-06-25 14:50:37 +00:00
_daemon-perf-report.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
_first-output-benchmark.test.ts test(integration): Measure immediate prompt dispatch stages (#7994) 2026-07-29 23:37:46 +00:00
_first-output-benchmark.ts test(integration): Measure immediate prompt dispatch stages (#7994) 2026-07-29 23:37:46 +00:00
acp-cron.test.ts test(acp-cron): kill whole process tree on cleanup to stop ENOTEMPTY flakes (#9815) 2026-08-24 08:23:33 +00:00
acp-integration.test.ts perf(review): extend the convergence pair to 3B (chunked) reviews (#8903) 2026-08-12 01:36:42 +00:00
cron-tools.test.ts feat(core): enable loop/cron tools by default (#4950) 2026-06-10 23:21:53 +08:00
daemon-invocation-context.test.ts feat(core): propagate trusted daemon invocation context (#7279) 2026-07-23 06:49:11 +00:00
edit.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
extensions-install.test.ts fix(tests): await rig setup in Qoder plugin install integration test (#8793) 2026-08-09 08:31:39 +00:00
file-system.test.ts fix(integration-tests): make the project typecheckable and fix what that found (#8693) 2026-08-08 16:32:31 +00:00
gen-ai-telemetry.test.ts feat(telemetry): Trace main agent invocations (#9107) 2026-08-14 02:50:22 +00:00
json-output.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
json-schema.test.ts fix(test): repair stale --json-schema integration assertion (#4075) 2026-05-12 12:00:57 +08:00
list_directory.test.ts feat(core): make list_directory opt-in (disabled by default) (#9424) 2026-08-21 07:24:05 +00:00
mcp_server_cyclic_schema.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
mock-acp-typecheck.test.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
monitor.test.ts ci(e2e): stabilize MCP/CLI flows and cancel stale main runs (#4039) 2026-05-12 16:09:30 +08:00
notebook-edit.test.ts fix(integration-tests): make the project typecheckable and fix what that found (#8693) 2026-08-08 16:32:31 +00:00
qwen-config-dir.test.ts fix(tests): avoid blocking integration test cleanup (#8688) 2026-08-08 02:17:17 +00:00
qwen-daemon-first-output-benchmark.test.ts test(integration): Measure immediate prompt dispatch stages (#7994) 2026-07-29 23:37:46 +00:00
qwen-daemon-loadtest.test.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
qwen-daemon-startup-benchmark.test.ts test(cli): add daemon startup benchmark (#5825) 2026-06-25 06:56:13 +00:00
qwen-daemon-vs-cli-benchmark.test.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
qwen-serve-baseline.test.ts refactor(cli): Remove serve bridge re-export shims (#5955) 2026-06-28 13:20:44 +00:00
qwen-serve-channel-workers.test.ts fix(cli): Preserve channel startup failure details (#6950) 2026-07-16 01:17:19 +00:00
qwen-serve-client-mcp.test.ts fix(ci): cover release integration regressions (#5994) 2026-06-29 11:54:11 +00:00
qwen-serve-live-journal-recovery.test.ts fix(integration-tests): ack daemon tool-guard handshake in the mock ACP child (#9159) (#9161) 2026-08-15 18:28:01 +00:00
qwen-serve-routes.test.ts fix(cli): Recover sessions across archive races (#9513) 2026-08-22 14:01:59 +00:00
qwen-serve-streaming.test.ts feat(serve): add pollable daemon turn status (#9080) 2026-08-18 06:35:17 +00:00
qwen-serve-webui-live-journal-recovery.test.ts fix(acp-bridge): bound live journal replay chunks (#8801) 2026-08-10 09:52:17 +00:00
read_many_files.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
run_shell_command.test.ts ci(e2e): stabilize MCP/CLI flows and cancel stale main runs (#4039) 2026-05-12 16:09:30 +08:00
save_memory.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
settings-migration.test.ts fix(tests): avoid blocking integration test cleanup (#8688) 2026-08-08 02:17:17 +00:00
simple-mcp-server.test.ts fix(ci): restore release integration env controls (#5121) 2026-06-15 15:56:29 +08:00
sleep-interception.test.ts fix(integration-tests): make the project typecheckable and fix what that found (#8693) 2026-08-08 16:32:31 +00:00
stdin-context.test.ts fix(integration-tests): make the project typecheckable and fix what that found (#8693) 2026-08-08 16:32:31 +00:00
telemetry.test.ts fix(tests): avoid blocking integration test cleanup (#8688) 2026-08-08 02:17:17 +00:00
todo_write.test.ts fix(integration-tests): make the project typecheckable and fix what that found (#8693) 2026-08-08 16:32:31 +00:00
tool-search.test.ts feat(core): enable loop/cron tools by default (#4950) 2026-06-10 23:21:53 +08:00
utf-bom-encoding.test.ts refactor(tests): reorganize integration tests by execution mode 2026-03-29 05:49:17 +00:00
write_file.test.ts fix(integration-tests): make the project typecheckable and fix what that found (#8693) 2026-08-08 16:32:31 +00:00