Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.15 KB

Running-Devicelab-Tests-For-PR.md

File metadata and controls

30 lines (23 loc) · 1.15 KB

Running DeviceLab Tests For a PR

From time to time you might find yourself needing to run a post-submit test in a PR. Maybe you landed a PR with clean pre-submits, but the dashboard ended up red. Maybe you are trying to deflake a test and just need to run it a few times before landing. Here's how you do that.

Warning

Ensure you have followed the prerequisites in dev/bots/README.md

Tip

If you only need to run an existing builder against your PR (no recipe or bot changes), bb add is simpler and puts the results in the builder's history. See Using bb and led with LUCI for when to use which, and for login and permission setup.

  1. Collect the following:

    1. PR_NUMBER
    2. The PRESUBMIT_TEST you want to run (full name, e.g. Windows_mokey hot_mode_dev_cycle_win__benchmark)
  2. From the recipes repository check out, run:

    led get-builder 'luci.flutter.staging:PRESUBMIT_TEST' \
    | led edit -pa git_ref='refs/pull/PR_NUMBER/head' \
    | led edit -pa git_url='https://github.com/flutter/flutter' \
    | led edit-recipe-bundle \
    | led launch