From 2d975489f2f41f5d413ea29b6bd3747fa37cf80a Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Wed, 23 Jul 2025 09:40:17 +0200 Subject: [PATCH 1/3] ci: automate fedora updates after releasing Signed-off-by: Marcus Burghardt --- .packit.yaml | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 26147297..6cbb0556 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,14 +1,15 @@ -files_to_sync: - - complyctl.spec - - .packit.yaml - -upstream_package_name: complyctl +upstream_project_url: https://github.com/complytime/complyctl upstream_tag_template: v{version} +upstream_package_name: complyctl +downstream_package_name: complyctl + specfile_path: complyctl.spec -downstream_package_name: complyctl +files_to_sync: + - complyctl.spec jobs: +# For testing before merging PRs - job: copr_build trigger: pull_request targets: @@ -16,3 +17,24 @@ jobs: - fedora-rawhide-x86_64 - centos-stream-9-x86_64 - centos-stream-10-x86_64 + +# https://packit.dev/docs/fedora-releases-guide +# Propose Downstream PRs once a Upstream release is out +- job: propose_downstream + trigger: release + dist_git_branches: + - rawhide + - f42 + +# Automatically submit builds to Koji after PR is merged into dist-git +- job: koji_build + trigger: commit + dist_git_branches: + - rawhide + - f42 + +# Trigger Bodhi update for released Fedora versions +- job: bodhi_update + trigger: commit + dist_git_branches: + - f42 From 6e8030ea41d9b704d0750b8c36b8af8528d1610d Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Wed, 23 Jul 2025 09:58:03 +0200 Subject: [PATCH 2/3] docs: update release process documentation for Fedora Signed-off-by: Marcus Burghardt --- docs/RELEASE_PROCESS.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/RELEASE_PROCESS.md b/docs/RELEASE_PROCESS.md index f70e5dc5..5ffd3dc1 100644 --- a/docs/RELEASE_PROCESS.md +++ b/docs/RELEASE_PROCESS.md @@ -35,7 +35,13 @@ Releases are currently expected every three weeks. Project maintainers always di Once a new release is out, the [Fedora Package](https://src.fedoraproject.org/rpms/complyctl) also needs to be updated. -### Preparation +The process is automated by [Packit](https://packit.dev/docs/fedora-releases-guide) according to [.packit.yaml](https://github.com/complytime/complyctl/blob/main/.packit.yaml) configuration file and should only demand a PR review from a Fedora package [maintainer](https://src.fedoraproject.org/rpms/complyctl) + +This automation will create PRs for the specified branches. Once the PRs are reviewed and merged: +- [Koji builds](https://koji.fedoraproject.org/koji/packageinfo?packageID=42298) will be created +- [Bodhi updates](https://bodhi.fedoraproject.org/updates/?packages=complyctl) will be submitted + +### Preparation (only necessary for Manual Process) To update a Fedora package, it is ultimately necessary to be a member of Fedora Packager group. Here is the main documentation on how to become a Fedora Packager: From 02797b8e1731d3a8a6e94e7ab81265abd4d7e49d Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Wed, 23 Jul 2025 16:33:51 +0200 Subject: [PATCH 3/3] fix: disable debug packages Detected issues with rawhide. Disabled for now. Signed-off-by: Marcus Burghardt --- complyctl.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/complyctl.spec b/complyctl.spec index b11923b6..12dbf09e 100644 --- a/complyctl.spec +++ b/complyctl.spec @@ -4,6 +4,7 @@ %global base_url https://%{goipath} %global app_dir complytime %global gopath %{_builddir}/go +%global debug_package %{nil} Name: complyctl Version: 0.0.8