Closed
Bug 1507111
Opened 6 years ago
Closed 6 years ago
When working on top of an inbound revision, retrieving pushes can fail
Categories
(Testing :: Code Coverage, defect)
Testing
Code Coverage
Tracking
(firefox65 fixed)
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: marco, Assigned: marco)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
E.g. today tools/tryselect/selectors/coverage.py was trying to retrieve https://hg.mozilla.org/mozilla-central/json-pushes?version=2&tipsonly=1&tochange=1368e9cf93447804f16e15384be8052f12422e15&startdate=2018-10-15, but 1368e9cf93447804f16e15384be8052f12422e15 is not on mozilla-central yet.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → mcastelluccio
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #9025077 -
Flags: review?(ahal)
Comment 2•6 years ago
|
||
Comment on attachment 9025077 [details] [diff] [review]
Fallback to latest mozilla-central pushes if the local base revision is not known by hgmo
Review of attachment 9025077 [details] [diff] [review]:
-----------------------------------------------------------------
::: tools/tryselect/selectors/coverage.py
@@ +126,5 @@
> + pushes_data = requests.get(pushes_url + '&tochange={}'.format(base_revision)).json()
> + if 'error' in pushes_data:
> + if 'unknown revision' in pushes_data['error']:
> + print('unknown revision {}, trying with latest mozilla-central revision'.format(base_revision))
> + pushes_data = requests.get(pushes_url).json()
Not a big deal, but this won't raise an Exception if an error happens in this second call.
Attachment #9025077 -
Flags: review?(ahal) → review+
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #2)
> Comment on attachment 9025077 [details] [diff] [review]
> Fallback to latest mozilla-central pushes if the local base revision is not
> known by hgmo
>
> Review of attachment 9025077 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: tools/tryselect/selectors/coverage.py
> @@ +126,5 @@
> > + pushes_data = requests.get(pushes_url + '&tochange={}'.format(base_revision)).json()
> > + if 'error' in pushes_data:
> > + if 'unknown revision' in pushes_data['error']:
> > + print('unknown revision {}, trying with latest mozilla-central revision'.format(base_revision))
> > + pushes_data = requests.get(pushes_url).json()
>
> Not a big deal, but this won't raise an Exception if an error happens in
> this second call.
Good catch, I've updated the patch to raise an exception in this case too.
Attachment #9025077 -
Attachment is obsolete: true
Attachment #9025406 -
Flags: review+
Pushed by mcastelluccio@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b22f5fa0067
Fallback to latest mozilla-central pushes if the local base revision is not known by hgmo. r=ahal
Comment 5•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•