You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/upstream/tests.md
+4-48Lines changed: 4 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,54 +200,10 @@ And there are also pairs of variables for pull-request jobs:
200
200
201
201
Note that some variables do not need to be set if the value is unknown, irrelevant or not-configured.
202
202
203
-
## Restart Testing
204
-
205
-
The testing will automatically start after an update to the pull request
206
-
(and successful Copr build if `skip_build` is false).
207
-
To trigger retesting manually (can come handy in case of infrastructure
208
-
issues for example), you can use the following comment in the pull request:
209
-
210
-
/packit test
211
-
212
-
Or if you want to re-trigger only failed tests, you can use the following comment
213
-
in the pull request:
214
-
215
-
/packit retest-failed
216
-
217
-
## Running tests with builds from another pull request
218
-
It is also possible to run the tests with Copr builds built by Packit in another pull request
219
-
(in a different repository). This can be useful when you are working on a change that spans
220
-
multiple projects and needs to be tested together.
221
-
These tests are possible to trigger only via a comment containing the argument specifying the pull request as:
222
-
223
-
/packit test <namespace>/<repo>#<pr_id>
224
-
225
-
The requirement is that in the specified PR, there were recent successful builds created by Packit
226
-
for the targets configured in the repository with the "main" pull request.
227
-
This is a new feature, so the behaviour may be adjusted in the future.
228
-
Please reach out back to us for help or with your suggestions.
229
-
230
-
## Running tests with a specific identifier
231
-
It is possible to run a specific job via `/packit test` command.
232
-
The user just needs to specify the argument `--identifier <job_identifier>` and Packit will trigger only the job with this identifier.
233
-
The whole command should look like this: `/packit test --identifier my-job-id`.
234
-
You can also configure [`test_command.default_identifier`](/docs/configuration#default_identifier) to allow commonly used jobs
235
-
to be triggered without the need for manual specification.
236
-
237
-
## Running a group of tests with the same label
238
-
Users can trigger a specific group of jobs that has a specific value in the list of `labels` option.
239
-
The command to pick up these jobs is `/packit test --labels regression,upgrade` where either `regression` or `upgrade` must be present in `labels` option for the job.
240
-
The labels should be in the format of comma-separated string.
241
-
You can also configure [`test_command.default_labels`](/docs/configuration#default_labels) to allow commonly used job combinations
242
-
to be triggered without the need for manual specification.
243
-
244
-
## Running tests with specific environment variables
245
-
From time to time, you may need to pass specific environment variables to your jobs.
246
-
To achieve this, you can use the `--env` option in the comment command `/packit test`, which passes environment variables to Testing Farm.
247
-
You can set as many environment variables as you want; you just need to pass `--env `for each one.
248
-
For example, you can use the following command `/packit test --env MY_ENV=test --env MY_ENV_2=test_2`.
249
-
This command allows you to use `MY_ENV` and `MY_ENV_2` in Testing Farm jobs.
250
-
You can also unset an environment variable by not setting its value like `/packit test --env MY_ENV=`.
203
+
## Retriggering
204
+
205
+
For retriggering the job, see [retriggering docs](/docs/retriggering#tests).
206
+
251
207
252
208
## Test job statuses
253
209
By default, while test jobs are waiting for their corresponding build jobs to finish,
Copy file name to clipboardExpand all lines: docs/retriggering.md
+61-34Lines changed: 61 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ In general, you can put a `/packit <job-you-want-to-trigger>` comment
8
8
to trigger the Packit job manually.
9
9
10
10
### copr_build
11
-
So for [Copr builds](/docs/configuration/upstream/copr_build), Packit is able to trigger new builds based on a pull request comment:
11
+
For retriggering the [`copr_build`](/docs/configuration/upstream/copr_build) jobs, Packit is able to trigger new builds based on a pull request comment:
12
12
13
13
/packit copr-build
14
14
@@ -19,10 +19,6 @@ or the shorter version
19
19
So whenever you run into a flake or feel like you want to retrigger, just type
20
20
that comment into the PR and enjoy some fine, fresh builds.
21
21
22
-
It is also possible to re-trigger only the failed builds using a pull request comment
23
-
24
-
/packit rebuild-failed
25
-
26
22
The same can be used to retrigger jobs configured with either `commit` or `release`
27
23
trigger by specifying the respective arguments, using commit comments:
28
24
@@ -36,25 +32,22 @@ If no additional arguments are provided, Packit defaults to the commit trigger o
36
32
default branch. The job will execute only if a corresponding job configuration exists for the
37
33
specified branch or release and if the commit is included on the specified branch or tag.
38
34
35
+
It is also possible to re-trigger only the failed builds using a pull request comment
36
+
37
+
/packit rebuild-failed
38
+
39
39
### propose_downstream
40
-
For [`propose_downstream`](/docs/configuration/upstream/propose_downstream), you need to place this comment to any issue:
40
+
For retriggering the [`propose_downstream`](/docs/configuration/upstream/propose_downstream) jobs, users with write or admin permissions to
41
+
the repository can retrigger an
42
+
update via a comment in any open issue in the upstream repository:
41
43
42
44
/packit propose-downstream
43
45
44
-
45
46
### tests
46
47
47
48
For retriggering the [`tests`](/docs/configuration/upstream/tests) jobs, you can use a pull-request comment:
48
49
49
50
/packit test
50
-
51
-
52
-
And to re-trigger only the failed tests, you can use
53
-
54
-
/packit retest-failed
55
-
56
-
For testing, there is possible to specify also other arguments for more advanced use-cases, see
57
-
the details [here](/docs/configuration/upstream/tests#running-tests-with-builds-from-another-pull-request).
58
51
59
52
The same can be used to retrigger jobs configured with either `commit` or `release`
60
53
trigger by specifying the respective arguments, using commit comments:
@@ -65,10 +58,50 @@ or
65
58
66
59
/packit test --release <tag-name>
67
60
61
+
68
62
If no additional arguments are provided, Packit defaults to the commit trigger on the repository's
69
63
default branch. The job will execute only if a corresponding job configuration exists for the
70
64
specified branch or release and if the commit is included on the specified branch or tag.
71
65
66
+
And to re-trigger only the failed tests in pull request, you can use
67
+
68
+
/packit retest-failed
69
+
70
+
#### Running tests with builds from another pull request
71
+
It is also possible to run the tests with Copr builds built by Packit in another pull request
72
+
(in a different repository). This can be useful when you are working on a change that spans
73
+
multiple projects and needs to be tested together.
74
+
These tests are possible to trigger only via a comment containing the argument specifying the pull request as:
75
+
76
+
/packit test <namespace>/<repo>#<pr_id>
77
+
78
+
The requirement is that in the specified PR, there were recent successful builds created by Packit
79
+
for the targets configured in the repository with the "main" pull request.
80
+
This is a new feature, so the behaviour may be adjusted in the future.
81
+
Please reach out back to us for help or with your suggestions.
82
+
83
+
#### Running tests with a specific identifier
84
+
It is possible to run a specific job via `/packit test` command.
85
+
The user just needs to specify the argument `--identifier <job_identifier>` and Packit will trigger only the job with this identifier.
86
+
The whole command should look like this: `/packit test --identifier my-job-id`.
87
+
You can also configure [`test_command.default_identifier`](/docs/configuration#default_identifier) to allow commonly used jobs
88
+
to be triggered without the need for manual specification.
89
+
90
+
#### Running a group of tests with the same label
91
+
Users can trigger a specific group of jobs that has a specific value in the list of `labels` option.
92
+
The command to pick up these jobs is `/packit test --labels regression,upgrade` where either `regression` or `upgrade` must be present in `labels` option for the job.
93
+
The labels should be in the format of comma-separated string.
94
+
You can also configure [`test_command.default_labels`](/docs/configuration#default_labels) to allow commonly used job combinations
95
+
to be triggered without the need for manual specification.
96
+
97
+
#### Running tests with specific environment variables
98
+
From time to time, you may need to pass specific environment variables to your jobs.
99
+
To achieve this, you can use the `--env` option in the comment command `/packit test`, which passes environment variables to Testing Farm.
100
+
You can set as many environment variables as you want; you just need to pass `--env `for each one.
101
+
For example, you can use the following command `/packit test --env MY_ENV=test --env MY_ENV_2=test_2`.
102
+
This command allows you to use `MY_ENV` and `MY_ENV_2` in Testing Farm jobs.
103
+
You can also unset an environment variable by not setting its value like `/packit test --env MY_ENV=`.
104
+
72
105
### upstream_koji_build
73
106
74
107
For retriggering the [`upstream_koji_build`](/docs/configuration/upstream/upstream_koji_build) jobs, you can
@@ -79,40 +112,34 @@ again use a pull-request comment:
79
112
### vm_image_build
80
113
81
114
[VM Image builds](/docs/configuration/upstream/vm_image_build) are not triggered automatically at all.
82
-
To trigger them, you need to post a pull-request comment:
115
+
To trigger them, users with write access to the repository need to post a pull-request comment:
83
116
84
117
/packit vm-image-build
85
118
86
119
every time.
87
120
88
-
89
-
:::caution
90
-
91
-
The requirements stated [above](#approval) apply, so if you see this message
92
-
93
-
Only users with write or admin permissions to the repository can trigger
94
-
Packit-as-a-Service
95
-
96
-
it means the author of the comment does not have write access to the
97
-
repository so the build cannot be scheduled. This is a perfect case for
98
-
maintainers of the repository to post `/packit build` in the PR to get a build.
99
-
100
-
:::
101
-
102
121
### pull_from_upstream
103
-
Packagers can retrigger the job
122
+
For retriggering the [`pull_from_upstream`](/docs/configuration/downstream/pull_from_upstream) jobs, packagers can retrigger the job
104
123
via a comment in any dist-git pull request:
105
124
106
125
/packit pull-from-upstream
107
126
108
127
This will take the Packit configuration file from the default branch of the dist-git
109
-
repository (`rawhide`), same as if the job was triggered by a new release. To use the configuration file from the dist-git pull request you are commenting on, you can add an argument:
128
+
repository (`rawhide`), same as if the job was triggered by a new release.
129
+
You can monitor the job in [Packit Dashboard](https://dashboard.packit.dev/jobs/pull-from-upstreams).
130
+
To use the configuration file from the dist-git pull request you are commenting on, you can add an argument:
110
131
111
132
/packit pull-from-upstream --with-pr-config
112
133
134
+
`pull-from-upstream` automatically handles the Bugzilla created by Upstream
135
+
Release Monitoring (by default adds `Resolves` to changelog/commit and exposes `PACKIT_RESOLVED_BUGS` to the `changelog-entry` and `commit-message`
136
+
actions). If you want to override the referenced resolved bug set by Packit, you can retrigger `pull_from_upstream` like this:
Packagers can retrigger a build by a comment in a dist-git pull request:
142
+
For retriggering the [`koji_build`](/docs/configuration/downstream/koji_build) jobs, packagers can retrigger a build by a comment in a dist-git pull request:
116
143
117
144
/packit koji-build
118
145
@@ -123,7 +150,7 @@ If Packit created an issue in the configured `issue_repository`, you can place t
123
150
issue to retrigger the builds (see [`issue_repository`](/docs/configuration#issue_repository) for details).
124
151
125
152
### bodhi_update
126
-
Packagers with write access to the dist-git repository can retrigger an update by a comment in a dist-git pull request:
153
+
For retriggering the [`bodhi_update`](/docs/configuration/downstream/bodhi_update) jobs, packagers with write access to the dist-git repository can retrigger an update by a comment in a dist-git pull request:
0 commit comments