From 0c97e143058f69d38b047ab14f0694d22ed2faea Mon Sep 17 00:00:00 2001 From: qwen-code-dev-bot Date: Mon, 19 Oct 2026 08:09:16 +0800 Subject: [PATCH] test(e2e): mount the fixture root into the container sandbox for workflow ancestor discovery (#14589) (#14593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: qwen-code-dev-bot Co-authored-by: Qwen-Coder Co-authored-by: 易良 <1204183885@qq.com> --- integration-tests/cli/workflow-ancestor-discovery.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration-tests/cli/workflow-ancestor-discovery.test.ts b/integration-tests/cli/workflow-ancestor-discovery.test.ts index ef92d92c29..4b64a27e75 100644 --- a/integration-tests/cli/workflow-ancestor-discovery.test.ts +++ b/integration-tests/cli/workflow-ancestor-discovery.test.ts @@ -16,6 +16,7 @@ import { import { applyContainerSandboxNoProxy, fakeServerHostOptions, + IS_CONTAINER_SANDBOX, TestRig, } from '../test-helper.js'; @@ -179,6 +180,11 @@ describe('headless local workflow ancestor discovery', () => { vi.stubEnv('QWEN_RUNTIME_DIR', join(fixtureRoot, '.runtime')); vi.stubEnv('QWEN_CODE_TRUSTED_FOLDERS_PATH', trustPath); vi.stubEnv('QWEN_CODE_DISABLE_WORKFLOWS', '0'); + if (IS_CONTAINER_SANDBOX) { + // The container bind-mounts only the workdir (packages/a); the trusted + // ancestors under test sit above it, so mount the fixture root too. + vi.stubEnv('SANDBOX_MOUNTS', fixtureRoot); + } rig.testDir = target; await rig.run( 'Run the shared workflow with the probe argument.',