Closed
Bug 1413922
Opened 7 years ago
Closed 6 years ago
[tryselect] Merge vcs.py into mozversioncontrol
Categories
(Testing :: General, enhancement)
Testing
General
Tracking
(firefox-esr60 fixed, firefox63 fixed)
RESOLVED
FIXED
mozilla63
People
(Reporter: ahal, Assigned: ahal)
References
Details
Attachments
(3 files, 1 obsolete file)
We should consolidate all our vcs code into a single module. This means merging the vcs related functionality in tools/tryselect/vcs.py into python/mozversioncontrol.
Comment 1•6 years ago
|
||
Most HG commands use subprocesses, even if a context manager (and therefore an hglib client) has been created. There are only two commands that make use of the client, but they *only* work inside a context manager. I don't think there are any technical reason these two commands *need* to use the context manager. This patch merges the HgRepository._run_in_client function with HgRepository._run(). If a client exists, that will be used, otherwise a subprocess will be used.
Comment 2•6 years ago
|
||
Most HG commands use subprocesses, even if a context manager (and therefore an hglib client) has been created. There are only two commands that make use of the client, but they *only* work inside a context manager. I don't think there are any technical reason these two commands *need* to use the context manager. This patch merges the HgRepository._run_in_client function with HgRepository._run(). If a client exists, that will be used, otherwise a subprocess will be used.
Comment 3•6 years ago
|
||
Comment on attachment 8987597 [details] Bug 1413922 - [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r?gps Gregory Szorc [:gps] has approved the revision. https://phabricator.services.mozilla.com/D1809
Attachment #8987597 -
Flags: review+
Comment 4•6 years ago
|
||
This moves all version control logic out of tools/tryselect and into python/mozversioncontrol. The 'push_to_try' function is a bit different as we want it's output to be streamed to stdout rather than being captured. For this reason it uses 'subprocess.check_call' directly instead of calling 'self._run'. Depends on D1816.
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → ahal
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 years ago
|
Attachment #8987606 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #8987952 -
Attachment filename: phabricator-D1839-url.txt → phabricator-D1808-url.txt
Assignee | ||
Comment 5•6 years ago
|
||
Sorry, this was my first attempt at phabricator and I definitely bungled it. Somehow the second attachment got lost in the bug here, but I've fixed your issues at: https://phabricator.services.mozilla.com/D1808 Not sure if it's in your bugzilla queue or not, so needinfo'ing just in case.
Flags: needinfo?(gps)
Comment 6•6 years ago
|
||
Attachment #8987952 -
Attachment description: Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol, r?gps → Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol
Attachment #8987952 -
Attachment is obsolete: false
Assignee | ||
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: true
Assignee | ||
Comment 7•6 years ago
|
||
And it's back. I have no idea how I managed to do all this :p. I'll leave the needinfo just in case.
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: false
Assignee | ||
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: true
Comment 8•6 years ago
|
||
Comment on attachment 8987952 [details] Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol Gregory Szorc [:gps] has approved the revision. https://phabricator.services.mozilla.com/D1808
Attachment #8987952 -
Attachment is obsolete: false
Attachment #8987952 -
Flags: review+
Attachment #8987961 -
Flags: review+
Comment 9•6 years ago
|
||
Comment on attachment 8987961 [details] Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol Gregory Szorc [:gps] has approved the revision. https://phabricator.services.mozilla.com/D1808
Comment 11•6 years ago
|
||
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b3bead1f5729 [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r=gps
Comment 12•6 years ago
|
||
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7a1d749ff9a [tryselect] Merge vcs.py into mozversioncontrol r=gps
Comment 13•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b3bead1f5729 https://hg.mozilla.org/mozilla-central/rev/e7a1d749ff9a
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 14•6 years ago
|
||
Backed out 2 changesets (bug 1413922) for breaking Nightly L10n Backout: https://hg.mozilla.org/mozilla-central/rev/9f03501341bf35bc502f69f870746ffac73992ae Failure push: https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=19edc7c22303a37b7b5fea326171288eba17d788&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-classifiedState=unclassified&filter-searchStr=l10n
Status: RESOLVED → REOPENED
status-firefox63:
fixed → ---
Resolution: FIXED → ---
Target Milestone: mozilla63 → ---
Assignee | ||
Comment 15•6 years ago
|
||
Looks like we just need to s/_run_in_client/_run/g in langpack_manifest.py. Since all instances happen inside the context manager, the _run function will automatically use the client to handle the command. Though ideally we should either make _run a public interface or not use it directly from external consumers.
Updated•6 years ago
|
Attachment #8987606 -
Attachment is obsolete: false
Assignee | ||
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: true
Updated•6 years ago
|
Attachment #8987606 -
Attachment is obsolete: true
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: false
Assignee | ||
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: true
Assignee | ||
Comment 16•6 years ago
|
||
Fixed: https://treeherder.mozilla.org/#/jobs?repo=try&revision=eded3ff119be3e4b9dc73f5d9ad722d703afb4eb
Comment 17•6 years ago
|
||
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0facbb3ab290 [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r=gps
Comment 18•6 years ago
|
||
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/992f33d04e60 [tryselect] Merge vcs.py into mozversioncontrol r=gps
Updated•6 years ago
|
Attachment #8987952 -
Attachment is obsolete: false
Comment 19•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0facbb3ab290 https://hg.mozilla.org/mozilla-central/rev/992f33d04e60
Status: REOPENED → RESOLVED
Closed: 6 years ago → 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 20•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-esr60/rev/6a1be51c3539 https://hg.mozilla.org/releases/mozilla-esr60/rev/d9434ba605cd
status-firefox-esr60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•