Skip to content

uplifts: allow uplift requests before landing on autoland (Bug 2030756)#1071

Closed
cgsheeh wants to merge 5 commits intomozilla-conduit:mainfrom
cgsheeh:uplift-pre-autoland
Closed

uplifts: allow uplift requests before landing on autoland (Bug 2030756)#1071
cgsheeh wants to merge 5 commits intomozilla-conduit:mainfrom
cgsheeh:uplift-pre-autoland

Conversation

@cgsheeh
Copy link
Copy Markdown
Member

@cgsheeh cgsheeh commented Apr 11, 2026

Previously, requesting an uplift required the patch to have already
landed on autoland so that Lando had a Revision record with patch
data. This blocked sec-related uplifts where developers had to wait
for sec-approval before landing on autoland, and only then could
request the uplift.

Now, when an uplift request is submitted, Lando fetches the revision
and diff data directly from Phabricator for any revisions that don't
already exist in the database.

The Revision creation logic from the landing POST endpoint has been
extracted into reusable helpers that both the landing and uplift
flows now share.

Previously, requesting an uplift required the patch to have already
landed on autoland so that Lando had a `Revision` record with patch
data. This blocked sec-related uplifts where developers had to wait
for sec-approval before landing on autoland, and only then could
request the uplift.

Now, when an uplift request is submitted, Lando fetches the revision
and diff data directly from Phabricator for any revisions that don't
already exist in the database. This happens inside the `UpliftRequestForm`
before validation, so the rest of the flow works unchanged.

The `Revision` creation logic from the landing POST endpoint has been
extracted into reusable helpers (`save_revision_patch_data` and
`ensure_revision_from_phabricator`) that both the landing and uplift
flows now share.
@cgsheeh cgsheeh requested a review from a team as a code owner April 11, 2026 00:28
@github-actions
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member

@shtrom shtrom left a comment

Choose a reason for hiding this comment

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

r+ with a few minor things

Comment thread src/lando/api/legacy/revisions.py
Comment thread src/lando/api/legacy/stacks.py Outdated
Comment thread src/lando/api/legacy/stacks.py
Comment thread src/lando/api/tests/test_uplift.py
lando-worker bot pushed a commit that referenced this pull request Apr 16, 2026
…6) r=shtrom

Previously, requesting an uplift required the patch to have already
landed on autoland so that Lando had a `Revision` record with patch
data. This blocked sec-related uplifts where developers had to wait
for sec-approval before landing on autoland, and only then could
request the uplift.

Now, when an uplift request is submitted, Lando fetches the revision
and diff data directly from Phabricator for any revisions that don't
already exist in the database.

The `Revision` creation logic from the landing POST endpoint has been
extracted into reusable helpers that both the landing and uplift
flows now share.

Pull request: #1071
@lando-worker
Copy link
Copy Markdown

lando-worker bot commented Apr 16, 2026

Pull request closed by commit d352091

@lando-worker lando-worker bot closed this Apr 16, 2026
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