{"id":91,"date":"2012-09-03T18:31:28","date_gmt":"2012-09-03T18:31:28","guid":{"rendered":"http:\/\/blog.mozilla.org\/nfroyd\/?p=91"},"modified":"2012-09-03T18:31:28","modified_gmt":"2012-09-03T18:31:28","slug":"running-talos-locally","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nfroyd\/2012\/09\/03\/running-talos-locally\/","title":{"rendered":"running talos locally"},"content":{"rendered":"<p><a href=\"https:\/\/groups.google.com\/d\/msg\/mozilla.dev.platform\/gX7Wpqj6Ldw\/XuDWacj61GUJ\">We had a meeting about not regressing Talos last week<\/a>.\u00a0 One of the concerns brought up at the meeting was that reproducing Talos regressions was hard: dissimilar machines, not knowing where Talos is, inability to run Talos locally, etc. etc.<\/p>\n<p><a href=\"http:\/\/elvis314.wordpress.com\/\">Joel Maher<\/a> noted that <a href=\"https:\/\/wiki.mozilla.org\/Buildbot\/Talos\">Talos has its very own wiki page<\/a>, complete with checkout instructions and information about running the tests.\u00a0 In the interest of looking like a functioning member of the performance team (&#8220;benchmarks?\u00a0 what are those?&#8221;), I decided to verify those instructions.\u00a0 The <tt>monospace<\/tt> commands below were run on a Linux\/x86-64 box.<\/p>\n<ol>\n<li>Checkout the repository: <tt>hg clone http:\/\/hg.mozilla.com\/build\/talos &amp;&amp; cd talos<\/tt><\/li>\n<li>Run the INSTALL.py script: <tt>.\/INSTALL.py<\/tt><\/li>\n<li>Run activation script for virtualenv: <tt>. bin\/activate<\/tt>\u00a0 This step will modify your shell prompt to include a <tt>(talos)<\/tt> string at the beginning; it also modifies <tt>PATH<\/tt> to include the location of talos scripts.<\/li>\n<li>Create a test configuration: <tt>PerfConfigurator --develop --executablePath \/path\/to\/firefox --activeTests ts --results_url file:\/\/\/${HOME}\/ts.txt --output ts_desktop.yaml<\/tt> Note that providing a path to a firefox you just compiled (<tt>~\/src\/build-mc\/dist\/bin\/firefox<\/tt> in my case) works just fine.<\/li>\n<li>Run tests with your configuration: <tt>talos -n ts_desktop.yaml<\/tt> Unfortunately, you have to shutdown any Firefox instances you have running or the test harness will complain. I filed <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=787980\">bug 787980<\/a> for fixing this.<\/li>\n<li>Sit back and relax while you watch the test harness print progress messages on your terminal.\u00a0 You may see messages about logs being posted to http:\/\/datazilla.mozilla.org\/talos; the <tt>--develop<\/tt> flag ought to prevent that from happening, \u00a0 It&#8217;s not clear to me whether the bug is in the wrong messages or that <tt>--develop<\/tt> doesn&#8217;t actually inhibit uploading.<\/li>\n<\/ol>\n<p>And that&#8217;s it!\u00a0 You&#8217;ve now run the Talos startup tests.\u00a0 I haven&#8217;t tried running the pageload tests (yet!) because doing them properly requires downloading quite a number of webpages and arranging things just so.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had a meeting about not regressing Talos last week.\u00a0 One of the concerns brought up at the meeting was that reproducing Talos regressions was hard: dissimilar machines, not knowing where Talos is, inability to run Talos locally, etc. etc. Joel Maher noted that Talos has its very own wiki page, complete with checkout instructions [&hellip;]<\/p>\n","protected":false},"author":320,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/posts\/91"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/users\/320"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nfroyd\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}