TryChooser

TryChooser is a simple extension that makes sending to TryServer simple. Here’s a transcript of sending some mq patches to Try.

$ hg trychooser
Run everything?
[Ynh?] n
Both optimized and debug?
[Ynh?] n
Just optimized?
[Ynh?] y
All platforms?
[Ynh?] n
Linux?
[Ynh?] n
linux64?
[Ynh?] n
macosx?
[Ynh?] n
macosx64?
[Ynh?] n
win32?
[Ynh?] n
android-r7?
[Ynh?] y
maemo5-gtk?
[Ynh?] n
maemo5-qt?
[Ynh?] n
All Unit tests?
[Ynh?] y
All talos tests?
[Ynh?] n
Any talos tests?
[Ynh?] n
The following try message is going to be used:
try: -b o -p android-r7 -u all -t none
Creating the trychooser mq entry...
pushing to ssh://hg.mozilla.org/try
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 2 changesets with 1 changes to 1 files (+1 heads)
remote: Looks like you used try syntax, going ahead with the push.
remote: If you don't get what you expected,
        check http://people.mozilla.org/~lsblakk/trychooser/
        for help with building your trychooser request.
remote: Thanks for helping save resources, you're the best!
remote: Trying to insert into pushlog.
remote: Please do not interrupt...
remote: Inserted into the pushlog db successfully.
popping trychooser
now at: fix_android

Get it here.

Fork me on GitHub

About Paul Biggar

I'm a compiler geek, with a slant towards scripting languages. I work on the Javascript team at Mozilla. Before that I did a PhD in compiler optimizations, static analysis and scripting languages.
This entry was posted in Uncategorized and tagged , , , , , , , . Bookmark the permalink.
  • Felipe Gomes

    That is a great extension. A few suggestions to make it better:
     - I would change the two-step process when you want “some” to something requiring 1 choice. E.g.:
    “Unit tests?” [All, None, Some]
    or [Yes, No, Some] if you want to keep y/n

    - I’d love an option where it just created the cset but doesn’t actually push.. I want to be able to run hg outgoing and keep the cset around for future uses

    - try: -a is deprecated and doesn’t run the full suite anymore.. see this on trybuilder, the correct syntax now for everything is try: -b do -p all -u all -t all

    • Paul Biggar

      Those are great suggestions. I’m only actively working on things that make my life easier, but I’d happily take code to do these things. I’d be delighted if you’d file these issues on github (and optionally implement them :))!

      - [All, None, Some] is a great idea
      - Not pushing: volkmar made a pull request for this, which needs a tiny change (being called “pretend’ instead of “dry-run”). See https://github.com/pbiggar/trychooser/pull/3
      - this is really easy to fix. I might do that if nobody beats me to it. (If you were interested in doing this, it would be a nice easy first step).

  • Smaug

    Does the extension require using mq?

    • Paul Biggar

      If you don’t have mq enabled, it will just print the trychooser line.

      We could make it so that it pushes even if mq is not enabled, with a similar UI. I’d be delighted to incorporate a patch for that :)