Skip to content

Add agent-generated files directory to artifact uploads#13945

Merged
pelikhan merged 5 commits intomainfrom
copilot/investigate-mcp-server-failure-again
Feb 5, 2026
Merged

Add agent-generated files directory to artifact uploads#13945
pelikhan merged 5 commits intomainfrom
copilot/investigate-mcp-server-failure-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

The smoke-claude workflow writes status summaries to /tmp/gh-aw/agent/ but these files were not persisted. Workflows that instruct agents to write output files need this directory uploaded for debugging and analysis.

Changes

  • Added /tmp/gh-aw/agent/ to artifact upload paths (pkg/workflow/compiler_yaml_main_job.go)
    • Appended to artifactPaths slice after agent stdio logs
    • Uses existing if-no-files-found: ignore so empty directories don't fail uploads
    • All 145 workflows recompiled with updated path

Example Usage

# Workflow instructs agent to write status
10. **Agentic Workflows MCP Testing**: 
   - Use the `agentic-workflows` MCP tool with the `status` method
   - Write summary to `/tmp/gh-aw/agent/smoke-claude-status-${{ github.run_id }}.txt`
# Compiled workflow now uploads the directory
- name: Upload agent artifacts
  path: |
    /tmp/gh-aw/agent-stdio.log
    /tmp/gh-aw/agent/  # ← New

Note: MCP server startup logging (DEBUG="*" + GitHub Actions notices) was already implemented in all three server startup scripts.

Original prompt

Investigate why the agentic-workflows MCP server is failing. See failing status call.

https://github.com/github/gh-aw/actions/runs/21717811779


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Add /tmp/gh-aw/agent/ to artifactPaths in compiler_yaml_main_job.go
- This enables persisting agent-generated files like smoke-claude status summaries
- MCP server startup logging with DEBUG="*" and GitHub Actions notices already implemented
- Recompiled all 145 workflows to include the new artifact path

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review February 5, 2026 16:03
Copilot AI review requested due to automatic review settings February 5, 2026 16:03
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

This PR enables persisting agent-generated files by adding /tmp/gh-aw/agent/ to artifact upload paths across all 145 workflows. This supports workflows like smoke-claude that instruct agents to write status summaries and test files to this directory.

Changes:

  • Added /tmp/gh-aw/agent/ directory to unified artifact upload paths in the workflow compiler
  • Recompiled all 145 workflow files to include the new artifact path
  • Verified existing MCP server startup logging already uses DEBUG="*" and GitHub Actions notices

Reviewed changes

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

File Description
pkg/workflow/compiler_yaml_main_job.go Added /tmp/gh-aw/agent/ to artifactPaths collection with clear documentation
.github/workflows/*.lock.yml (145 files) All workflow lock files regenerated to include the new artifact path in unified uploads

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

Copilot AI changed the title [WIP] Investigate failure of agentic-workflows MCP server Add agent-generated files directory to artifact uploads Feb 5, 2026
Copilot AI requested a review from pelikhan February 5, 2026 16:07
@pelikhan pelikhan added the smoke label Feb 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Changeset Generator failed. Please review the logs for details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Agent Container Tool Check

Tool Status Version
bash 5.2.21(1)-release
sh ok
git 2.52.0
jq jq-1.7
yq v4.50.1
curl curl
gh 2.86.0
node v20.20.0
python3 Python
go go1.24.12
java 5.2.21(1)-release
dotnet missing

Result: 11/12 tools available ❌ FAIL

Missing Tool: .NET (dotnet) runtime is not available in the container.

AI generated by Agent Container Smoke Test

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP
  • ✅ Safe Inputs GH CLI
  • ✅ Serena MCP
  • ✅ Playwright
  • ✅ File Writing
  • ✅ Bash Tool
  • ✅ Discussion Interaction
  • ✅ Build gh-aw
  • ✅ Workflow Dispatch

Overall: ✅ PASS

cc: @pelikhan @Copilot

AI generated by Smoke Copilot

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@pelikhan pelikhan merged commit eacca0a into main Feb 5, 2026
46 of 47 checks passed
@pelikhan pelikhan deleted the copilot/investigate-mcp-server-failure-again branch February 5, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants