diff --git a/docs/configuration/index.md b/docs/configuration/index.md index c6dcbfd397..b6c3fe578e 100644 --- a/docs/configuration/index.md +++ b/docs/configuration/index.md @@ -844,6 +844,14 @@ Additionally, the target branch of the pull request must match the branch specif the configuration for that job. For more details on setting up such a job, refer to [this documentation](/docs/configuration/upstream/copr_build.md). +:::caution Multiple OSH jobs + +If `osh_diff_scan_after_copr_build` is enabled and you have multiple Copr build jobs with the `pull_request` trigger, each will trigger its own OSH differential scan. +To ensure each scan compares against the right base build, assign matching `identifier` values to each `pull_request`-triggered job and its corresponding `commit`-triggered job. +If identifiers are missing or don't match, Packit falls back to the first `commit`-triggered job configured for that branch — which can mean multiple scans end up comparing against the same (possibly wrong) base build. + +::: + :::info This functionality is an initial prototype and both configuration and functionality will likely change in the future. diff --git a/docs/configuration/upstream/copr_build.md b/docs/configuration/upstream/copr_build.md index d8f6042a86..0378a53454 100644 --- a/docs/configuration/upstream/copr_build.md +++ b/docs/configuration/upstream/copr_build.md @@ -65,6 +65,7 @@ With this configuration, you'll get builds in all stable fedora releases * **identifier** - Suffix added to the name of a GitHub check run. For example if you [set this to "mock"](https://github.com/rpm-software-management/mock/pull/902/checks?check_run_id=6530714905), then a check run for Rawhide would be named "rpm-build:fedora-rawhide-x86\_64:mock". + Additionally, this option has uses in relation to [Testing Farm](/docs/configuration/upstream/tests#optional-parameters) and [OpenScanHub](/docs/configuration#osh_diff_scan_after_copr_build) jobs. :::caution Make sure to configure this option if you are having multiple `copr_build` jobs in the configuration, otherwise the reporting may be incorrect.