Skip to content

Conversation

@gursewak1997
Copy link
Collaborator

This adds Packit configuration to enable:

  • Automated COPR builds on PRs and commits to main
  • Automated Fedora package proposals on releases
  • Koji builds and Bodhi updates for Fedora releases

Assisted-by: Claude Code (Sonnet 4.5)

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces Packit automation for COPR builds and Fedora packaging via a .packit.yaml configuration. However, the configuration contains a high-severity vulnerability: an internal xtask script lacks proper validation of version strings, risking RPM spec file injection and Remote Code Execution (RCE). Insecure artifact selection is also possible due to wildcard usage in shell commands. Additionally, the configuration includes debugging artifacts and could be simplified for better maintainability, with suggestions provided to streamline the build process.

@gursewak1997 gursewak1997 force-pushed the add-packit-automation branch 2 times, most recently from 874498e to 00888b6 Compare January 28, 2026 20:40
@cgwalters
Copy link
Collaborator

cgwalters
cgwalters previously approved these changes Jan 28, 2026

# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
# bcvk only supports x86_64 and aarch64
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmmm...I guess it's quite possible the SMBIOS usage for systemd credentials doesn't work on at least s390.

But I bet we at least compile there. This seems well worth linking to an issue or so.

Copy link
Collaborator Author

@gursewak1997 gursewak1997 Jan 28, 2026

Choose a reason for hiding this comment

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

true. Removing s390x and ppc64le from ExcludeArch - code will compile on those architectures if someone wants to build locally but we won't include in .packit though

@cgwalters
Copy link
Collaborator

OK I added this manually,

Now of course two things on this; I think we can associate a COPR with a FAS group and ensure you're in it? And in theory it might be possible to somehow auto-sync the packit enablement to a COPR.

This adds Packit configuration to enable:
- Automated COPR builds on PRs and commits to main
- Automated Fedora package proposals on releases
- Koji builds and Bodhi updates for Fedora releases

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: gursewak1997 <gursmangat@gmail.com>
@gursewak1997
Copy link
Collaborator Author

OK I added this manually,

Now of course two things on this; I think we can associate a COPR with a FAS group and ensure you're in it? And in theory it might be possible to somehow auto-sync the packit enablement to a COPR.

I requested the permissions

@gursewak1997 gursewak1997 enabled auto-merge (squash) January 29, 2026 02:06
BuildRequires: make
BuildRequires: openssl-devel
BuildRequires: go-md2man
BuildRequires: openssh-clients
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is a build requirement is it? It's just a runtime requirement...unless this is about the unit tests?

The problem is RPM doesn't have a concept of TestRequires but it's worth a comment like # Required for unit tests if so.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Already merged now but yes, openssh-clients is only needed for the unit tests (specifically test_generate_ssh_keypair), not for building the binary

Copy link
Collaborator

Choose a reason for hiding this comment

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

Already merged now

Yes tangent but IMO not everything needs to be fixed pre-merge, this is one we can just roll it into a followup PR.

@gursewak1997 gursewak1997 merged commit 1196d45 into main Jan 29, 2026
16 of 18 checks passed
@gursewak1997 gursewak1997 deleted the add-packit-automation branch January 29, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants