Skip to content

Bug Filing Description Improvements - #418

Open
tomrittervg wants to merge 2 commits into
masterfrom
2026-06-26-commit-summary-comments
Open

tomrittervg wants to merge 2 commits into
masterfrom
2026-06-26-commit-summary-comments

Conversation

@tomrittervg

Copy link
Copy Markdown
Collaborator

Adds a new mode that chunks full details across comments. Supersedes #416

Some libraries would like to have the full commit details for all commits
when a bug is filed.  Right now we will make bug descriptions less and less
verbose to fit into the one-comment text limit.

Instead, we can keep it at full verbosity and just split the text into
multiple comments on bugzilla.

Copilot AI left a comment

Copy link
Copy Markdown

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 improves Bugzilla bug filing descriptions by introducing an optional “chained” mode that preserves full commit details and splits them across multiple Bugzilla comments when the per-comment size limit is reached. It updates the vendoring and commitalert flows to post overflow chunks as follow-up comments, and adds focused unit tests for the new behavior.

Changes:

  • Add commit-block rendering helpers and a chained, greedy chunking implementation in SCMProvider.build_bug_description.
  • Update vendoring and commitalert tasktypes to file the first chunk in the initial bug description and post remaining chunks as additional comments.
  • Add new unit tests covering verbosity levels, dispatch behavior, compare URL inclusion, and chunk splitting.

Reviewed changes

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

Show a summary per file
File Description
components/scmprovider.py Adds compare URL support and implements chained multi-comment chunking for commit details.
tasktypes/vendoring.py Posts overflow commit description chunks as follow-up Bugzilla comments.
tasktypes/commitalert.py Posts overflow commit description chunks as follow-up Bugzilla comments.
tests/build_bug_description.py Adds unit tests validating commit block rendering and chained/single behavior.
test.py Registers the new build_bug_description test module in the test runner.

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

Comment thread components/scmprovider.py
Comment thread components/scmprovider.py
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.

3 participants