TaskCluster interactive session 编辑

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 /wiki/en-US/docs/Mozilla/QA/Running_automated_tests/Docker in your local host read this page instead.

For TaskCluster tasks (see TaskCluster jobs on Treeherder) 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 /wiki/en-US/docs/Mozilla/QA/Running_automated_tests/Docker container.
The rest of this page will only talk about the interactive mode from TaskCluster.

You can read more about this feature in this blog post.

NOTE: When you connect, be at ease that you can't wedge the machine you connect to because you're inside of a /wiki/en-US/docs/Mozilla/QA/Running_automated_tests/Docker container.
NOTE: Only desktop tests have VNC access.

    Connect to 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

    Work in progress.

    When you connect to the SSH interface, you will see a message of the day and you will see some information letting you know that we're downloading the binaries, tests and setting up the Python virtual environment.
    In few minutes, everything will be set up and you will be told how to run all tests.

    如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

    扫码二维码加入Web技术交流群

    发布评论

    需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
    列表为空,暂无数据

    词条统计

    浏览:96 次

    字数:3632

    最后编辑:7年前

    编辑次数:0 次

      我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
      原文