Fix BYOK smoke workflow COPILOT_MODEL fallback override in postprocessing#2049
Fix BYOK smoke workflow COPILOT_MODEL fallback override in postprocessing#2049
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a CI failure in the smoke-copilot-byok compiled workflow by postprocessing the generated lock file to avoid a compiler-emitted COPILOT_MODEL empty-string fallback overriding the workflow-level default model when GH_AW_MODEL_AGENT_COPILOT is unset.
Changes:
- Add a targeted postprocessing rewrite for
smoke-copilot-byok.lock.ymlto replace|| ''with a non-empty fallback. - Add regex-focused Jest tests covering the rewrite and idempotency.
Show a summary per file
| File | Description |
|---|---|
| scripts/ci/postprocess-smoke-workflows.ts | Adds a BYOK-only postprocessing transform to rewrite the empty COPILOT_MODEL fallback in the compiled lock workflow. |
| scripts/ci/postprocess-smoke-workflows.test.ts | Adds tests validating the new regex rewrite behavior and idempotency. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 2
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
Smoke Test Results ✅PR: fix: allow package.json/lock in dep security monitor PRs (#2041)
Status: PASS cc:
|
Smoke Test Results — PASS ✅
Overall: PASS
|
🔥 BYOK Smoke Test — PASS
Running in BYOK offline mode ( cc
|
🔥 OpenCode Smoke Test Results
Overall: PASS
|
Smoke Test: GitHub Actions Services Connectivity ✅
All checks passed.
|
|
PR titles: "fix: allow package.json/lock in dep security monitor PRs"; "fix: make smoke-claude safe outputs trigger-aware for workflow_dispatch"
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
smoke-copilot-byokwas failing because the compiled agent step setCOPILOT_MODELto an empty fallback (|| ''), which overrode the workflow-level default whenGH_AW_MODEL_AGENT_COPILOTwas unset. This caused Copilot BYOK startup to fail due to missing explicit model.What changed
scripts/ci/postprocess-smoke-workflows.tsto patchsmoke-copilot-byok.lock.ymlduring postprocessing:COPILOT_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || '' }}COPILOT_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'claude-opus-4.6' }}Test coverage
scripts/ci/postprocess-smoke-workflows.test.tsfor:claude-opus-4.6Example