qwen-code/scripts/tests
Shaojin Wen 1296186086
test(managed-agent): add the FG11b Harness-side automation store-fault gates (#14446) (#14564)
A third method of HostedAutomationFaultGatesIT, with four cases:
- store-transport: the store commits a manual run's revision 1 and its
  answer to the Harness is lost; the store client's retry meets the
  commit the store holds, and the run fires once with no restart;
- revision-1 / revision-2: the journal refuses one revision of a manual
  run's fire; after the store client's three attempts the caller gets a
  retryable 503 automation_operation_unknown, the Session writes nothing
  more until it is reloaded, and after a cold restart the same key fires
  the same run once;
- projection: the schedule mirror's projection of an update is refused
  inside the commit's transaction, so the revision rolls back with it;
  after a restart the retry commits revision 2 once.

Only this method fronts the Session Store with a relay and runs a 15 s
writer lease, so a restarted Harness takes the Session over quickly.
Four mutation witnesses are red, one of them a bundle patch of the
Harness's write latch. Found while writing it: right after a restart the
public routes pass the cold Harness's writer conflict through as
409 managed_session_writer_conflict, which the gate retries through.

Also folds in #14551's two teardown nits: each trigger drop gets its own
try, and the refusal table is dropped too.

The method measures 62.1-72.4 s and is budgeted at ~145 s: the healthy
sum moves to 5033 s and the fork to 5643 s, inside the Verify step's 105
minutes.
2026-10-18 13:07:01 +00:00
..
acp-serve-boundary-guard.test.js refactor(cli): keep acp-integration off serve internals (#8084) (#9144) 2026-08-22 12:39:08 +00:00
ai-release-notes-workflow.test.js ci(pnpm): install with pnpm everywhere and retire package-lock.json (#11859) 2026-09-20 02:11:25 +00:00
audit-runtime-critical.test.js ci: run Windows merge queue tests on ECS (#8386) 2026-08-05 12:14:42 +00:00
brand-create-safety.test.js chore(desktop): rename packages/desktop-shell to packages/desktop (#12653) 2026-09-25 05:41:25 +00:00
browser-use-assets.test.js refactor(build,release): Use pnpm workspace builds and publishing (#12400) 2026-09-21 15:38:36 +00:00
build-and-publish-image-workflow.test.js ci(ecs): file an issue when the runner fleet update fails (#10445) 2026-09-01 17:41:00 +00:00
build-sandbox-output.test.js fix(release): stop hiding sandbox build failures and check the prepared package early (#10784) 2026-09-02 11:38:33 +00:00
capture-tmux-ci.test.js ci: install tmux and zip tooling on the Linux test lane, and pin it (#8792) 2026-08-11 05:47:39 +00:00
check-build-status.test.js fix(cli): scope startup warnings to dev sessions (#8456) 2026-08-29 13:22:34 +00:00
check-contract-open-prs.test.js refactor(managed-agent): Consolidate server and broker sources (#14277) 2026-10-16 00:28:58 +00:00
check-contract-version.test.js ci(sdk-java): stop the API contract version from regressing or stalling (#13804) (#13808) 2026-10-10 05:43:18 +00:00
check-core-subpath-exports.test.js perf(cli): import core modules directly instead of the package root (#10957) 2026-09-06 11:21:50 +00:00
check-failsafe-reports.test.js test(managed-agent): Run the EventTransport fault matrix against two nodes (MQ3) (#14242) 2026-10-15 04:34:45 +00:00
check-flyway-migrations.test.js refactor(managed-agent): Consolidate server and broker sources (#14277) 2026-10-16 00:28:58 +00:00
check-flyway-open-prs.test.js refactor(managed-agent): Consolidate server and broker sources (#14277) 2026-10-16 00:28:58 +00:00
check-i18n.test.ts fix(cli): localize approval mode UI labels (#6592) 2026-07-11 00:07:03 +00:00
check-lockfile.test.js ci(pnpm): install with pnpm everywhere and retire package-lock.json (#11859) 2026-09-20 02:11:25 +00:00
check-tui-dep-direction.test.js test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
chrome-extension-package.test.js fix(ci): cover release integration regressions (#5994) 2026-06-29 11:54:11 +00:00
ci-flaky-rerun-workflow.test.js fix(ci): stop dropping agent settings in resolve and follow-up workflows (#9252) 2026-08-16 03:27:00 +00:00
ci-flaky-rerun.test.js fix(ci): read the CI patrol's status rollup one PR at a time (#10861) 2026-09-03 03:21:03 +00:00
ci-platform-lanes.test.js fix(ci): run the trusted web-shell browser smoke on the ECS pool (#14471) 2026-10-17 21:36:32 +08:00
clean-package-build-artifacts.test.js test(core): stabilize file history eviction test (#6637) 2026-07-10 06:39:52 +00:00
cli-entry.test.js feat(managed-agent): Add SSH Tool Runtime support (#14318) 2026-10-16 18:18:04 +00:00
codeql-workflow.test.js refactor(managed-agent): Consolidate server and broker sources (#14277) 2026-10-16 00:28:58 +00:00
comment-attachment-guard-workflow.test.js ci: route trusted-author fork PRs and no-checkout jobs to the ECS pool (#8502) 2026-08-04 03:48:24 +00:00
copy-bundle-openTui-assets.test.js fix(desktop): unblock macOS and Linux desktop packaging (#11518) 2026-09-10 03:33:27 +00:00
core-subpath-exports-resolution.test.js feat(acp-bridge): surface request and tool timing on paged transcript replay (#12304) 2026-09-20 09:10:36 +00:00
corepack-warmup.js test(scripts): warm the pinned corepack pnpm cache before workers fork (#12436) (#12446) 2026-09-22 05:28:28 +00:00
corepack-warmup.test.js test(scripts): warm the pinned corepack pnpm cache before workers fork (#12436) (#12446) 2026-09-22 05:28:28 +00:00
cross-package-contracts.test.js feat: delegate a subagent turn to an external agent over ACP (Claude Code first) (#11003) 2026-09-10 03:13:05 +00:00
cua-driver-release-workflow.test.js fix(cua): restore legacy Windows installer compatibility (#10792) 2026-09-02 09:13:49 +00:00
desktop-isolation.test.js fix(ci): gate Desktop and Java SDK releases on checks of the release commit (#14259) 2026-10-15 19:42:08 +08:00
desktop-oss-workflow.test.js fix(desktop): keep desktop-latest release notes pointing at the current release (#13900) 2026-10-13 16:14:52 +00:00
desktop-smoke-teardown.test.js test: skip the chmod-based core, wecom and scripts tests where permission bits do not bind (#14283) 2026-10-16 19:38:32 +08:00
dev.test.js feat(agents): add local workspace-agent collaboration (#11206) 2026-09-29 16:04:14 +00:00
e2e-shard-retry.test.js fix(ci): isolate subprocess-heavy E2E from fork pressure (#11388) 2026-09-08 15:45:07 +00:00
e2e-workflow.test.js fix(ci): bound E2E sandbox image cleanup (#13686) 2026-10-10 09:04:02 +00:00
event-loop-yield.test.js fix(ci): yield the event loop between script tests to avoid vitest RPC timeouts (#10037) (#10050) 2026-08-26 07:11:15 +00:00
event-transport-broker-ci.test.js ci(sdk-java): run the EventTransport gate lanes on the ECS pool (#14472) 2026-10-18 00:15:56 +08:00
event-transport-multi-node-ci.test.js ci(sdk-java): run the EventTransport gate lanes on the ECS pool (#14472) 2026-10-18 00:15:56 +08:00
export-html-from-chatrecord-jsonl.test.js fix(web-shell): close the four deferred #9812 review follow-ups (#11107) 2026-09-05 23:40:57 +00:00
export-html-import-meta-guard.test.js fix(web-shell): make the workspace provider guard self-diagnosing and reload on root retry (#11421) 2026-09-10 06:33:33 +00:00
export-transcript-document-template.test.js perf(export): split the transcript renderer's embedded CSS into a versioned asset (#11485) 2026-09-10 07:15:32 +00:00
generate-changelog.test.js feat(release): user-facing bilingual digest for release notes (#9216) 2026-08-17 00:12:04 +00:00
generate-release-notes.test.js feat(release): user-facing bilingual digest for release notes (#9216) 2026-08-17 00:12:04 +00:00
get-release-version-python-sdk.test.js feat(sdk-python): add network timeouts to release version helper (#3833) 2026-05-05 19:25:00 +08:00
get-release-version.test.js ci(sdk-java): guard Flyway version uniqueness and watch red main runs (#12965) 2026-10-02 06:49:12 +00:00
hosted-process-ci.test.js test(managed-agent): add the FG11b Harness-side automation store-fault gates (#14446) (#14564) 2026-10-18 13:07:01 +00:00
install-script.test.js feat(mods): run experimental headless Mod commands (#13843) 2026-10-10 16:52:23 +00:00
integration-tsconfig-core-paths-sync.test.js perf(cli): import core modules directly instead of the package root (#10957) 2026-09-06 11:21:50 +00:00
integration-vitest-config.test.ts ci: serialize integration tests on shared ECS runners (#10567) 2026-08-31 01:20:35 +00:00
interactive-session-start.test.ts test(integration): let workflow-completion reply waits inherit the helper default (#13552) (#13555) 2026-10-08 09:09:39 +00:00
issue-triage-ownership-workflow.test.js ci: remove broken legacy scheduled PR triage workflow (#8434) 2026-08-03 10:20:42 +00:00
keep-manifest-layout.test.js fix(release): keep manifest layout when bumping versions (#12487) 2026-09-23 02:54:57 +00:00
landlock-helper-assets.test.js feat(core): Add Landlock execution fallback (#12278) 2026-09-29 03:45:46 +00:00
lint.test.js fix(ci): fail yamllint and shellcheck lanes loudly on an empty git file list (#12650) 2026-10-05 12:44:27 +00:00
live-host-oss-workflow.test.js ci(pnpm): install with pnpm everywhere and retire package-lock.json (#11859) 2026-09-20 02:11:25 +00:00
main-ci-failure-issue-workflow.test.js fix(ci): classify host lock starvation as infrastructure (#14550) (#14552) 2026-10-18 08:43:20 +00:00
managed-agent-dev.test.js refactor(managed-agent): Consolidate server and broker sources (#14277) 2026-10-16 00:28:58 +00:00
managed-agent-gate-workflow.test.js ci(sdk-java): run the Hosted failover arms in their own job (#14467) 2026-10-17 14:48:59 +00:00
managed-agent-server-e2e.test.js ci(sdk-java): run the Hosted failover arms in their own job (#14467) 2026-10-17 14:48:59 +00:00
mod-worker-bundle.test.js feat(mods): Add tool interception and permission checks (PR3a) (#13950) 2026-10-12 11:16:36 +00:00
native-sandbox-cli.mjs fix(cli): Harden settings failures and sandbox command streams (#13140) 2026-10-03 12:02:48 +00:00
no-ak-integration-ci.test.js feat(workflow): discover trusted ancestor workflows in local sessions (#14369) 2026-10-18 19:54:22 +08:00
no-config-object-create-config.test.js refactor(core): centralize worktree config derivation (#9915) 2026-08-27 12:28:08 +00:00
no-config-object-create.test.js refactor(core): centralize worktree config derivation (#9915) 2026-08-27 12:28:08 +00:00
no-core-root-barrel-config.test.js ci(lint): stop new cli imports from the core package root (#11798) 2026-09-14 04:49:03 +00:00
no-core-root-barrel-import.test.js perf(cli): import core modules directly instead of the package root (#10957) 2026-09-06 11:21:50 +00:00
no-core-utils-upward-import.test.js perf(cli): import core modules directly instead of the package root (#10957) 2026-09-06 11:21:50 +00:00
no-utils-upward-import-config.test.js refactor(cli): enforce utils leaf-layer dependency direction (#9146) (#9737) 2026-08-23 14:41:49 +00:00
no-utils-upward-import.test.js refactor(cli): enforce utils leaf-layer dependency direction (#9146) (#9737) 2026-08-23 14:41:49 +00:00
package-assets.test.js test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
package-managed-agent-reference.test.mjs feat(ci): route the release lane's hosted stragglers onto ECS runners (#14336) 2026-10-16 23:13:26 +08:00
package-scripts.test.js test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
pr-force-push-reminder-workflow.test.js ci(autofix): run agents on dedicated ECS runners (#6207) 2026-07-03 07:40:07 +00:00
pr-self-report-label.test.js feat(autofix): escalate stopped takeover PRs and age out unanswered pauses (#8960) 2026-08-15 17:32:23 +00:00
qwen-autofix-fork-bridge-workflow.test.js fix(ci): gate the fork signal on fields the review payload delivers (#9469) 2026-08-22 18:47:00 +00:00
qwen-autofix-workflow.test.js fix(ci): classify host lock starvation as infrastructure (#14550) (#14552) 2026-10-18 08:43:20 +00:00
qwen-fleet-shepherd-workflow.test.js ci(shepherd): close bot PRs whose merge would change nothing (#12150) 2026-09-20 01:01:40 +00:00
qwen-pr-review-workflow.test.js fix(ci): run three hosted control-plane jobs on the ECS pool (#14469) 2026-10-17 20:01:13 +08:00
qwen-repo-hygiene-workflow.test.js ci(pnpm): install with pnpm everywhere and retire package-lock.json (#11859) 2026-09-20 02:11:25 +00:00
qwen-resolve-workflow.test.js fix(ci): salvage superseded review runs and hold the loop's report-time base refresh (#10123) 2026-09-06 05:51:06 +00:00
qwen-runner-checkout-workflow.test.js fix(ci): run the trusted web-shell browser smoke on the ECS pool (#14471) 2026-10-17 21:36:32 +08:00
qwen-triage-finalize-workflow.test.js feat(ci): gate Managed Agent changes on a full SDK Java run before merge (#14397) 2026-10-17 21:17:23 +08:00
qwen-triage-workflow.test.js test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
ready-prompt-budget.test.ts test(integration): let workflow-completion reply waits inherit the helper default (#13552) (#13555) 2026-10-08 09:09:39 +00:00
release-helpers.test.js refactor: extract shared release helper utilities (#3834) 2026-05-05 10:15:17 +08:00
release-sdk-workflow.test.js fix(ci): space PR creation from release to avoid secondary rate limit (#11444) 2026-09-09 12:59:56 +00:00
release-versioning.test.js fix(release): keep manifest layout when bumping versions (#12487) 2026-09-23 02:54:57 +00:00
release-workflow.test.js feat(ci): route the release lane's hosted stragglers onto ECS runners (#14336) 2026-10-16 23:13:26 +08:00
review-artifact-upload.test.js fix(ci): run /resolve without the container sandbox and pin its CLI version (#10428) 2026-08-31 07:37:15 +00:00
review-source-digest.test.ts test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
review-worktree-cleanup-workflow.test.js test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
rocketmq-lite-broker-script.test.js test(managed-agent): Run the EventTransport fault rows against a real RocketMQ broker (MQ2d) (#14109) 2026-10-14 06:50:19 +00:00
sandbox-command.test.js fix(cli): Harden settings failures and sandbox command streams (#13140) 2026-10-03 12:02:48 +00:00
sandbox-runtime-source-manifest.test.js feat(core): Route runtime tools through bwrap (#12269) 2026-09-20 23:41:24 +00:00
sandbox-stdio.test.py fix(cli): Harden settings failures and sandbox command streams (#13140) 2026-10-03 12:02:48 +00:00
sdk-java-workflow.test.js ci(sdk-java): run the EventTransport gate lanes on the ECS pool (#14472) 2026-10-18 00:15:56 +08:00
sdk-node-exporter-stub.test.js chore(deps): Clear high-severity CVE baseline and harden the security gate (#9584) 2026-08-21 07:43:32 +00:00
security-checks-audit-retry.test.js chore(desktop): rename packages/desktop-shell to packages/desktop (#12653) 2026-09-25 05:41:25 +00:00
security-workflows.test.js ci(pnpm): install with pnpm everywhere and retire package-lock.json (#11859) 2026-09-20 02:11:25 +00:00
serve-ab-workflow.test.js test: gate the remaining chmod-based root skips on the permission-bit probe (#14403) 2026-10-16 17:34:52 +00:00
serve-fast-path-bundle-check.test.js refactor(serve): separate ACP control plane and channel harness (#11916) 2026-09-16 07:24:11 +00:00
spotbugs-gate.test.js ci(sdk-java): run the Hosted failover arms in their own job (#14467) 2026-10-17 14:48:59 +00:00
start.test.js fix(cli): scope startup warnings to dev sessions (#8456) 2026-08-29 13:22:34 +00:00
startup-benchmark.test.js perf(cli): keep running in place when env files only hold model credentials (#12680) 2026-09-25 10:13:38 +00:00
stdio-relay.test.py fix(cli): Harden settings failures and sandbox command streams (#13140) 2026-10-03 12:02:48 +00:00
test-setup.ts fix(ci): yield the event loop between script tests to avoid vitest RPC timeouts (#10037) (#10050) 2026-08-26 07:11:15 +00:00
text-capture-core-loader-sync.test.js perf(cli): import core modules directly instead of the package root (#10957) 2026-09-06 11:21:50 +00:00
transcript-css-entry-filter.test.js perf(export): split the transcript renderer's embedded CSS into a versioned asset (#11485) 2026-09-10 07:15:32 +00:00
unit-vitest-configs.test.ts feat(extensions): add test failure report explorer (#13854) 2026-10-11 12:58:55 +00:00
update-dependency-audit-issue.test.js ci: schedule dependency audits and use native secret protection (#11005) 2026-09-05 01:08:43 +00:00
upload-aliyun-oss-assets.test.js fix(release): cap Vitest workers in the quality_scripts lane (#10755) (#10760) 2026-09-02 12:21:31 +00:00
verify-capture.test.js test(ci): make verify-capture fallback assertion rasterization-safe (#10758) 2026-09-06 08:46:27 +00:00
vitest-global-setup.test.js fix(devx): fail with actionable message when unit-test build prerequisites are missing (#9149) (#9171) 2026-08-18 13:19:09 +00:00
vitest.config.ts test(managed-agent): Run the EventTransport fault rows against a real RocketMQ broker (MQ2d) (#14109) 2026-10-14 06:50:19 +00:00
vscode-companion-no-webui-config.test.js refactor(vscode-ide-companion): complete the WebShell UI cutover (#9811) 2026-08-29 16:37:47 +00:00
web-shell-publish-artifacts.test.js fix(web-shell): polish files and trim preview resources (#14143) 2026-10-16 16:45:56 +08:00
web-terminal-build.test.ts fix(web-shell): pin es2021 floor across both build configs and harden terminal tests (#11758) 2026-09-13 09:50:26 +00:00
workflow-helpers.js ci: run Windows merge queue tests on ECS (#8386) 2026-08-05 12:14:42 +00:00
workflow-size.test.js fix(ci): reject unsupported Bash in workflow size checks (#13470) 2026-10-10 09:07:05 +00:00
workspaces.test.js chore(desktop): rename packages/desktop-shell to packages/desktop (#12653) 2026-09-25 05:41:25 +00:00