test(e2e): mount the fixture root into the container sandbox for workflow ancestor discovery (#14589) (#14593)

Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: 易良 <1204183885@qq.com>
This commit is contained in:
qwen-code-dev-bot 2026-10-19 08:09:16 +08:00 • committed by GitHub
parent 86ba7ba8b4
commit 0c97e14305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.',