Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1019362 of TaskCluster interactive session

  • Revision slug: Running_automated_tests/TaskCluster_interactive_session
  • Revision title: TaskCluster interactive session
  • Revision id: 1019362
  • Created:
  • Creator: armenzg_mozilla
  • Is current revision? No
  • Comment

Revision Content

NOTE: This is a draft

If you are in this page, it is likely that you want to run tests in the same hosts that we run tests on Treeherder.

If you want to run Docker in your local host read this page instead.

For TaskCluster tasks (Use 'tc' in Treeherder's filter) you can get a task created based on the one you want that will get you an SSH and VNC like web pages inside of the Docker container.
For Buildbot jobs you will have to file a bug to get a loaner.
The rest of this page will only talk about the interactive mode from TaskCluster.

NOTE: When you connect, be at ease that you can't wedge the machine you connect to because you're inside of a Docker container.

Connect with an interactive session

NOTE: This may not work with all tasks.

In order to re-create a task with interactive capacity follow these steps:

  1. Click on desired job on Treeherder
  2. Find "Inspect task" hyperlink in the details panel and click on it
  3. Find and click "Log-in" button at top right
    • Choose your login method and click on "Grant access"
  4. Back to the task click on the "Task" tab on the top left and click on it
  5. Find and click on "One-Click Loaner" button
    • You will see a prompt explaining how this task will be different than the original
  6. You will get to a new page and will have to wait until your loaner is ready (minutes to seconds)
    1. It will be ready when you see "Loaner ready!"
    2. NOTE: You have 5 minutes to connect before it shuts down
  7. Click on "Shell" and/or "Display" and that's it!
    • At this point you will also see a hyperlink to the task that is running as interactive
    • Under such task you will see under "Artifacts": display.html and shell.html which is the same as clicking on the links from step 7

BEWARE: At the moment, the test execution will start immediately and start running the tests. You can see the output of such run by clicking on the 'TaskId' hyperlink from step 7 and then clicking on "Run 0" tab. If you kill mozharness or firefox you will wedge your interactive session. This will be fixed in following iterations.

Run tests inside of an interactive session

TBD; We need to do some work here to allow for this.

Revision Source

<p>NOTE: This is a draft</p>

<p>If you are in this page, it is likely that you want to run tests in the same hosts that we run tests on Treeherder.</p>

<p>If you want to run Docker in your local host read <a href="Running_automated_tests/Docker">this page</a> instead.</p>

<p>For TaskCluster tasks (<a class="external external-icon" href="https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&amp;filter-searchStr=tc">Use 'tc' in Treeherder's filter</a>) you can get a task created based on the one you want that will get you an SSH and VNC like web pages inside of the Docker container.<br />
 For Buildbot jobs you will have to file a bug to get a <a href="https://wiki.mozilla.org/ReleaseEngineering/How_To/Request_a_slave">loaner</a>.<br />
 The rest of this page will only talk about the interactive mode from TaskCluster.</p>

<p>NOTE: When you connect, be at ease that you can't wedge the machine you connect to because you're inside of a Docker container.</p>

<ul>
</ul>

<h2 id="Connect_with_an_interactive_session">Connect with an interactive session</h2>

<p><span data-reactid=".9.1.0.0.1.0"><span data-reactid=".9.1.0.0.1.0.7">NOTE: This may not work with all tasks.</span></span></p>

<p>In order to re-create a task with interactive capacity follow these steps:</p>

<ol>
 <li>Click on desired job on Treeherder</li>
 <li>Find "Inspect task" hyperlink in the details panel and click on it</li>
 <li>Find and click "Log-in" button at top right
  <ul>
   <li>Choose your login method and click on "Grant access"</li>
  </ul>
 </li>
 <li>Back to the task click on the "Task" tab on the top left and click on it</li>
 <li>Find and click on "One-Click Loaner" button
  <ul>
   <li>You will see a prompt explaining how this task will be different than the original</li>
  </ul>
 </li>
 <li>You will get to a new page and will have to wait until your loaner is ready (minutes to seconds)
  <ol>
   <li>It will be ready when you see "Loaner ready!"</li>
   <li>NOTE: You have 5 minutes to connect before it shuts down</li>
  </ol>
 </li>
 <li>Click on "Shell" and/or "Display" and that's it!
  <ul>
   <li>At this point you will also see a hyperlink to the task that is running as interactive</li>
   <li>Under such task you will see under "Artifacts": <span data-reactid=".1.0.0"><span data-reactid=".1.0.0.3.1.0.0"><u>display.html</u> and <u>shell.html</u> which is the same as clicking on the links from step 7</span></span></li>
  </ul>
 </li>
</ol>

<p><strong>BEWARE</strong>: At the moment, the test execution will start immediately and start running the tests. You can see the output of such run by clicking on the 'TaskId' hyperlink from step 7 and then clicking on "Run 0" tab. If you kill mozharness or firefox you will wedge your interactive session. This will be fixed in following iterations.</p>

<h3 id="Run_tests_inside_of_an_interactive_session">Run tests inside of an interactive session</h3>

<p>TBD; We need to do some work here to allow for this.</p>
Revert to this revision