Skip to content

fix: replace hardcoded fixture fallback with fail-fast :? syntax#8606

Merged
v1212 merged 1 commit into
trangevi/test-scenariosfrom
wujia/fix-fixture-fallback
Jun 11, 2026
Merged

fix: replace hardcoded fixture fallback with fail-fast :? syntax#8606
v1212 merged 1 commit into
trangevi/test-scenariosfrom
wujia/fix-fixture-fallback

Conversation

@v1212

@v1212 v1212 commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Replaces the hardcoded /mnt/c/Repos/azure-dev/... fallback in 4 Tier 1 scenario pre-hooks with bash :? expansion.

Before: If AZD_AGENTS_FIXTURES is unset, cp silently tries Travis's local path → cryptic 'No such file or directory'.

After: Shell immediately errors with: 'Set AZD_AGENTS_FIXTURES to the WSL path of your fixtures directory' — fail-fast, clear message.

Files changed:

  • 10-init-deploy-mode-code.yaml
  • 10-init-deploy-mode-container.yaml
  • 10-init-from-code.yaml
  • 10-init-validate-deploy-mode.yaml

The 4 Tier 1 scenarios that copy fixtures used a hardcoded /mnt/c/Repos/...
fallback path (Travis's machine). Replace with bash :? expansion so that
missing AZD_AGENTS_FIXTURES fails immediately with a clear message instead
of a cryptic 'No such file or directory'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@v1212 v1212 merged commit 69538a6 into trangevi/test-scenarios Jun 11, 2026
5 of 15 checks passed
@github-actions github-actions Bot added the ext-agents azure.ai.agents extension label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-agents azure.ai.agents extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant