Page MenuHomePhabricator

Implement "Warn When Landing" behavior for Build Plans in Arcanist
ClosedPublic

Authored by epriestley on Mar 1 2019, 2:13 PM.
Tags
None
Referenced Files
F15513114: D20236.id48303.diff
Thu, Apr 17, 4:29 PM
F15505220: D20236.diff
Tue, Apr 15, 12:53 AM
F15490092: D20236.id48303.diff
Fri, Apr 11, 2:14 PM
F15488039: D20236.id48341.diff
Thu, Apr 10, 6:53 PM
F15486827: D20236.id.diff
Thu, Apr 10, 9:48 AM
F15482686: D20236.id48342.diff
Wed, Apr 9, 7:14 AM
F15476960: D20236.id.diff
Mon, Apr 7, 10:37 AM
F15474572: D20236.diff
Sun, Apr 6, 9:53 AM
Subscribers
None

Details

Summary

Ref T13258. This makes "arc land" respect the new "Warn When Landing" behavior.

This will only work if you have very up-to-date APIs. Just fall back to the older code if the new API calls fail.

Test Plan

Ran arc land on a revision with builds in various states and with the different "Warn When Landing" behaviors. Saw appropriate warnings.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/workflow/ArcanistLandWorkflow.php
1588

"despite ongoing build"

1611

Could the conduit URI ever be something != the web UI URI?

This revision is now accepted and ready to land.Mar 5 2019, 8:04 PM
src/workflow/ArcanistLandWorkflow.php
1611

Today, they're always the same.

With SSH conduit URIs in the future, they could differ. We just don't currently have a better source for this.

(The API should probably return a "uri".)

This revision was automatically updated to reflect the committed changes.