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

[CI:BUILD] Packit: initial enablement #1104

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Conversation

lsm5
Copy link
Member

@lsm5 lsm5 commented Feb 13, 2023

This commit will run COPR builds on every PR against all active releases of CentOS Stream and Fedora, thus allowing buildability checks before the PR merges.

Builds are done on a custom COPR project:
rhcontainerbot/packit-builds.
Ref: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/packit-builds/

The build targets are set in the copr itself, so we don't need to explicitly mention them in .packit.yaml, making upstream configuration a lot simpler.

The spec.rpkg file meant for rpm builds post-pr-merge at rhcontainerbot/podman-next copr gets reused for packit builds, so the packit jobs are independent of Fedora / CentOS dist-git.

Fixes: #1103

Signed-off-by: Lokesh Mandvekar [email protected]

What type of PR is this?

/kind ci

What this PR does / why we need it:

Checks for fedora and centos stream buildability pre-merge.

Which issue(s) this PR fixes:

Fixes #1103

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

None

@lsm5
Copy link
Member Author

lsm5 commented Feb 13, 2023

I haven't enabled i686 packit builds cause I don't want to bother with those for podman and others either. Hope that's alright :D

@lsm5 lsm5 marked this pull request as draft February 13, 2023 15:33
@lsm5
Copy link
Member Author

lsm5 commented Feb 13, 2023

hmm, where's the version specified? don't see it in Cargo.toml . I think we can do without it as the release field of the generated rpms will show the HEAD commit id and the PR #.

@saschagrunert
Copy link
Member

@lsm5
Copy link
Member Author

lsm5 commented Feb 13, 2023

@lsm5 we have the versions in

ah ok, I'll update the PR. thanks!

@codecov-commenter
Copy link

Codecov Report

Merging #1104 (0fb5c8e) into main (4731234) will increase coverage by 0.44%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1104      +/-   ##
==========================================
+ Coverage   34.31%   34.76%   +0.44%     
==========================================
  Files          13       13              
  Lines        1119     1119              
  Branches      391      389       -2     
==========================================
+ Hits          384      389       +5     
+ Misses        479      467      -12     
- Partials      256      263       +7     

This commit will run COPR builds on every PR against all active
releases of CentOS Stream and Fedora, thus allowing buildability checks before the
PR merges.

Builds are done on a custom COPR project:
`rhcontainerbot/packit-builds`.
Ref: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/packit-builds/

The build targets are set in the copr itself, so we don't need to
explicitly mention them in `.packit.yaml`, making upstream configuration
a lot simpler.

The `spec.rpkg` file meant for rpm builds post-pr-merge at
`rhcontainerbot/podman-next` copr gets reused for packit builds, so the
packit jobs are independent of Fedora / CentOS dist-git.

Fixes: containers#1103

Signed-off-by: Lokesh Mandvekar <[email protected]>
@lsm5 lsm5 marked this pull request as ready for review February 14, 2023 11:58
@lsm5
Copy link
Member Author

lsm5 commented Feb 14, 2023

@saschagrunert @haircommander PTAL. Also, ci / test-integration (pull_request) failed twice already.

@lsm5
Copy link
Member Author

lsm5 commented Feb 14, 2023

@saschagrunert @haircommander PTAL. Also, ci / test-integration (pull_request) failed twice already.

third time's the charm 😄

@lsm5
Copy link
Member Author

lsm5 commented Feb 14, 2023

errrr wait ... let me make a few comment fixes.

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Thank you!
/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@lsm5
Copy link
Member Author

lsm5 commented Feb 14, 2023

nvm, the comment fixes can go in later. no biggie.

@saschagrunert saschagrunert merged commit 51d77cd into containers:main Feb 14, 2023
@lsm5 lsm5 deleted the packit branch February 14, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

packit enablement for conmon-rs
3 participants