Skip to content

ci-pipeline-monitor issue filing script#127929

Merged
kg merged 12 commits into
dotnet:mainfrom
kg:ci-pipeline-monitor-issue-filing
May 20, 2026
Merged

ci-pipeline-monitor issue filing script#127929
kg merged 12 commits into
dotnet:mainfrom
kg:ci-pipeline-monitor-issue-filing

Conversation

@kg
Copy link
Copy Markdown
Member

@kg kg commented May 7, 2026

This PR adds a manually triggered script that will generate github issues/comments from failures in the CI pipeline monitor skill's database. Teaching the agent to invoke the script is left as a future exercise, it's quite easy to manually trigger the script after running the agent.

By default it runs in 'dry run' mode and just prints what it would do, you have to explicitly pass --go to tell it to issue gh commands.

When generating an issue or a comment it generates a persistent 'stamp' file for each affected build_id. This allows it to avoid generating duplicate comments for the same build if you run the script multiple times in a single week, or if you run the script twice in a row to resolve a failure.

Copy link
Copy Markdown
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 adds a new manually-invoked Python script under the ci-pipeline-monitor skill to generate GitHub issues and/or add comments based on rows in the monitor’s SQLite database, defaulting to a dry-run unless --go is provided.

Changes:

  • Add update_github.py script to read failures from monitor.db and prepare gh issue create / gh issue comment commands.
  • Generate a formatted Markdown body (via --body-file) including pipeline links, console log/source links, and failure details for new issues.

Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
@kg kg marked this pull request as ready for review May 8, 2026 16:45
Copilot AI review requested due to automatic review settings May 8, 2026 16:45
Copy link
Copy Markdown
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 8 comments.

Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Copilot AI review requested due to automatic review settings May 11, 2026 17:08
Copy link
Copy Markdown
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

Comment thread .github/skills/ci-pipeline-monitor/scripts/validate_results.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/validate_results.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/validate_results.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/validate_results.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/validate_results.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Copilot AI review requested due to automatic review settings May 20, 2026 15:27
@kg kg force-pushed the ci-pipeline-monitor-issue-filing branch from 2d5a5ba to be3b2f1 Compare May 20, 2026 15:27
@kg kg requested a review from JulieLeeMSFT May 20, 2026 15:28
Copy link
Copy Markdown
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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py Outdated
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Comment thread .github/skills/ci-pipeline-monitor/scripts/update_github.py
Comment thread .github/skills/ci-pipeline-monitor/.gitignore Outdated
@kg kg merged commit 756ebec into dotnet:main May 20, 2026
28 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-skills Agent Skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants