Skip to content

Suppress comments on patch runs - #6506

Open
ayoubdiourin7 wants to merge 2 commits into
mozilla:masterfrom
ayoubdiourin7:suppress-comments-on-patch-runs
Open

Suppress comments on patch runs#6506
ayoubdiourin7 wants to merge 2 commits into
mozilla:masterfrom
ayoubdiourin7:suppress-comments-on-patch-runs

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Collaborator

Summary

Prevent bug-fix patch runs from posting separate Bugzilla or Phabricator comments.

When a run records phabricator.submit_patch or phabricator.update_patch, the action applier now marks pending or failed bugzilla.add_comment and phabricator.add_comment actions as suppressed. Suppressed actions are retained for auditability but are never dispatched or retried.

The bug-fix prompts now instruct the agent to use a patch-only response for runs that make a code change. The revision-follow-up prompt no longer permits a run to both update a patch and post a comment.

UI

Suppressed actions appear with a neutral suppressed status. Their comment preview and suppression reason are not displayed, and they do not enable Apply/Retry.

Tests

Added coverage for:

Covers patch/comment combinations, action ordering, retries, non-patch runs, and Bugzilla coalescing.

Also corrected two stale test expectations to include the existing is_markdown: true Bugzilla payload field.

Fixes #6457

@ayoubdiourin7
ayoubdiourin7 marked this pull request as ready for review August 4, 2026 14:27
@ayoubdiourin7
ayoubdiourin7 requested a review from a team as a code owner August 4, 2026 14:27
@ayoubdiourin7
ayoubdiourin7 force-pushed the suppress-comments-on-patch-runs branch from e7dd881 to 78fa6f1 Compare August 4, 2026 17:48
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.

Don't post a comment when the agent is submitting a patch

1 participant