Skip to content

Always include commit summaries in bug descriptions; split long ones across multiple comments#416

Open
padenot wants to merge 1 commit into
mozilla-services:masterfrom
padenot:dont-redact
Open

Always include commit summaries in bug descriptions; split long ones across multiple comments#416
padenot wants to merge 1 commit into
mozilla-services:masterfrom
padenot:dont-redact

Conversation

@padenot

@padenot padenot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

The commit summary inhttps://bugzilla.mozilla.org/show_bug.cgi?id=2033562#c0 was gated behind verbosity >= 2, so it was dropped whenever the description fell back to verbosity 1 due to length, making it impossible to audit a large series of commits without following each individual link.

Replace the verbosity-reduction fallback with a greedy splitter that always emits full commit details and splits across multiple Bugzilla comments when the 65535-character limit is reached. For GitHub and GitLab repos, the first comment gets a compare URL (old...new) so reviewers can see the whole range at a glance. googlesource hosts are excluded as they use a different URL structure. We could add others, e.g. videolan and ffmpeg are now using forgejo and gitlab, but I don't have an idea besides hardcoding.

Both the commitalert and vendoring flows now post overflow chunks as follow-up comments rather than silently dropping them.

…across multiple comments

The commit summary in
https://bugzilla.mozilla.org/show_bug.cgi?id=2033562#c0 was gated behind
verbosity >= 2, so it was dropped whenever the description fell back to
verbosity 1 due to length, making it impossible to audit a large series
of commits without following each individual link.

Replace the verbosity-reduction fallback with a greedy splitter that
always emits full commit details and splits across multiple Bugzilla
comments when the 65535-character limit is reached. For GitHub and GitLab
repos, the first comment gets a compare URL (old...new) so reviewers can
see the whole range at a glance. googlesource hosts are excluded as they
use a different URL structure. We could add others, e.g. videolan and
ffmpeg are now using forgejo and gitlab, but I don't have an idea
besides hardcoding.

Both the commitalert and vendoring flows now post overflow chunks as
follow-up comments rather than silently dropping them.
@padenot

padenot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

@tomrittervg if you want to have a look?

@tomrittervg

Copy link
Copy Markdown
Collaborator

So we can't take this as-is or we're going to be doing a lot of work for the 55,000 commits in https://bugzilla.mozilla.org/show_bug.cgi?id=2033277

Presuming you'd still like this feature, I think what I will do is add some convenience flag in a moz.yaml that would let you enable this behavior

@tomrittervg

Copy link
Copy Markdown
Collaborator

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