Bug: get_pipeline_logs returns empty log content for all pipelines #3
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/woodpecker-mcp#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
No plan — standalone bug fix.
Repo
forgejo_admin/woodpecker-mcpUser Story
As an AI agent monitoring CI pipelines
I want to read actual log content from pipeline steps
So that I can diagnose failures without needing kubectl or the Woodpecker UI
Context
The
get_pipeline_logsMCP tool returns log entries as empty newlines for ALL pipelines — both successful and failed. This was discovered while diagnosing a CI failure on pal-e-docs that had been silently broken for 7 consecutive pipelines (#111-#118). The empty logs made it impossible to see that the failure was a simpleruff formatcheck.The Woodpecker API returns log entries as an array of objects with fields like
line,data,time, etc. The MCP tool appears to be extracting only the newlines without the actualdatacontent.Evidence:
get_pipeline_logsreturns all newlines, no contentget_pipeline_logsalso returns all newlines, no contentFile Targets
Acceptance Criteria
get_pipeline_logsreturns actual log line content (the command output from each step)max_linestruncation still worksTest Expectations
get_pipeline_logson a known successful pipeline — should see actual command outputget_pipeline_logson a known failed pipeline — should see error outputConstraints
Checklist
Related
woodpecker-mcpprojectbug-ci-ruff-format-migrate-script— the bug this made invisible