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/fedora-releases-guide/dist-git-onboarding.md
+2-34Lines changed: 2 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,39 +236,7 @@ open issues in case of errors during the downstream jobs via [`issue_repository`
236
236
configuration key. See the details in the link.
237
237
238
238
## Retriggering
239
-
### pull_from_upstream
240
-
Packagers can retrigger the job
241
-
via a comment in any dist-git pull request:
242
-
243
-
/packit pull-from-upstream
244
-
245
-
This will take the Packit configuration file from the default branch of the dist-git
246
-
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:
247
-
248
-
/packit pull-from-upstream --with-pr-config
249
-
250
-
### koji_build
251
-
252
-
Packagers can retrigger a build by a comment in a dist-git pull request:
253
-
254
-
/packit koji-build
255
-
256
-
The build will be triggered for the target branch of the pull request using the most recent commit on the target branch
257
-
(NOT the HEAD commit of the pull request).
258
-
259
-
If Packit created an issue in the configured `issue_repository`, you can place the same comment in that
260
-
issue to retrigger the builds (see [`issue_repository`](/docs/configuration#issue_repository) for details).
261
-
262
-
### bodhi_update
263
-
Packagers with write access to the dist-git repository can retrigger an update by a comment in a dist-git pull request:
264
-
265
-
/packit create-update
266
-
267
-
The update will be triggered for the target branch of the pull request.
268
-
269
-
If Packit created an issue in the configured `issue_repository`, you can place the same comment in that
270
-
issue to retrigger the updates (see [`issue_repository`](/docs/configuration#issue_repository) for details).
271
-
239
+
You can find all the information on retriggering [here](../retriggering.md).
272
240
273
241
## Full example of a dist-git only configuration
274
242
@@ -293,4 +261,4 @@ jobs:
293
261
trigger: commit
294
262
dist_git_branches:
295
263
- fedora-branched # rawhide updates are created automatically
0 commit comments