Skip to content

automation_worker: update pull request with backout information (Bug 2024925)#1325

Open
Magnolia-Liu wants to merge 30 commits into
mainfrom
magnolia/bug-2024925-updating-pr-with-backout-info
Open

automation_worker: update pull request with backout information (Bug 2024925)#1325
Magnolia-Liu wants to merge 30 commits into
mainfrom
magnolia/bug-2024925-updating-pr-with-backout-info

Conversation

@Magnolia-Liu

@Magnolia-Liu Magnolia-Liu commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

In Phabricator, when a revision is backed out, it is updated with the commits and is reopened so it's clear the change was reverted.

Implement something similar: The AutomationWorker now detects reverts among the commits it lands and comments on the affected pull requests.

This is comment-only for now. Reopening the reverted pull request can be implemented in a follow-up bug.


Lando: link
Bugzilla: bug 2024925

⚠️ This pull request has 9 warnings.
🚫 This pull request has 1 blocker.

@Magnolia-Liu
Magnolia-Liu requested a review from zzzeid July 7, 2026 17:19
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

View this pull request in Lando to land it once approved.

@Magnolia-Liu
Magnolia-Liu marked this pull request as ready for review July 10, 2026 17:28
@Magnolia-Liu
Magnolia-Liu requested a review from a team as a code owner July 10, 2026 17:28

@shtrom shtrom left a comment

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.

The logic looks good, but most of the utility functions should go to main.scm or utils.github, where they would be more easily found, reused, and maintained. This may also help reduce some duplication introduced here.

Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
@Magnolia-Liu
Magnolia-Liu force-pushed the magnolia/bug-2024925-updating-pr-with-backout-info branch from 98d0895 to 3de078e Compare July 14, 2026 15:30
@Magnolia-Liu
Magnolia-Liu requested a review from shtrom July 17, 2026 19:40

@shtrom shtrom left a comment

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.

Mainly comments on good practices and making the code reusable and debuggable in prod.

This is looking good, though (:

Comment thread src/lando/main/scm/abstract_scm.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/main/scm/abstract_scm.py Outdated
Comment thread src/lando/main/scm/abstract_scm.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/api/legacy/workers/automation_worker.py Outdated
Comment thread src/lando/headless_api/tests/test_automation_api.py
Comment thread src/lando/headless_api/tests/test_automation_api.py Outdated
Comment thread src/lando/conftest.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.

2 participants