@@ -14,18 +14,21 @@ Testgrid is composed of:
14
14
* A list of ** dashboards** , or collections of dashboard tabs
15
15
* A list of ** dashboard groups** of related dashboards.
16
16
17
- Most of these objects are listed in [ ` config.yaml ` ]
17
+ Most of these objects are simply listed in a [ YAML config file ] [ configuration ] for Testgrid to consume.
18
18
19
19
## Prow Job Configuration
20
20
21
- If you just have a prowjob you want to appear in an existing dashboard, add annotations to that
22
- prowjob. You don't need to change a config file here .
21
+ If you just have a [ Prow job ] ( /prow/jobs.md ) configuration you want to appear in an existing
22
+ dashboard, add annotations to that Prow job .
23
23
24
- Simply add this to your prowjob:
24
+ If it's a Prow job in [ the k8s.io instance] ( /config/jobs ) , you don't need to do anything else.
25
+
26
+
27
+ Add this to your Prow job:
25
28
26
29
``` yaml
27
30
annotations :
28
- testgrid-dashboards : dashboard-name # a dashboard defined in config.yaml.
31
+ testgrid-dashboards : dashboard-name # a dashboard already defined in a config.yaml.
29
32
testgrid-tab-name : some-short-name # optionally, a shorter name for the tab. If omitted, just uses the job name.
30
33
testgrid-alert-email :
[email protected] # optionally, an alert email that will be applied to the tab created in the
31
34
# first dashboard specified in testgrid-dashboards.
@@ -39,12 +42,13 @@ annotations:
39
42
40
43
```
41
44
42
- This functionality is provided by [ Configurator] ( cmd/configurator ) .
45
+ This functionality is provided by [ Configurator] ( cmd/configurator ) . If you have Prow jobs in a _ different_
46
+ instance of Prow, you may want to invoke Configurator [ differently] ( cmd/configurator#deserialization-options ) .
43
47
44
48
If you need to create a new dashboard, or do anything more advanced, read on.
45
49
46
50
## Configuration
47
- Open [ ` config.yaml ` ] in your favorite editor and:
51
+ Open or create a Testgrid config file [ (example) ] [ configuration ] in your favorite editor and:
48
52
1 . Configure the test groups
49
53
2 . Add those testgroups to one or more tabs in one or more dashboards
50
54
3 . Consider using dashboard groups if multiple dashboards are needed.
@@ -113,14 +117,11 @@ dashboard_groups:
113
117
114
118
## Testing your configuration
115
119
116
- Run ` bazel test //testgrid/... ` to ensure the config is valid.
120
+ Run ` bazel test //testgrid/... ` to ensure the configuration is valid.
117
121
118
122
This finds common problems such as malformed yaml, a tab referring to a
119
123
non-existent test group, a test group never appearing on any tab, etc.
120
124
121
- Run ` bazel test //... ` for slightly more advanced testing, such as ensuring that
122
- every job in our CI system appears somewhere in testgrid, etc.
123
-
124
125
## Advanced configuration
125
126
See [ ` config.proto ` ] for an extensive list of configuration options. Here are some commonly-used ones.
126
127
@@ -325,4 +326,4 @@ test_groups:
325
326
```
326
327
327
328
[ `config.proto` ] : ./config/config.proto
328
- [ `config.yaml` ] : . /config.yaml
329
+ [ configuration ] : /config/testgrids
0 commit comments