Skip to content

fix: match case-insensitive AWF binary step name in postprocessor#1309

Merged
lpcox merged 2 commits intoclaude/auto-inject-gh-hostfrom
copilot/67091544796-fix-github-actions-workflow
Mar 14, 2026
Merged

fix: match case-insensitive AWF binary step name in postprocessor#1309
lpcox merged 2 commits intoclaude/auto-inject-gh-hostfrom
copilot/67091544796-fix-github-actions-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 14, 2026

smoke-codex.lock.yml was failing because its compiler-generated step name Install AWF binary (uppercase) didn't match the postprocessor regex Install awf binary (lowercase). The regex silently skipped the replacement, leaving the pre-built release binary installed alongside --build-local — which expects container source at /snapshot/gh-aw-firewall/containers/api-proxy (doesn't exist in the snapshot bundle).

Changes

  • scripts/ci/postprocess-smoke-workflows.ts: Broaden installStepRegex from literal awf to [Aa][Ww][Ff] to match either casing
  • smoke-codex.lock.yml: Re-ran postprocessor — Install AWF binary now replaced with Install awf dependencies / Build awf / Install awf binary (local) steps, consistent with other smoke workflows

Copilot AI and others added 2 commits March 14, 2026 21:59
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
@lpcox lpcox marked this pull request as ready for review March 14, 2026 22:06
@lpcox lpcox requested a review from Mossaka as a code owner March 14, 2026 22:06
Copilot AI review requested due to automatic review settings March 14, 2026 22:06
@lpcox lpcox merged commit 4f951dc into claude/auto-inject-gh-host Mar 14, 2026
@lpcox lpcox deleted the copilot/67091544796-fix-github-actions-workflow branch March 14, 2026 22:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a CI postprocessing mismatch where the compiler-generated workflow step name used Install AWF binary (uppercase) but the postprocessor only matched Install awf binary (lowercase), causing the local-build replacement to be skipped and leading to failures when --build-local expected sources that aren’t present in the snapshot bundle.

Changes:

  • Updated the postprocessor’s install-step regex to match AWF in either casing.
  • Regenerated smoke-codex.lock.yml so the release-binary install step is replaced with the local build + local install steps (consistent with other smoke workflows).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/ci/postprocess-smoke-workflows.ts Broadens the regex to match Install AWF binary as well as Install awf binary, ensuring postprocessing reliably replaces the install step.
.github/workflows/smoke-codex.lock.yml Applies the postprocessor output: installs deps, builds locally, and installs a local awf wrapper instead of downloading a release binary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

lpcox added a commit that referenced this pull request Mar 14, 2026
…1305)

* Initial plan

* feat(cli): auto-inject GH_HOST from GITHUB_SERVER_URL

- Add extractGhHostFromServerUrl() helper to extract hostname from GITHUB_SERVER_URL
- Auto-inject GH_HOST env var in agent container when GHES/GHEC detected
- Add comprehensive unit tests for extractGhHostFromServerUrl()
- Add integration tests for GH_HOST auto-injection
- Ensures gh CLI inside agent container targets correct GitHub instance

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

* docs: add GH_HOST auto-injection documentation

- Document automatic GH_HOST environment variable injection
- Update GHEC and GHES configuration sections
- Explain how GH_HOST ensures gh CLI targets correct instance

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

* fix: make smoke-codex instructions clearly identifiable as workflow task for Codex model (#1307)

* Initial plan

* fix: make smoke-codex instructions clearly identifiable as workflow task for Codex model

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

* fix: match case-insensitive AWF binary step name in postprocessor (#1309)

* Initial plan

* fix: match case-insensitive AWF binary step name in postprocessor

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

* fix: wrap placeholders in backticks in smoke-codex.md (#1310)

* Initial plan

* fix: wrap placeholders in backticks in smoke-codex.md

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

---------

Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: Landon Cox <landon.cox@microsoft.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants