Skip to content

Sanitize Phabricator summary headers - #6583

Open
ayoubdiourin7 wants to merge 3 commits into
mozilla:masterfrom
ayoubdiourin7:fix-phabricator-summary-fields
Open

Sanitize Phabricator summary headers#6583
ayoubdiourin7 wants to merge 3 commits into
mozilla:masterfrom
ayoubdiourin7:fix-phabricator-summary-fields

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Collaborator

Bug

Hackbot fails to submit a patch when the summary contains a line starting with Tests:. Phabricator treats Tests as an alias for the Test Plan field, so the summary is parsed ambiguously and rejected.

Reproduction

Reproduced on phabricator-dev.allizom.org:

  • Tests: ... is rejected with ERR-CONDUIT-CORE ....
  • Tests: ... is accepted.

Solution

Add one leading space to lines starting with a Test Plan alias, such as Tests:. This prevents Phabricator from parsing them as fields. Apply it to revision summaries and generated commit metadata.

Fixes #6547

@ayoubdiourin7
ayoubdiourin7 requested a review from a team as a code owner August 13, 2026 11:07
Comment thread libs/hackbot-runtime/hackbot_runtime/actions/handlers/phabricator_handler.py Outdated
"Tested:; indent or rephrase it."
),
),
] = None,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not edit the description with extra instructions unless it happens frequently.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in 49ef4c6

Comment thread libs/hackbot-runtime/hackbot_runtime/actions/phabricator.py Outdated
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.

Hackbot is failing to submit a patch because of the commit message content

2 participants