Capture exit codes and stderr when gh CLI commands fail, fix Docker git ownership#14156
Capture exit codes and stderr when gh CLI commands fail, fix Docker git ownership#14156
Conversation
- Extract exit code from ExitError when gh workflow list fails - Capture and log stderr output for debugging - Log the full command that was executed - Apply same pattern to gh workflow disable command in restoreWorkflowState - Add os/exec import for ExitError type - Match logging pattern used in fetchLatestRunsByRef for consistency Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
❌ Changeset Generator failed. Please review the logs for details. |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
Agent Container Tool Check
Result: 11/12 tools available Notes:
|
Smoke Test Results ✅PR #14156 - Capture exit codes and stderr when gh CLI commands fail
Status: PASS | Run §21755113641 cc @pelikhan
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
@copilot the gh workflow command failed with this message: Fix Dockerfile configure to remove this issue. |
Configure git to trust all directories in Dockerfile to prevent "fatal: detected dubious ownership in repository" errors when running the container with mounted volumes owned by different users. This is necessary because the container runs as root but the mounted workspace directory is owned by the host user (e.g., runner in GitHub Actions). Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in commit 21cd16e. Added |
|
✅ Changeset Generator completed successfully! |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
Agent Container Tool Check - Smoke Test Results
Result: 10/12 tools available ❌ Missing Tools:
Core development tools (bash, git, gh, node, python3, go) and essential utilities (jq, yq, curl) are all available and functional.
|
Smoke Test Results - Run 21755850804PRs Reviewed:
Test Results:
Overall Status:
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
@copilot increase smoke-claude timeout to 15min |
When
gh workflow listfailed in the status command, error logs contained only wrapped errors without exit codes, stderr output, or the executed command. Additionally, the Docker container was experiencing "dubious ownership in repository" errors when running with mounted volumes.Changes
Enhanced
fetchGitHubWorkflowserror handlingexec.ExitErrorworkflowsLogApplied same pattern to
restoreWorkflowStategh workflow disablefailuresFixed Docker container git ownership issue
git config --global --add safe.directory '*'to DockerfileExample
Before:
After:
Pattern matches existing implementation in
fetchLatestRunsByReffor consistency.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Changeset
gh workflow list/disablecommands and configure the Docker image to trust every directory so mounted volumes do not trigger dubious ownership errors.