error: no such option: --repo



4 years ago
4 years ago


(Reporter: emorley, Assigned: parkouss)


Firefox Tracking Flags

(Not tracked)



(1 attachment)

The instructions page ( says:

Use nightlies from a different repo/branch
$ mozregression --repo=mozilla-1.9.2

However using "--repo" gives:

$ mozregression --repo=mozilla-beta --good=2014-11-01
Usage: [options] error: no such option: --repo
It looks like --inbound-branch is used instead of --repo:

:wlach, I think we should change the instructions page:
Flags: needinfo?(wlachance)
Yup, that sounds right to me. Feel free to modify the gh-pages repository with the change. Note that we're thinking of creating a readthedocs site for mozregression where advanced topics like this will probably end up being covered in more detail, see bug 1107602.
Flags: needinfo?(wlachance)
Ok, I think this is actually a more serious bug. We're basically using the inbound-branch option for two things at this point: 

(1) choosing the inbound branch to bisect (mozilla-inbound, b2g-inbound, fx-team, ...)
(2) choosing the type of nightly we want to test (mozilla-central, mozilla-aurora, or mozilla-beta)

I think we need to add the --repo option back and use that when we're doing nightly bisection (as opposed to inbound_branch which we're using). We should also modify the internal variable names inside accordingly. 

Julien, does this make sense?
Flags: needinfo?(j.parkouss)

Comment 4

4 years ago
Yes, that make sense for me. It is confusing currently in the code, and probably not working for the nightly repo.

We probably should start in fetch_configs.NightlyConfigMixin class. There is a method called "nightly_inbound_branch" which takes a date and returns for example 'trunk' or 'mozilla-central' for firefox.

I think this is what we are talking about here for repo (correct me if needed). We should implement a way to override the returned value with the --repo command line arg, and by the way give this method a better name with some documentation. will then only need to reflect the renamed method.
Flags: needinfo?(j.parkouss)

Comment 5

4 years ago
I started to work on this. Basically I think it is fine (you can hae a look here:

There is still one problem when going when coming to inbound bissection. For example:

mozregression -g 2014-11-20 -b 2014-11-21 --log-mach-level debug --repo mozilla-aurora
 0:00.00 LOG: MainThread Build Finder DEBUG We need to fetch the lower limit
 0:00.00 LOG: MainThread Build Finder DEBUG We need to fetch the higher limit
 0:00.00 LOG: MainThread Build Finder DEBUG We got 2 folders, we need to fetch [0, 1]
 0:04.70 LOG: MainThread Build Finder DEBUG Now we got 2 folders - 0 were bad
 0:04.70 LOG: MainThread Bisector INFO Got as far as we can go bisecting nightlies...
 0:04.70 LOG: MainThread Bisector INFO Ensuring we have enough metadata to get a pushlog...
 0:05.52 LOG: MainThread Bisector INFO Last good revision: 3056a819bc0f (2014-11-20)
 0:05.53 LOG: MainThread Bisector INFO First bad revision: 210f8669a990 (2014-11-21)
 0:05.53 LOG: MainThread Bisector INFO Pushlog:

 0:05.53 LOG: MainThread Bisector INFO ... attempting to bisect inbound builds (starting from previous week, to make sure no inbound revision is missed)
 0:07.18 LOG: MainThread Bisector INFO Getting inbound builds between 7d31662bcc98 and 210f8669a990
Traceback (most recent call last):
  File "/home/jp/dev/mozregression/venv/bin/mozregression", line 9, in <module>
    load_entry_point('mozregression==0.30', 'console_scripts', 'mozregression')()
  File "/home/jp/dev/mozregression/mozregression/", line 502, in cli
  File "/home/jp/dev/mozregression/mozregression/", line 258, in bisect_nightlies
  File "/home/jp/dev/mozregression/mozregression/", line 149, in bisect_inbound
  File "/home/jp/dev/mozregression/mozregression/", line 65, in get_build_infos
    pushlogs = pushlogs_finder.get_pushlogs()
  File "/home/jp/dev/mozregression/mozregression/", line 36, in get_pushlogs
  File "/home/jp/dev/mozregression/venv/lib/python2.7/site-packages/requests/", line 795, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found

This is because we are trying to fetch changesets with the following url:

And if you follow this link, you will see "unknown revision '7d31662bcc98'". 

Is the good candidate ? I took this from the printed pushlog url.
Flags: needinfo?(wlachance)
We should probably only fall back to bisecting inbound when bisecting mozilla-central. Any other branch doesn't really make any sense.
Flags: needinfo?(wlachance)
Duplicate of this bug: 1101629


4 years ago
Assignee: nobody → j.parkouss

Comment 8

4 years ago
Created attachment 8534925 [details] [review]
Add a repo command line option
Attachment #8534925 - Flags: review?(wlachance)
Comment on attachment 8534925 [details] [review]
Add a repo command line option

Looks pretty reasonable, merged!
Attachment #8534925 - Flags: review?(wlachance) → review+

Comment 10

4 years ago
Let's close this bug as it is fixed.
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.