Skip to content

Fix Copilot AWF startup path handling for Daily Issues Report failures#36952

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/aw-daily-issues-report-fix
Draft

Fix Copilot AWF startup path handling for Daily Issues Report failures#36952
Copilot wants to merge 3 commits into
mainfrom
copilot/aw-daily-issues-report-fix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 4, 2026

The Daily Issues Report workflow was failing in scheduled runs with a generic “engine terminated before producing output” issue. The underlying failure was Copilot startup inside AWF chroot where node was not resolvable, causing early exit (127) before any agent output.

  • Root cause addressed

    • Copilot AWF execution relied on node discovery that could be lost under chroot/sudo path behavior, resulting in a hard startup failure.
  • Compiler/runtime command fix

    • Updated Copilot engine command generation to prepend the resolved GH_AW_NODE_BIN directory to PATH before launching AWF.
    • This preserves node resolution in AWF chroot and allows copilot_harness to start consistently.
  • Golden fixture alignment

    • Updated affected wasm golden outputs for Copilot execution templates to reflect the new PATH line in generated workflow scripts.
GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true)
export GH_AW_NODE_BIN
if [ -n "$GH_AW_NODE_BIN" ] && [ -x "$GH_AW_NODE_BIN" ]; then
  export PATH="$(dirname "$GH_AW_NODE_BIN"):$PATH"
fi

Copilot AI linked an issue Jun 4, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits June 4, 2026 16:28
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix workflow failure in daily issues report generator Fix Copilot AWF startup path handling for Daily Issues Report failures Jun 4, 2026
Copilot AI requested a review from pelikhan June 4, 2026 16:34
@pelikhan pelikhan added the awf label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Daily Issues Report Generator failed

2 participants