-
Notifications
You must be signed in to change notification settings - Fork 743
Enable copr builds and add packit config #5000
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
Conversation
|
Can one of the admins verify this patch? |
|
@openscap-ci test this please |
|
The only thing I don't like about this is the .spec file - why to have it here, as it is already publicly accessible? The packit documentation mentions that |
|
Hello @dhodovsk (or should I reference @packit-service ? :) ), can you take a look at what Matej posted above? (And thank you for proactive PR, and congrats for having item with number 5000!) |
The packit service handles the the Fedora workflow for you. The reason that the spec file is upstream and downstream is because in many repos that keep their spec file upstream to mininize their workload downstream (except for changelog) means that changes made downstream can be synced upstream.
It means that the Fedora spec file will be kept "in sync" between dist-git and repo. https://packit.dev/docs/configuration/#more-examples-of-synced-files |
|
@redhatrises is right :) There is an option to use packit actions to always just get the spec from the dist-git before attempting the srpm build, so it doesn't have to be specified here. - similarly as in this example. Would you be interested in that? |
This sounds good - having the spec file here would open the possibility of having it modified by accident or by contributors not fully aware of Fedora packaging guidelines. |
e3e538b to
6b26278
Compare
|
The packit config is now changed, so before every build, it fetches newest spec from dist-git, instead of storing it in repo. |
As stewards of open source, it's important for projects that Red Hat participates in be upstream first. Having build files buried/hidden in downstream places only encumbers the community. There seems no downside to bringing the .spec file upstream.
|
Especially as there are several in the community who are actual Fedora packagers. |
|
I have sent an e-mail to the mailing list, and based on the feedback, we conclude this in the first week of December. |
|
Loved the testing RPMs per PR and the capability to propose updates to Fedora. We used to have the @dhodovsk If we have the |
|
@openscap-ci test this please |
|
/packit copr-build |
|
Neither account redhatrises nor owner ComplianceAsCode are on our whitelist! |
|
/packit copr-build |
|
/packit build |
Co-Authored-By: Jiri Popelka <jpopelka@redhat.com>
|
There was an error while creating SRPM. You can re-trigger build by adding a comment ( Output: |
|
Sorry about the super late answer, here is an example of how the spec would change after propose -> https://src.fedoraproject.org/rpms/packit/pull-request/39#request_diff |
|
@openscap-ci test this please |
|
/packit build |
Some compressed artifacts in our releases contain the build directory already. So it would fail if we don't use -p option.
|
I have pushed d4dcd60 and now the builds are passing. It was failing on creating the dir |
|
@openscap-ci test this please |
I think I fully understood what was the problem now. And Packit creates the compressed file by running something like: IMO, I think we should also update the spec files under fedora channels, because if in the future we update the one which is added by this PR, it will start to fail again. |
|
Closing this as abandoned PR. Perhaps someone will want to take this on in the future. |
Let us introduce packit service to you - the automation to integrate upstream open source projects into Fedora operating system.
After merging this PR, you are just a few steps away from RPM builds being automatically triggered on your PR's.
It means, that you'll be able to try and play with your change, packaged as an RPM.
But there is more. By using packit, you can for example enable adding new releases into Fedora Rawhide.
What are the next steps?
For more info, please:
The spec you see in this PR was fetched from your package's Fedora dist-git.