Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

Investigation Complete: Hourly CI Cleaner Not Creating PRs ✅

Root Cause Analysis

Issue: The hourly CI cleaner workflow was unable to create pull requests after fixing CI failures.

Cause: The workflow instructions referenced an incorrect tool name:

  • Incorrect: safeoutputs-create_pull_request
  • Correct: create_pull_request

Technical Details

Safe-outputs tools follow this naming convention:

  1. Config key from frontmatter: safe-outputs.create-pull-request
  2. Normalization: Hyphens → underscores: create_pull_request
  3. No prefix added: Tool name is just the normalized key

The agent was instructed to call a non-existent tool, causing silent failure when attempting to create PRs.

Fix Implemented ✅

  • Updated .github/workflows/hourly-ci-cleaner.md line 103
  • Changed tool reference from safeoutputs-create_pull_request to create_pull_request
  • Recompiled all workflows (109/109 successful)
  • Validated with strict mode (0 errors, 0 warnings)
  • Verified no other workflows have similar issues
  • Code review passed with no comments
  • Stored memory for future reference

Impact

The hourly CI cleaner will now properly create pull requests when fixing CI failures on the main branch. The agent can successfully call the create_pull_request tool to submit fixes for review.

Testing Recommendation

The next time CI fails on main branch, the hourly workflow should successfully create a PR with the fixes. Monitor the workflow run to confirm the fix works end-to-end.

Original prompt

Investigate why the hourly ci cleaner is not creating pull requests

Custom agent used: debug-agentic-workflow
Debug and refine agentic workflows using gh-aw CLI tools - analyze logs, audit runs, and improve workflow performance


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 11, 2025 13:16
… PRs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…est to create_pull_request

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review December 11, 2025 13:28
@pelikhan pelikhan merged commit 5d8da6f into main Dec 11, 2025
5 checks passed
@pelikhan pelikhan deleted the copilot/investigate-ci-cleaner-issue branch December 11, 2025 13:28
Copilot AI requested a review from pelikhan December 11, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants