summaryrefslogtreecommitdiffstats
path: root/tools/tryselect/test/test_auto.t
blob: c3fe797949f94aaefd89bfecebf844b966a7494e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  $ . $TESTDIR/setup.sh
  $ cd $topsrcdir

Test auto selector

  $ ./mach try auto $testargs
  Commit message:
  Tasks automatically selected.
  
  Pushed via `mach try auto`
  Calculated try_task_config.json:
  {
      "parameters": {
          "optimize_strategies": "gecko_taskgraph.optimize:tryselect.bugbug_reduced_manifests_config_selection_medium",
          "optimize_target_tasks": true,
          "target_tasks_method": "try_auto",
          "test_manifest_loader": "bugbug",
          "try_mode": "try_auto",
          "try_task_config": {}
      },
      "version": 2
  }
  

  $ ./mach try auto $testargs --closed-tree
  Commit message:
  Tasks automatically selected. ON A CLOSED TREE
  
  Pushed via `mach try auto`
  Calculated try_task_config.json:
  {
      "parameters": {
          "optimize_strategies": "gecko_taskgraph.optimize:tryselect.bugbug_reduced_manifests_config_selection_medium",
          "optimize_target_tasks": true,
          "target_tasks_method": "try_auto",
          "test_manifest_loader": "bugbug",
          "try_mode": "try_auto",
          "try_task_config": {}
      },
      "version": 2
  }
  
  $ ./mach try auto $testargs --closed-tree -m "foo {msg} bar"
  Commit message:
  foo Tasks automatically selected. bar ON A CLOSED TREE
  
  Pushed via `mach try auto`
  Calculated try_task_config.json:
  {
      "parameters": {
          "optimize_strategies": "gecko_taskgraph.optimize:tryselect.bugbug_reduced_manifests_config_selection_medium",
          "optimize_target_tasks": true,
          "target_tasks_method": "try_auto",
          "test_manifest_loader": "bugbug",
          "try_mode": "try_auto",
          "try_task_config": {}
      },
      "version": 2
  }