From ba11b61ac11609da625d92f4f71439efed9e6c7e Mon Sep 17 00:00:00 2001 From: Laura Barcziova Date: Wed, 21 Apr 2021 07:53:58 +0200 Subject: [PATCH 1/6] 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 b16affa24a9c991e7f3bbb95083ea55d055b2cb1 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Wed, 5 Apr 2023 08:32:16 +0200 Subject: [PATCH 2/6] 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..834b051b 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-36 + owner: packit + project: packit-hello-world-1363 + copr_chroot: fedora-36-x86_64 + + - job: copr_build trigger: release targets: From 4d61a068e0db07c671a27f9aaf8d09bcc7166dc3 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 17 Apr 2023 10:50:29 +0200 Subject: [PATCH 3/6] 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 4b29b3307c8637ad4b25b5cb6fa48827c9a17077 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 17 Apr 2023 10:50:46 +0200 Subject: [PATCH 4/6] share VM image with ttomecek's AWS Signed-off-by: Tomas Tomecek --- .packit.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.packit.yaml b/.packit.yaml index 834b051b..da16e80e 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -24,7 +24,11 @@ jobs: upload_request: type: aws options: - share_with_accounts: ["727920394381", "125523088429"] + share_with_accounts: + - "727920394381" # ARR + - "125523088429" # TF + - "564542550944" # ttomecek + share_with_sources: ["435116"] image_customizations: packages: [hello] image_distribution: fedora-36 From 342b26e15789bf69a2d3fb3d5f8d2a937b70a51d Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Mon, 17 Apr 2023 13:03:06 +0200 Subject: [PATCH 5/6] 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 da16e80e..312edc42 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: @@ -30,7 +30,7 @@ jobs: - "564542550944" # ttomecek share_with_sources: ["435116"] image_customizations: - packages: [hello] + packages: [hello-world] image_distribution: fedora-36 owner: packit project: packit-hello-world-1363 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 f0d97bb56b9cdb94952004fbeb06da9819cfd339 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Mon, 19 Jun 2023 12:58:40 +0200 Subject: [PATCH 6/6] Use Fedora 38 Signed-off-by: Frantisek Lachman --- .packit.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 312edc42..c8ac9120 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -31,10 +31,10 @@ jobs: share_with_sources: ["435116"] image_customizations: packages: [hello-world] - image_distribution: fedora-36 + image_distribution: fedora-38 owner: packit project: packit-hello-world-1363 - copr_chroot: fedora-36-x86_64 + copr_chroot: fedora-38-x86_64 - job: copr_build