From ba11b61ac11609da625d92f4f71439efed9e6c7e Mon Sep 17 00:00:00 2001 From: Laura Barcziova Date: Wed, 21 Apr 2021 07:53:58 +0200 Subject: [PATCH 1/7] Basic test case: copr build only This test case is triggered automatically by our validation script. ```yaml - job: copr_build trigger: pull_request targets: - fedora-all ``` --- .packit.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index dce8acc3..b7130811 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -14,8 +14,7 @@ jobs: - job: copr_build trigger: pull_request targets: - - fedora-stable-x86_64 - - fedora-rawhide-x86_64 + - fedora-all - job: copr_build trigger: release @@ -28,12 +27,6 @@ jobs: targets: - fedora-stable -- job: tests - trigger: pull_request - targets: - - fedora-stable-x86_64 - - fedora-rawhide-x86_64 - - job: propose_downstream trigger: release packit_instances: ["stg"] From 57e2c9659fe0c1582ef139c99d8b44ba71d55052 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Wed, 5 Apr 2023 08:32:16 +0200 Subject: [PATCH 2/7] Configure VM Image build and share the Image with TF Signed-off-by: Frantisek Lachman --- .packit.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index b7130811..6e840043 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -16,6 +16,23 @@ jobs: targets: - fedora-all +- job: vm_image_build + trigger: pull_request + image_request: + architecture: x86_64 + image_type: aws + upload_request: + type: aws + options: + share_with_accounts: ["727920394381", "125523088429"] + image_customizations: + packages: [hello] + image_distribution: fedora-38 + owner: packit + project: packit-hello-world-1481 + copr_chroot: fedora-38-x86_64 + + - job: copr_build trigger: release targets: From 576c968d925fb73985e043041ed323fbcf924e69 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 17 Apr 2023 10:50:29 +0200 Subject: [PATCH 3/7] print in green Signed-off-by: Tomas Tomecek --- hello_world/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_world/__init__.py b/hello_world/__init__.py index dac3d3bb..2fbff37c 100644 --- a/hello_world/__init__.py +++ b/hello_world/__init__.py @@ -19,7 +19,7 @@ def main(): args_n = len(sys.argv) if args_n <= 1 or args_n > 2: usage() - print(f"Hello {sys.argv[1]}") + print(f"Hello \033[0;36m{sys.argv[1]}\033[0m") if __name__ == '__main__': From 06087a8e28f079955a154b35c05cf6a1d5c6977a Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 17 Apr 2023 10:50:46 +0200 Subject: [PATCH 4/7] Share VM image --- .packit.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.packit.yaml b/.packit.yaml index 6e840043..8aead3d7 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -24,7 +24,9 @@ jobs: upload_request: type: aws options: - share_with_accounts: ["727920394381", "125523088429"] + share_with_accounts: + - "727920394381" # ARR + - "125523088429" # Testing Farm image_customizations: packages: [hello] image_distribution: fedora-38 From f001ca5712e25b286f876fa670409971f97a7993 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 17 Apr 2023 13:03:06 +0200 Subject: [PATCH 5/7] rename to hello-world hello is a GNU package Signed-off-by: Tomas Tomecek --- .packit.yaml | 6 +++--- hello.spec => hello-world.spec | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename hello.spec => hello-world.spec (88%) diff --git a/.packit.yaml b/.packit.yaml index 8aead3d7..92285b2f 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,9 +1,9 @@ --- packit_instances: ["prod", "stg"] -specfile_path: hello.spec +specfile_path: hello-world.spec files_to_sync: - .packit.yaml - - hello.spec + - hello-world.spec upstream_package_name: hello downstream_package_name: hello # actions: @@ -28,7 +28,7 @@ jobs: - "727920394381" # ARR - "125523088429" # Testing Farm image_customizations: - packages: [hello] + packages: [hello-world] image_distribution: fedora-38 owner: packit project: packit-hello-world-1481 diff --git a/hello.spec b/hello-world.spec similarity index 88% rename from hello.spec rename to hello-world.spec index afd23b0d..9c5f3351 100644 --- a/hello.spec +++ b/hello-world.spec @@ -1,10 +1,10 @@ -Name: hello +Name: hello-world Version: 0.1.0 Release: 1%{?dist} Summary: Nice and a polite tool to make your day License: MIT URL: https://github.com/packit-service/hello-world -Source0: hello-%{version}.tar.gz +Source0: hello-world-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools From 587eb5515dc5c74fb1abfe0cb5a99bd7d511b9b0 Mon Sep 17 00:00:00 2001 From: Maja Massarini Date: Tue, 25 Jul 2023 08:06:28 +0200 Subject: [PATCH 6/7] Packit copr repo details no more needed --- .packit.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 92285b2f..91eea40e 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -30,8 +30,6 @@ jobs: image_customizations: packages: [hello-world] image_distribution: fedora-38 - owner: packit - project: packit-hello-world-1481 copr_chroot: fedora-38-x86_64 From 96bc0052cbafcabc807dfe6f64de8c52960edbef Mon Sep 17 00:00:00 2001 From: Maja Massarini Date: Wed, 24 Jan 2024 10:58:59 +0100 Subject: [PATCH 7/7] Clean up config for blogpost Try to have the shortest possible config --- .packit.yaml | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 91eea40e..86ec72d6 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,23 +1,15 @@ --- -packit_instances: ["prod", "stg"] -specfile_path: hello-world.spec -files_to_sync: - - .packit.yaml - - hello-world.spec -upstream_package_name: hello -downstream_package_name: hello -# actions: -# post-upstream-clone: "python3 setup.py sdist --dist-dir ." -# current_version_command: ["python3", "setup.py", "--version"] -# create_tarball_command: ["python3", "setup.py", "sdist", "--dist-dir", "."] +packit_instances: ["stg"] + jobs: - job: copr_build trigger: pull_request targets: - - fedora-all + - fedora-39-x86_64 - job: vm_image_build trigger: pull_request + copr_chroot: fedora-39-x86_64 image_request: architecture: x86_64 image_type: aws @@ -26,26 +18,6 @@ jobs: options: share_with_accounts: - "727920394381" # ARR - - "125523088429" # Testing Farm image_customizations: packages: [hello-world] - image_distribution: fedora-38 - copr_chroot: fedora-38-x86_64 - - -- job: copr_build - trigger: release - targets: - - fedora-stable - -- job: copr_build - trigger: commit - branch: main - targets: - - fedora-stable - -- job: propose_downstream - trigger: release - packit_instances: ["stg"] - dist_git_branches: - - fedora-all + image_distribution: fedora-39