Closed Bug 1232036 Opened 4 years ago Closed 4 years ago

Support js shells in mozregression


(Testing :: mozregression, defect)

Not set


(Not tracked)



(Reporter: gkw, Assigned: parkouss)


(Blocks 1 open bug)



(1 file)

49 bytes, text/x-github-pull-request
: review+
Details | Review
During a f2f meetup in Orlando, it was agreed that we should also support js shells that are already compiled and uploaded to FTP/TaskCluster.

This way, we can rip out the code in autoBisect that downloads builds and migrate -T mode to pass in arguments for mozregression directly.

Sample TaskCluster js shell link:
See Also: → 1232037
Attached file support js shells
This patch enable mozregression to operate on js shells. We are basically reusing what we do for firefox, except that that the file name to download is different and obviously running jsshell is also different.

I tested it on linux and windows. seems good to me for both interactive and non interactive runs.

For example,

>> mozregression -g 2015-12-01 -b 2015-12-03 --app jsshell --command `pwd`/

with this in file:

>> #!/bin/bash
>> echo "[JS SHELL testing]"
>> quit(Math.random() > 0.5 ? 1 : 0);
>> EOF
>> exit $?
Assignee: nobody → j.parkouss
Attachment #8697988 - Flags: review?(wlachance)
Comment on attachment 8697988 [details] [review]
support js shells

Code looks good! It would be nice to get some feedback from :gkw or someone similar on whether this implementation meets their needs (I suspect it does, but you never know).
Attachment #8697988 - Flags: review?(wlachance) → review+
Hi Gary!

Do you think that this implementation will do the job for you ? OFC we still need to implement other features such as the machine-readable output, I only ask for the jsshell expectation. See comment 1 for an automatic bisection usage.
Flags: needinfo?(gary)
Looks good to me for now, I'll be sure to file more follow-up bugs for issues / features later as we test it out. Thank you so much for implementing this!
Flags: needinfo?(gary) → needinfo?(j.parkouss)
Great, agreed. :)

Landed in and
Closed: 4 years ago
Flags: needinfo?(j.parkouss)
Resolution: --- → FIXED
Blocks: 1236101
You need to log in before you can comment on or make changes to this bug.