Page MenuHomePhabricator

In "bin/drydock lease", take a JSON "--attributes" so we can accept complex values
ClosedPublic

Authored by epriestley on Oct 24 2018, 2:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 4:32 PM
Unknown Object (File)
Wed, Dec 18, 7:00 AM
Unknown Object (File)
Mon, Dec 16, 9:52 AM
Unknown Object (File)
Wed, Nov 27, 12:59 AM
Unknown Object (File)
Sat, Nov 23, 1:26 PM
Unknown Object (File)
Nov 22 2024, 9:45 AM
Unknown Object (File)
Nov 18 2024, 7:35 PM
Unknown Object (File)
Nov 14 2024, 5:51 PM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D19750. See T13210. The bin/drydock lease command makes it easier to request ad-hoc leases, but currently takes lease attributes in the form --attributes x=y,a=b.

This was okay for all leases at the time, but doesn't really work for modern WorkingCopy resources since they take a repositories.map which has a dictionary as a value. You can't specify that with repositories.map=....

Instead, point --attributes at a JSON file or use --attributes - to read from stdin.

Test Plan

Used --attributes with a file and stdin to allocate working copy leases with repositories.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable