Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packit: Build PRs into default packit COPRs #4959

Merged
merged 1 commit into from Aug 8, 2023
Merged

packit: Build PRs into default packit COPRs #4959

merged 1 commit into from Aug 8, 2023

Conversation

martinpitt
Copy link
Contributor

Building all PRs of all container projects into the same COPR does not properly isolate PRs from each other: E.g. a podman PR currently runs against whichever buildah PR was opened/updated last; in other words, sending a broken buildah PR will instantly break tests for all subsequent podman runs.

To avoid that, change the copr_build configuration to use the packit default COPRs, which are specific to the particular PR, and disappear after a few weeks. Depending projects like podman should only run against what landed in buildah/main, i.e. the podman-next COPR.

Note that this does not preclude testing a podman PR against an buildah PR: This can be explicitly requested [1]. But most PRs don't change the API and thus should default to isolation.

[1] https://packit.dev/posts/testing-farm-triggering

What type of PR is this?

/kind failing-test

What this PR does / why we need it:

This is exactly the same as containers/crun#1260 ; please see the discussion there, this change needs to be applied to all container projects, and then all land together. Let's keep all the relevant discussions and tracking in the crun PR please.

How to verify it

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Discussed with @lsm5 in containers/crun#1260

Does this PR introduce a user-facing change?

None

Building all PRs of all container projects into the same COPR does not
properly isolate PRs from each other: E.g. a podman PR currently runs
against whichever buildah PR was opened/updated last; in other
words, sending a broken buildah PR will instantly break tests for
all subsequent podman runs.

To avoid that, change the copr_build configuration to use the packit
default COPRs, which are specific to the particular PR, and disappear
after a few weeks. Depending projects like podman should only run
against what landed in buildah/main, i.e. the podman-next COPR.

Note that this does not preclude testing a podman PR against an
buildah PR: This can be explicitly requested [1]. But most PRs
don't change the API and thus should default to isolation.

[1] https://packit.dev/posts/testing-farm-triggering

[NO NEW TESTS NEEDED]

Signed-off-by: Martin Pitt <mpitt@redhat.com>
@lsm5 lsm5 self-assigned this Aug 8, 2023
Copy link
Member

@lsm5 lsm5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 8, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lsm5, martinpitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Aug 8, 2023
@openshift-merge-robot openshift-merge-robot merged commit bc68b59 into containers:main Aug 8, 2023
32 checks passed
@martinpitt martinpitt deleted the packit-temp-copr branch August 8, 2023 13:07
@martinpitt martinpitt restored the packit-temp-copr branch August 8, 2023 13:07
@martinpitt martinpitt deleted the packit-temp-copr branch August 8, 2023 13:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants