Skip to content

Add debugging logs to playwright MCP in smoke-copilot workflow#4902

Merged
pelikhan merged 4 commits into
mainfrom
copilot/add-debugging-logs-to-playwright
Nov 27, 2025
Merged

Add debugging logs to playwright MCP in smoke-copilot workflow#4902
pelikhan merged 4 commits into
mainfrom
copilot/add-debugging-logs-to-playwright

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 27, 2025

Adds comprehensive debugging capabilities to the smoke-copilot workflow to diagnose Playwright MCP issues when running with firewall enabled.

Changes

  • Pre-flight container test: Validates Playwright MCP Docker container can start before workflow execution
  • Trace capture: Enables --save-trace for browser debugging
  • Debug logging: Sets DEBUG: "copilot:*" env var and log-level: debug for firewall
  • Post-run log collection: Collects MCP logs from /tmp/gh-aw/mcp-logs/playwright and uploads as artifacts
engine:
  id: copilot
  env:
    DEBUG: "copilot:*"
network:
  firewall:
    log-level: debug
tools:
  playwright:
    args:
      - "--save-trace"
Original prompt

you are tasked to add more debugging logs to the playwright mcp server to the smoke-copilot workflow (firewall enabled)

  1. Add a pre-flight Docker container test to see if playwright can start successfully (using mcp-inspector https://github.com/modelcontextprotocol/inspector)

  2. enable trace capture

  3. copilot cli should output DEBUG logs

  4. post run should collect playwright MCP logs


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 27, 2025
- Add pre-flight Docker container test for Playwright MCP
- Enable trace capture with --save-trace arg
- Configure copilot CLI debug logs with DEBUG: copilot:*
- Set firewall log-level to debug
- Add post-steps to collect and upload Playwright MCP logs

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add debugging logs to Playwright MCP server Add debugging logs to playwright MCP in smoke-copilot workflow Nov 27, 2025
Copilot AI requested a review from Mossaka November 27, 2025 01:13
@pelikhan pelikhan added the smoke label Nov 27, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 27, 2025

❌ Agentic Smoke Copilot failed and wasn't able to produce a result.

@github-actions
Copy link
Copy Markdown
Contributor

Agentic Smoke Codex triggered by this pull request.

@github-actions
Copy link
Copy Markdown
Contributor

Agentic Smoke Copilot No Firewall triggered by this pull request.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 27, 2025

✅ Agentic Changeset Generator completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

Agentic Smoke Claude triggered by this pull request.

@github-actions
Copy link
Copy Markdown
Contributor

Smoke Test: Copilot (No Firewall)

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PR data successfully
  • ✅ File Writing: Created /tmp/smoke-test-copilot-20251127-011640.txt
  • ✅ Bash Tool: File verified with content
  • ✅ Playwright MCP: Navigated to github.com, title contains "GitHub"

Overall Status: PASS

AI generated by Smoke Copilot No Firewall for #4902

@github-actions
Copy link
Copy Markdown
Contributor

Smoke Test Results - Claude

Last 2 merged PRs:

✅ GitHub MCP - fetched PRs successfully
✅ File writing - created /tmp/gh-aw/agent/smoke-test-claude-20251127.txt
✅ Bash tool - verified file content
✅ Playwright - navigated to GitHub (title: "GitHub · Change is constant. GitHub keeps you ahead. · GitHub")

Overall status: PASS

AI generated by Smoke Claude for #4902

@github-actions
Copy link
Copy Markdown
Contributor

  • Update smoke agentic workflows to create extremely short answers
  • docs: clarify AWF does not support wildcard domain syntax
    ✅ GitHub MCP
    ✅ File write
    ✅ Bash cat
    ✅ Playwright title
    Overall: PASS

AI generated by Smoke Codex for #4902

@pelikhan pelikhan marked this pull request as ready for review November 27, 2025 01:37
@pelikhan pelikhan merged commit d7e6025 into main Nov 27, 2025
3 checks passed
@pelikhan pelikhan deleted the copilot/add-debugging-logs-to-playwright branch November 27, 2025 01:37
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.

3 participants