Closed
Bug 1480187
Opened 6 years ago
Closed 6 years ago
mach try again doesn't work correctly with multiple checkouts
Categories
(Testing :: General, defect, P3)
Tracking
(firefox-esr60 fixed, firefox63 fixed)
RESOLVED
FIXED
mozilla63
People
(Reporter: gabriel-v, Assigned: gabriel-v)
References
Details
Attachments
(1 file, 1 obsolete file)
The history file for 'mach try again' is under the state dir, '~/.mozconfig', which means it's shared between source clones. Steps to reproduce: 1. repo A: mach try commandA 2. repo B: mach try commandB 3. repo A: mach try again Outcome: step 3 runs commandB. Expected: step 3 runs commandA. I propose to move the history file to the topsrcdir.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → tvijiala
Assignee | ||
Updated•6 years ago
|
Attachment #8996977 -
Flags: review?(gbrown)
Assignee | ||
Comment 2•6 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c9df41679ef83651168e9374f484fbd9623508a2
Assignee | ||
Updated•6 years ago
|
Attachment #8996977 -
Flags: review?(gbrown)
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8996977 -
Attachment is obsolete: true
Assignee | ||
Comment 4•6 years ago
|
||
updated try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6ec5b91df144aabf29f8e59a536cf0386951c86c
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Comment 5•6 years ago
|
||
mozreview-review |
Comment on attachment 8997829 [details] Bug 1480187 - Fix mach try again when using multiple source checkouts. https://reviewboard.mozilla.org/r/261542/#review269088 ::: tools/tryselect/push.py:49 (Diff revision 1) > > here = os.path.abspath(os.path.dirname(__file__)) > build = MozbuildObject.from_environment(cwd=here) > vcs = get_repository_object(build.topsrcdir) > -history_path = os.path.join(get_state_dir()[0], 'history', 'try_task_configs.json') > +topsrcdir_hash = hashlib.sha256(os.path.abspath(build.topsrcdir)).hexdigest() > +history_path = os.path.join(get_state_dir()[0], 'history', '{}.json'.format(topsrcdir_hash)) Please make the history_path `history/<hash>/try_task_configs.json`. Will make it a bit easier to store other stuff. ::: tools/tryselect/push.py:60 (Diff revision 1) > json.dump(try_task_config, fh, indent=2, separators=(',', ':')) > fh.write('\n') > return config_path > > > def write_task_config_history(msg, try_task_config): Could you add an if statement that detects if the old `history_path` exists and if so moves it to the new location? That way people don't lose their history during the transition.
Attachment #8997829 -
Flags: review?(ahal) → review-
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•6 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6f0f5ca451e68ed5f3b2c2c5856969ce15013d07
Assignee | ||
Comment 8•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8997829 [details] Bug 1480187 - Fix mach try again when using multiple source checkouts. https://reviewboard.mozilla.org/r/261542/#review269088 > Could you add an if statement that detects if the old `history_path` exists and if so moves it to the new location? > > That way people don't lose their history during the transition. I had to add this to selectors/again.py, so the move happens before the history is read or purged.
Comment 9•6 years ago
|
||
mozreview-review |
Comment on attachment 8997829 [details] Bug 1480187 - Fix mach try again when using multiple source checkouts. https://reviewboard.mozilla.org/r/261542/#review269440 Thanks, lgtm!
Attachment #8997829 -
Flags: review?(ahal) → review+
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Updated•6 years ago
|
Keywords: checkin-needed
Comment 10•6 years ago
|
||
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/5312e71473c4 Fix mach try again when using multiple source checkouts. r=ahal
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5312e71473c4
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 12•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-esr60/rev/bb24d02d370b
status-firefox-esr60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•