Skip to content

Commit 65478b6

Browse files
psturcjhutarlarrymou9
authored
Fix45 probes (#19)
* feat: Avoid confusion when MY_GITHUB_ORG is not set to same as --fork-target option * feat(KONFLUX-8856): Add more progress log messages when waiting for ITS run * fix(KONFLUX-8856): Avoid touching 'snap' if it was not loaded: panic: runtime error: invalid memory address or nil pointer dereference * feat(KONFLUX-8919): Add a way to add more details to 'Pipeline failed' reason * feat(KONFLUX-8544): Setup releases for the application * feat(KONFLUX-8544): Measure releases for the application * chore: Add more ignored files & dirs * feat: Add more logging to show what is going on better * feat(KONFLUX-8544): Also consider release measurements in KPI * feat(KONFLUX-8544): Sync missing labels to Horreum definition script * feat: New error: Release failed: Release jhutar-app-tnplb-bhjbp-e25f341-ltqhj in namespace jhutar-tenant failed: {Type:Released Status:False ObservedGeneration:0 LastTransitionTime:2025-06-24 04:20:33 +0000 UTC Reason:Failed Message:Release validation failed} * feat: New error: Snapshot failed creation: context deadline exceeded * feat: Return simple error when required logs are missing * feat: When no PLR was found, word the error properly. Also add one more check. * fix: Add missing newlines to end of these error prints * fix: If the release pipeline run was not found, keep waiting * feat: New error for Unable to list PipelineRuns * feat: New error (and sort): ERROR Command returned error: Failed to download metadata (baseurl: "https://kojipkgs.fedoraproject.org/repos/f43-build/6585390/x86_64") for repository "build": Usable URL not found * feat: New error: Adding Error deleting on-pull-request default PipelineRun * feat: New error: tar: /home/u-.../chroot_scan.tar.gz: Cannot open: No such file or directory * feat: Extend the message back * feat: New error: Application failed creation: Unable to create the Application jhutar-app-wpyjx: failed to get API group resources: unable to retrieve the complete list of server APIs: appstudio.redhat.com/v1alpha1: Get https://api.stone-prod-p02.hjvn.p1.openshiftapps.com:6443/apis/appstudio.redhat.com/v1alpha1: net/http: TLS handshake timeout * feat: New error: Release failed: Release jhutar-app-okeck-krc9c-4f2976e-dgznx in namespace jhutar-tenant failed: {Type:Released Status:False ObservedGeneration:0 LastTransitionTime:2025-07-02 06:44:05 +0000 UTC Reason:Progressing Message:} * docs: Add details about 'Timeout listing pipeline runs' error * feat: New error: buildah build failed creating build container: registry.access.redhat.com returned 403 Error with some context: [2025-07-01T19:20:02,003805722+00:00] buildah build --volume /tmp/entitlement:/etc/pki/entitlement --security-opt=unmask=/proc/interrupts --label build-date=2025-07-01T19:20:01 --label architecture=x86_64 --label vcs-type=git --label vcs-ref=7ec92bec984d038dfc2d1fb6241044431f113cc8 --label quay.expires-after=5d --tls-verify=true --no-cache --ulimit nofile=4096:4096 -f /tmp/Dockerfile.iS78Jt -t quay.io/redhat-user-workloads/jhutar-1-tenant/jhutar-1-app-ghefc-comp-0:on-pr-7ec92bec984d038dfc2d1fb6241044431f113cc8 . [1/2] STEP 1/3: FROM registry.access.redhat.com/ubi8/nodejs-18:latest Trying to pull registry.access.redhat.com/ubi8/nodejs-18:latest... Error: creating build container: internal error: unable to copy from source docker://registry.access.redhat.com/ubi8/nodejs-18:latest: copying system image from manifest list: determining manifest MIME type for docker://registry.access.redhat.com/ubi8/nodejs-18:latest: reading manifest sha256:3a895f2b85ffeda82b2d50ce1ae554bc5bc62448aba48b3fd56ce94b694b3b2a in registry.access.redhat.com/ubi8/nodejs-18: StatusCode: 403, "<html>\r\n<head><title>403 Forbidden</title></head>\r..." Link: https://workdir-exporter-jenkins-csb-perf.apps.int.gpc.ocp-hub.prod.psi.redhat.com/workspace/StoneSoupLoadTestProbe_stone_prd_rh01/e2e-tests/tests/load-tests/OLD/run-stone-prd-rh01-2025_07_01T19_17_10_668176918_00_00/collected-data/jhutar-1-tenant/1/pod-jhutar-1-app-ghefc-comp-0-oe35b8003686447efeb763c670815dd4c-pod-step-build.log * feat: New error: Introspection failed because of incomplete .docker/config.json Error: Artifact type will be determined by introspection. Checking the media type of the OCI artifact... The media type of the OCI artifact is application/vnd.oci.image.manifest.v1+json. Looking for image labels that indicate this might be an operator bundle... time="2025-07-02T00:58:14Z" level=fatal msg="Error parsing image name \"docker://quay.io/redhat-user-workloads/jhutar-tenant/jhutar-app-youop-comp-0:on-pr-267c18212324a4f9f4b2fd8f30225e4b6ba1e4c0\": getting username and password: reading JSON file \"/tekton/home/.docker/config.json\": unmarshaling JSON at \"/tekton/home/.docker/config.json\": unexpected end of JSON input" Link: https://workdir-exporter-jenkins-csb-perf.apps.int.gpc.ocp-hub.prod.psi.redhat.com/workspace/StoneSoupLoadTestProbe_stone_prod_p02/e2e-tests/tests/load-tests/OLD/run-stone-prod-p02-2025_07_02T00_55_12_206383611_00_00/collected-data/jhutar-tenant/1/pod-jhutar-app-youop-comp-0-on-d9711596435debc219a10437940162fb-pod-step-introspect.log * docs: Add a note about how significant this ently is. We should have a constant for this. * feat: New error: Error allocating host because of provisioning error Error: + mkdir -p /root/.ssh + '[' -e /ssh/error ']' + cat /ssh/error Error allocating host: failed to provision host Context info: Platform: linux/amd64 File: /opt/app-root/src/pkg/reconciler/taskrun/taskrun.go Line: 464 + exit 1 Link: https://workdir-exporter-jenkins-csb-perf.apps.int.gpc.ocp-hub.prod.psi.redhat.com/workspace/StoneSoupLoadTestProbe_stone_prod_p02_RPM/e2e-tests/tests/load-tests/OLD/run-stone-prod-p02-2025_07_03T16_35_49_006538124_00_00/collected-data/jhutar-tenant/1/pod-jhutar-app-lpgau-comp-0-on-push-t5r9s-calculate-deps-x86-64-pod-step-mock-build.log * feat: New error: Can not find Dockerfile Error: [2025-07-03T11:43:36,850878165+00:00] Update CA trust INFO: Using mounted CA bundle: /mnt/trusted-ca/ca-bundle.crt '/mnt/trusted-ca/ca-bundle.crt' -> '/etc/pki/ca-trust/source/anchors/ca-bundle.crt' [2025-07-03T11:43:37,651927712+00:00] Prepare Dockerfile Cannot find Dockerfile Dockerfile Link: https://workdir-exporter-jenkins-csb-perf.apps.int.gpc.ocp-hub.prod.psi.redhat.com/workspace/StoneSoupLoadTestProbe_kflux_rhel_p01_RPM/e2e-tests/tests/load-tests/OLD/run-kflux-rhel-p01-2025_07_03T11_39_39_192503922_00_00/collected-data/jhutar-tenant/1/pod-jhutar-app-svayh-comp-0-on-push-2wvnb-build-container-pod-step-build.log This is a problem on a load test side I guess. Looks like we fail to switch pipeline run to RPM build one and container build pipeline is trying to build the repo same way as it would be a container. * feat: New error: Error allocating host because of insufficient free addresses in subnet Error was in collected-data/jhutar-tenant/1/pod-jhutar-app-wvdca-comp-0-on-push-kwln8-calculate-deps-x86-64-pod-step-mock-build.log: + mkdir -p /root/.ssh + '[' -e /ssh/error ']' + cat /ssh/error Error allocating host: failed to launch EC2 instance for jhutar-app-wvdca-comp-0-on-push-kwln8-calculate-deps-x86-64: operation error EC2: RunInstances, https response error StatusCode: 400, RequestID: 19286adc-c47b-411d-b896-2d77368509dd, api error InsufficientFreeAddressesInSubnet: There are not enough free addresses in subnet 'subnet-0aa719a6c5b602b16' to satisfy the requested number of instances. Context info: Platform: linux/amd64 File: /opt/app-root/src/pkg/reconciler/taskrun/taskrun.go Line: 458 + exit 1 * feat: New error: Gateway Time-out when pulling container image Error in collected-data/jhutar-tenant/1/pod-jhutar-app-iiezj-comp-0-on-push-kbdxj-calculate-deps-x86-64-pod-step-mock-build.log: [...] + mock_img=quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + remote_cmd podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + ssh -o StrictHostKeyChecking=no u-57228f5adfe05adda27be169735e@10.29.77.10 podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 Trying to pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0... Error: copying system image from manifest list: parsing image configuration: fetching blob: received unexpected HTTP status: 504 Gateway Time-out * feat: New error: Failed creating integration test scenario because cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on Error in load-test-run.log: I0710 03:39:44.715984 4108 logging.go:64] FAIL(40): Integration test scenario failed creation: Unable to create the Integration Test Scenario jhutar-its-yupxo: integrationtestscenarios.appstudio.redhat.com "jhutar-its-yupxo" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil> * cleanup: Sort * feat: New error pattern: Timeout listing pipeline runs I0710 03:15:44.971939 64120 logging.go:64] FAIL(64): Repo-templating workflow component cleanup failed: Error deleting on-push merged PipelineRun in namespace jhutar-1-tenant: Unable to list PipelineRuns for component jhutar-1-app-dmbwr-comp-0 in namespace jhutar-1-tenant: context deadline exceeded * feat: New error: Bad Gateway when pulling container image Unknown error: + mkdir -p /root/.ssh + '[' -e /ssh/error ']' + '[' -e /ssh/otp ']' ++ cat /ssh/otp-server + curl --cacert /ssh/otp-ca -XPOST -d @/ssh/otp https://multi-platform-otp-server.multi-platform-controller.svc.cluster.local/otp % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2621 100 2601 100 20 169k 1333 --:--:-- --:--:-- --:--:-- 170k + echo '' + arch=x86_64 + case linux/ppc64le in + arch=ppc64le + chmod 0400 /root/.ssh/id_rsa ++ cat /ssh/host + export SSH_HOST=u-31801f6ea742f55211730d4df6f6@10.130.81.13 + SSH_HOST=u-31801f6ea742f55211730d4df6f6@10.130.81.13 ++ cat /ssh/user-dir + export HOMEDIR=/home/u-31801f6ea742f55211730d4df6f6 + HOMEDIR=/home/u-31801f6ea742f55211730d4df6f6 + export 'SSH_ARGS=-o StrictHostKeyChecking=no' + SSH_ARGS='-o StrictHostKeyChecking=no' + '[' u-31801f6ea742f55211730d4df6f6@10.130.81.13 == localhost ']' + workdir=/var/workdir + remote_cmd echo 'Hello from the other side!' + ssh -o StrictHostKeyChecking=no u-31801f6ea742f55211730d4df6f6@10.130.81.13 echo 'Hello from the other side!' Warning: Permanently added '10.130.81.13' (ED25519) to the list of known hosts. Hello from the other side! + send /var/workdir/source/ /home/u-31801f6ea742f55211730d4df6f6/source + rsync -rva /var/workdir/source/ u-31801f6ea742f55211730d4df6f6@10.130.81.13:/home/u-31801f6ea742f55211730d4df6f6/source sending incremental file list created directory /home/u-31801f6ea742f55211730d4df6f6/source ./ .gitignore README.md ci.fmf gating.yaml generate-sources.sh libecpg-10.5-no-compat-lib.patch libecpg-10.5-rpm-pgsql.patch libecpg-10.5-var-run-socket.patch libecpg-12.2-dependency-build.patch libecpg-12.2-external-libpq.patch libecpg.spec postgresql-16.1.tar.bz2 postgresql-16.1.tar.bz2.sha256 sources .fmf/ .fmf/version .git/ .git/FETCH_HEAD .git/HEAD .git/config .git/description .git/index .git/branches/ .git/hooks/ .git/hooks/applypatch-msg.sample .git/hooks/commit-msg.sample .git/hooks/fsmonitor-watchman.sample .git/hooks/post-update.sample .git/hooks/pre-applypatch.sample .git/hooks/pre-commit.sample .git/hooks/pre-merge-commit.sample .git/hooks/pre-push.sample .git/hooks/pre-rebase.sample .git/hooks/pre-receive.sample .git/hooks/prepare-commit-msg.sample .git/hooks/push-to-checkout.sample .git/hooks/sendemail-validate.sample .git/hooks/update.sample .git/info/ .git/info/exclude .git/logs/ .git/logs/HEAD .git/objects/ .git/objects/info/ .git/objects/pack/ .git/objects/pack/pack-1380e8dfc5d4a9f5aac6103aac9b2a228ed5a9d4.idx .git/objects/pack/pack-1380e8dfc5d4a9f5aac6103aac9b2a228ed5a9d4.pack .git/objects/pack/pack-1380e8dfc5d4a9f5aac6103aac9b2a228ed5a9d4.rev .git/refs/ .git/refs/heads/ .git/refs/tags/ .tekton/ .tekton/jhutar-app-ckazm-comp-0-pull-request.yaml .tekton/jhutar-app-ckazm-comp-0-push.yaml .tekton/libecpg-pull-request.yaml .tekton/libecpg-push.yaml plans/ plans/tier1-internal.fmf sent 24,713,422 bytes received 989 bytes 5,492,091.33 bytes/sec total size is 24,704,054 speedup is 1.00 + remote_cmd mkdir /home/u-31801f6ea742f55211730d4df6f6/results + ssh -o StrictHostKeyChecking=no u-31801f6ea742f55211730d4df6f6@10.130.81.13 mkdir /home/u-31801f6ea742f55211730d4df6f6/results + remote_cmd mkdir /home/u-31801f6ea742f55211730d4df6f6/.docker + ssh -o StrictHostKeyChecking=no u-31801f6ea742f55211730d4df6f6@10.130.81.13 mkdir /home/u-31801f6ea742f55211730d4df6f6/.docker + send /config.json /home/u-31801f6ea742f55211730d4df6f6/.docker/config.json + rsync -rva /config.json u-31801f6ea742f55211730d4df6f6@10.130.81.13:/home/u-31801f6ea742f55211730d4df6f6/.docker/config.json sending incremental file list config.json sent 417 bytes received 35 bytes 301.33 bytes/sec total size is 310 speedup is 0.69 + mock_img=quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + remote_cmd podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + ssh -o StrictHostKeyChecking=no u-31801f6ea742f55211730d4df6f6@10.130.81.13 podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 Trying to pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0... Error: initializing source docker://quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0: reading manifest 6ca435b53f4505aa3dc1f031f7912de1f32035f0 in quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container: received unexpected HTTP status: 502 Bad Gateway * feat: New error: Timeout getting PaC pull number when validating component Unknown error: FAIL(62): Component failed validation: Unable to get PaC pull number for component jhutar-1-app-jaagm-comp-0 in namespace jhutar-1-tenant: context deadline exceeded * feat: New error pattern: Build Pipeline Run was cancelled Unknown error: FAIL(71): Build Pipeline Run failed run: PipelineRun for component jhutar-app-ginyi-comp-0 in namespace jhutar-tenant failed: {Type:Succeeded Status:False Severity: LastTransitionTime:{Inner:2025-07-16 03:13:40 +0000 UTC} Reason:Cancelled Message:PipelineRun "jhutar-app-ginyi-comp-0-on-pull-request-cp889" was cancelled} * feat: New error: DNF failed to download repodata from Download Devel because could not resolve host Error from collected-data/jhutar-tenant/1/pod-jhutar-app-dcwbn-comp-0-on-push-xcx4v-calculate-deps-s390x-pod-step-mock-build.log: [...] Start: installing minimal buildroot with dnf Unable to detect release version (use '--releasever' to specify release version) No matches found for the following disable plugin patterns: local, spacewalk, versionlock Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Errors during downloading metadata for repository 'build': - Curl error (6): Couldn't resolve host name for http://download.devel.redhat.com/brewroot/repos/rhel-10.0-build/8942890/s390x/repodata/repomd.xml [Could not resolve host: download.devel.redhat.com] Error: Failed to download metadata for repo 'build': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried ERROR: Exception(/source/libecpg.spec) Config(rhel-10.0-build-repo_8942890) 2 minutes 14 seconds INFO: Results and/or logs in: /results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed: # /usr/bin/dnf-3 --installroot /var/lib/mock/rhel-10.0-build-repo_8942890/root/ --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install @build Unable to detect release version (use '--releasever' to specify release version) No matches found for the following disable plugin patterns: local, spacewalk, versionlock Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Errors during downloading metadata for repository 'build': - Curl error (6): Couldn't resolve host name for http://download.devel.redhat.com/brewroot/repos/rhel-10.0-build/8942890/s390x/repodata/repomd.xml [Could not resolve host: download.devel.redhat.com] Error: Failed to download metadata for repo 'build': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried * feat: New error: Repo forking failed as we got TLS handshake timeout talking to GitLab CEE Unknown error: FAIL(80): Repo forking failed: Error deleting project jhutar/libecpg-prodp02-jhutar: Delete "https://gitlab.cee.redhat.com/api/v4/projects/jhutar%2Flibecpg-prodp02-jhutar": net/http: TLS handshake timeout * feat: New error: Unable to connect to server Error from collected-data/jhutar-tenant/1/pod-jhutar-app-rknus-comp-0-on-push-zcwfr-calculate-deps-s390x-pod-step-mock-build.log: [...] + remote_cmd podman run -e KOJI_TARGET=DEFAULT -v /home/u-4785c0a1a25afde7ef64e55e9b8f/source:/source -v /home/u-4785c0a1a25afde7ef64e55e9b8f/results:/results --privileged --rm -ti quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 mock-from-brew rhel-10-main s390x --spec /source/libecpg.spec --sources /source --resultdir /results --calculate-build-dependencies + ssh -o StrictHostKeyChecking=no u-4785c0a1a25afde7ef64e55e9b8f@10.130.79.106 podman run -e KOJI_TARGET=DEFAULT -v /home/u-4785c0a1a25afde7ef64e55e9b8f/source:/source -v /home/u-4785c0a1a25afde7ef64e55e9b8f/results:/results --privileged --rm -ti quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 mock-from-brew rhel-10-main s390x --spec /source/libecpg.spec --sources /source --resultdir /results --calculate-build-dependencies time="2025-07-21T08:42:30-04:00" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly" + branch=rhel-10-main + shift + arch=s390x + shift + set -o pipefail + config=/tmp/mock-in-konflux.cfg + konflux-mock-profile rhel-10-main s390x + tee /tmp/mock-in-konflux.cfg Error: Unable to connect to server * feat: New error: Failed to pull container from registry.access.redhat.com because of DNS error Unknown error: + mkdir -p /root/.ssh + '[' -e /ssh/error ']' + '[' -e /ssh/otp ']' ++ cat /ssh/otp-server + curl --cacert /ssh/otp-ca -XPOST -d @/ssh/otp https://multi-platform-otp-server.multi-platform-controller.svc.cluster.local/otp % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2621 100 2601 100 20 169k 1333 --:--:-- --:--:-- --:--:-- 170k + echo '' + arch=x86_64 + case linux/s390x in + arch=s390x + chmod 0400 /root/.ssh/id_rsa ++ cat /ssh/host + export SSH_HOST=u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 + SSH_HOST=u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 ++ cat /ssh/user-dir + export HOMEDIR=/home/u-29a8daf9accb2315ef8b6c7f3a70 + HOMEDIR=/home/u-29a8daf9accb2315ef8b6c7f3a70 + export 'SSH_ARGS=-o StrictHostKeyChecking=no' + SSH_ARGS='-o StrictHostKeyChecking=no' + '[' u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 == localhost ']' + workdir=/var/workdir + remote_cmd echo 'Hello from the other side!' + ssh -o StrictHostKeyChecking=no u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 echo 'Hello from the other side!' Warning: Permanently added '10.130.79.6' (ED25519) to the list of known hosts. Hello from the other side! + send /var/workdir/source/ /home/u-29a8daf9accb2315ef8b6c7f3a70/source + rsync -rva /var/workdir/source/ u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6:/home/u-29a8daf9accb2315ef8b6c7f3a70/source sending incremental file list created directory /home/u-29a8daf9accb2315ef8b6c7f3a70/source ./ .gitignore README.md ci.fmf gating.yaml generate-sources.sh libecpg-10.5-no-compat-lib.patch libecpg-10.5-rpm-pgsql.patch libecpg-10.5-var-run-socket.patch libecpg-12.2-dependency-build.patch libecpg-12.2-external-libpq.patch libecpg.spec postgresql-16.1.tar.bz2 postgresql-16.1.tar.bz2.sha256 sources .fmf/ .fmf/version .git/ .git/FETCH_HEAD .git/HEAD .git/config .git/description .git/index .git/branches/ .git/hooks/ .git/hooks/applypatch-msg.sample .git/hooks/commit-msg.sample .git/hooks/fsmonitor-watchman.sample .git/hooks/post-update.sample .git/hooks/pre-applypatch.sample .git/hooks/pre-commit.sample .git/hooks/pre-merge-commit.sample .git/hooks/pre-push.sample .git/hooks/pre-rebase.sample .git/hooks/pre-receive.sample .git/hooks/prepare-commit-msg.sample .git/hooks/push-to-checkout.sample .git/hooks/sendemail-validate.sample .git/hooks/update.sample .git/info/ .git/info/exclude .git/logs/ .git/logs/HEAD .git/objects/ .git/objects/info/ .git/objects/pack/ .git/objects/pack/pack-2b8ff9c1a5a1d83d4cbb1679c918fdecb8dab75b.idx .git/objects/pack/pack-2b8ff9c1a5a1d83d4cbb1679c918fdecb8dab75b.pack .git/objects/pack/pack-2b8ff9c1a5a1d83d4cbb1679c918fdecb8dab75b.rev .git/refs/ .git/refs/heads/ .git/refs/tags/ .tekton/ .tekton/jhutar-app-dsfws-comp-0-pull-request.yaml .tekton/jhutar-app-dsfws-comp-0-push.yaml .tekton/libecpg-pull-request.yaml .tekton/libecpg-push.yaml plans/ plans/tier1-internal.fmf sent 24,715,247 bytes received 989 bytes 7,061,781.71 bytes/sec total size is 24,705,849 speedup is 1.00 + remote_cmd mkdir /home/u-29a8daf9accb2315ef8b6c7f3a70/results + ssh -o StrictHostKeyChecking=no u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 mkdir /home/u-29a8daf9accb2315ef8b6c7f3a70/results + remote_cmd mkdir /home/u-29a8daf9accb2315ef8b6c7f3a70/.docker + ssh -o StrictHostKeyChecking=no u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 mkdir /home/u-29a8daf9accb2315ef8b6c7f3a70/.docker + send /config.json /home/u-29a8daf9accb2315ef8b6c7f3a70/.docker/config.json + rsync -rva /config.json u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6:/home/u-29a8daf9accb2315ef8b6c7f3a70/.docker/config.json sending incremental file list config.json sent 417 bytes received 35 bytes 301.33 bytes/sec total size is 310 speedup is 0.69 + mock_img=quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + remote_cmd podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + ssh -o StrictHostKeyChecking=no u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 Trying to pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0... Getting image source signatures Copying blob sha256:73b948e8f9de0a71f4c3ed790d930e7aebedb47c7944b2c6d093a8ab15ef8614 Copying blob sha256:368daf2a84878235aa6a1c0443aea4bb133ccaa3cee32aa744ff755fac6f90e9 Copying blob sha256:b7364e55b6076ed955c8a456a9e9862d89cc7fb366119c855467c5c9ef46b42b Copying config sha256:abb17151d3d24ef6f2692d1473e9147d358ad2de94b550d77346a314bf91b9c9 Writing manifest to image destination abb17151d3d24ef6f2692d1473e9147d358ad2de94b550d77346a314bf91b9c9 ++ remote_cmd podman run -e KOJI_TARGET=DEFAULT --rm quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 /usr/bin/konflux-select-koji-target rhel-10-main ++ ssh -o StrictHostKeyChecking=no u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 podman run -e KOJI_TARGET=DEFAULT --rm quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 /usr/bin/konflux-select-koji-target rhel-10-main + brew_target=rhel-10.0-candidate + remote_cmd podman run -e KOJI_TARGET=DEFAULT -v /home/u-29a8daf9accb2315ef8b6c7f3a70/source:/source -v /home/u-29a8daf9accb2315ef8b6c7f3a70/results:/results --privileged --rm -ti quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 mock-from-brew rhel-10-main s390x --spec /source/libecpg.spec --sources /source --resultdir /results --calculate-build-dependencies + ssh -o StrictHostKeyChecking=no u-29a8daf9accb2315ef8b6c7f3a70@10.130.79.6 podman run -e KOJI_TARGET=DEFAULT -v /home/u-29a8daf9accb2315ef8b6c7f3a70/source:/source -v /home/u-29a8daf9accb2315ef8b6c7f3a70/results:/results --privileged --rm -ti quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 mock-from-brew rhel-10-main s390x --spec /source/libecpg.spec --sources /source --resultdir /results --calculate-build-dependencies time="2025-07-16T14:23:19-04:00" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly" + branch=rhel-10-main + shift + arch=s390x + shift + set -o pipefail + config=/tmp/mock-in-konflux.cfg + konflux-mock-profile rhel-10-main s390x + tee /tmp/mock-in-konflux.cfg # Auto-generated by the Koji build system config_opts['basedir'] = '/var/lib/mock' config_opts['chroot_setup_cmd'] = 'install @build' config_opts['chroothome'] = '/builddir' config_opts['dnf_warning'] = False config_opts['package_manager'] = 'dnf' config_opts['root'] = 'rhel-10.0-build-repo_8942890' config_opts['rpmbuild_networking'] = False config_opts['target_arch'] = 's390x' config_opts['use_bootstrap_image'] = False config_opts['use_host_resolv'] = False config_opts['yum.conf'] = '[main]\ncachedir=/var/cache/yum\ndebuglevel=1\nlogfile=/var/log/yum.log\nreposdir=/dev/null\nretries=20\nobsoletes=1\ngpgcheck=0\nassumeyes=1\nkeepcache=1\ninstall_weak_deps=0\nstrict=1\n\n# repos\n\n[build]\nname=build\nbaseurl=http://download.devel.redhat.com/brewroot/repos/rhel-10.0-build/8942890/s390x\n' config_opts['plugin_conf']['ccache_enable'] = False config_opts['plugin_conf']['root_cache_enable'] = False config_opts['plugin_conf']['yum_cache_enable'] = False config_opts['macros']['%_host'] = 's390x-koji-linux-gnu' config_opts['macros']['%_host_cpu'] = 's390x' config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' config_opts['macros']['%_topdir'] = '/builddir/build' config_opts['macros']['%dist'] = '%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do print("%{?distprefix" .. i .."}") end}}.el10_0%{?with_bootstrap:%{__bootstrap}}' config_opts['macros']['%distribution'] = 'Koji Testing' # Konflux: bootstrap image feature is required for hemetic builds config_opts['use_bootstrap_image'] = True # TODO (Konflux): switch to UBI10 once available! config_opts['bootstrap_image'] = 'registry.access.redhat.com/ubi9/ubi' config_opts['bootstrap_image_ready'] = True config_opts['macros']['%_buildhost'] = 'konflux.redhat.com' config_opts['macros']['%vendor'] = 'Red Hat, Inc.' config_opts['macros']['%packager'] = 'Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>' + exec mock -r /tmp/mock-in-konflux.cfg --spec /source/libecpg.spec --sources /source --resultdir /results --calculate-build-dependencies INFO: mock.py version 6.1 starting (python version = 3.13.3, NVR = mock-6.1-1.fc41), args: /usr/libexec/mock/mock -r /tmp/mock-in-konflux.cfg --spec /source/libecpg.spec --sources /source --resultdir /results --calculate-build-dependencies Start(bootstrap): init plugins INFO: selinux disabled Finish(bootstrap): init plugins Start: init plugins INFO: selinux disabled Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/source/libecpg.spec) Config(rhel-10.0-build-repo_8942890) Start: clean chroot Finish: clean chroot Mock Version: 6.1 INFO: Mock Version: 6.1 Start(bootstrap): chroot init INFO: calling preinit hooks INFO: Guessed host environment type: unknown INFO: Using container image: registry.access.redhat.com/ubi9/ubi INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Pulling image: registry.access.redhat.com/ubi9/ubi ERROR: b'' b'Trying to pull registry.access.redhat.com/ubi9/ubi:latest...\nError: initializing source docker://registry.access.redhat.com/ubi9/ubi:latest: pinging container registry registry.access.redhat.com: Get "https://registry.access.redhat.com/v2/": dial tcp: lookup registry.access.redhat.com: Temporary failure in name resolution\n' INFO: Tagging container image as mock-bootstrap-d1e9fd30-95ab-46d3-8e36-2c9e4ed2bb8f ERROR: Exception(/source/libecpg.spec) Config(rhel-10.0-build-repo_8942890) 2 minutes 12 seconds INFO: Results and/or logs in: /results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: expected str, bytes or os.PathLike object, not NoneType Traceback (most recent call last): File "/usr/libexec/mock/mock", line 1142, in <module> exitStatus = main() File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/libexec/mock/mock", line 894, in main result = run_command(options, args, config_opts, commands, buildroot) File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/libexec/mock/mock", line 997, in run_command srpm = mockbuild.rebuild.do_buildsrpm(config_opts, commands, buildroot, options, args) File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/rebuild.py", line 104, in do_buildsrpm return rebuild_generic([options.spec], commands, buildroot, config_opts, cmd=cmd, post=None, clean=clean) File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/rebuild.py", line 24, in rebuild_generic commands.init(prebuild=not config_opts.get('short_circuit')) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/backend.py", line 160, in init self.bootstrap_buildroot.initialize(**kwargs) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/buildroot.py", line 205, in initialize self._init(prebuild=prebuild) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/buildroot.py", line 322, in _init self._load_from_container_image() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/buildroot.py", line 284, in _load_from_container_image podman.tag_image() ~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/mockbuild/podman.py", line 139, in tag_image subprocess.run(cmd, env=self.buildroot.env, stdout=subprocess.PIPE, ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ stderr=subprocess.PIPE, check=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/subprocess.py", line 554, in run with Popen(*popenargs, **kwargs) as process: ~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/subprocess.py", line 1039, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pass_fds, cwd, env, ^^^^^^^^^^^^^^^^^^^ ...<5 lines>... gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^ start_new_session, process_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/subprocess.py", line 1899, in _execute_child self.pid = _fork_exec( ~~~~~~~~~~^ args, executable_list, ^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... process_group, gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ preexec_fn, _USE_VFORK) ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected str, bytes or os.PathLike object, not NoneType * feat(KONFLUX-8783): Remove ITS validation According to Ryan Cole, Integration test scenario is now validated at creation time by their admission webhook, so if it is invalid, it would not be created at all. > We merged a change this week that moved validation from the controller > to an admission webhook. Now since an invalid ITS cannot be created we > no longer set that status condition. > [The webhook is] actually a combination of a mutating webhook and > a validation webhook. > The mutating webhook sets some default values if they don't exist but > doesn't fail if the values can't be set. The validating webhook rejects > the resource if the values don't exist/aren't correct. That keeps a > broken mutating webhook from blocking resource creation on the cluster. Assisted-by: Larry Rios <lrios@redhat.com> * feat: New error: Couldnt get task via buldles resolver from quay.io due to unexpected end of JSON input I0724 14:24:24.098121 1700 logging.go:64] FAIL(71): Build Pipeline Run failed run: PipelineRun for component jhutar-1-app-resyb-comp-0 in namespace jhutar-1-tenant failed: {Type:Succeeded Status:False Severity: LastTransitionTime:{Inner:2025-07-24 14:24:05 +0000 UTC} Reason:CouldntGetTask Message:Pipeline jhutar-1-tenant/jhutar-1-app-resyb-comp-0-on-pull-request-pf9zw can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "resolver type bundles\nname = sast-shell-check\n": error requesting remote resource: error getting "bundleresolver" "jhutar-1-tenant/bundles-258b04f0e473307e74d625481237374a": cannot retrieve the oci image: unexpected end of JSON input} * fix: Fix typo buldles -> bundles * feat: New error: Gateway Time-out when pulling container image from quay.io; also tweaked similar error Error from collected-data/jhutar-tenant/1/pod-jhutar-app-ongac-comp-0-on-push-dl9d6-rpmbuild-ppc64le-pod-step-mock-build.log: + mock_img=quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + remote_cmd podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 + ssh -o StrictHostKeyChecking=no u-05296ef2a5aad16a53d90432a9f7@10.130.75.151 podman pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0 Trying to pull quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0... Error: initializing source docker://quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container:6ca435b53f4505aa3dc1f031f7912de1f32035f0: reading manifest 6ca435b53f4505aa3dc1f031f7912de1f32035f0 in quay.io/redhat-user-workloads/rhel-on-konflux-tenant/tooling/mock-rhel-container: received unexpected HTTP status: 504 Gateway Time-out * feat: New error: Failed getting PaC pull number because PaC public route does not exist I0725 09:40:50.990639 4206 logging.go:30] DEBUG Configuring 5 imagePullSecrets for component build task images for component jhutar-app-jppjx-comp-0 I0725 09:40:51.210914 4206 logging.go:30] DEBUG PaC component jhutar-app-jppjx-comp-0 in namespace jhutar-tenant do not have PR yet I0725 09:41:11.224624 4206 logging.go:30] DEBUG PaC component jhutar-app-jppjx-comp-0 in namespace jhutar-tenant do not have PR yet I0725 09:41:31.214269 4206 logging.go:30] DEBUG PaC component jhutar-app-jppjx-comp-0 in namespace jhutar-tenant do not have PR yet I0725 09:41:51.214190 4206 logging.go:64] FAIL(62): Component failed validation: Unable to get PaC pull number for component jhutar-app-jppjx-comp-0 in namespace jhutar-tenant: PaC component jhutar-app-jppjx-comp-0 in namespace jhutar-tenant failed on PR annotation: Incorrect state: {"pac":{"state":"error","error-id":52,"error-message":"52: Pipelines as Code public route does not exist"},"message":"done"} * fix: Fix wording as we are not creating that SA, just ensuring it exists * feat(KONFLUX-8988): Also collect release pipelinerun * fix: Make error code unique * feat: Distinguilsh when different pipeline runs fails * fix: Do not exit collecting PLRs if there is not release PLR * feat: Do not append pr_release if none was found * feat: New error: Repo forking failed when deleting target repo on github.com because 504 F0729 00:44:41.656337 4365 logging.go:58] FATAL Threads setup failed: FAIL(80): Repo forking failed: Error deleting repository rhtap-perf-test/libecpg-srcfedora-fork-undef-jhutar-1: DELETE https://api.github.com/repos/rhtap-perf-test/libecpg-srcfedora-fork-undef-jhutar-1: 504 We couldn't respond to your request in time. Sorry about that. Please try resubmitting your request and contact us if the problem persists. [] * fix: Use right (?) exception when catching YAML parsing error * feat: New error and functionality: Sometimes PLR fails because TR fails to create pod E.g. we had a PipelineRun like this: "status": { "conditions": [ { "type": "Succeeded", "status": "False", "lastTransitionTime": "2025-07-29T14:21:38Z", "reason": "Failed", "message": "Tasks Completed: 18 (Failed: 2, Cancelled 0), Skipped: 2" } ], "startTime": "2025-07-29T14:18:17Z", "completionTime": "2025-07-29T14:21:38Z", and that was caused by two TaskRuns like this: "status": { "conditions": [ { "type": "Succeeded", "status": "False", "lastTransitionTime": "2025-07-29T14:20:51Z", "reason": "PodCreationFailed", "message": "failed to create task run pod \"jhue05939bba6498044b9e123b65b3893c5-coverity-availability-check\": Internal error occurred: failed calling webhook \"proxy.operator.tekton.dev\": failed to call webhook: Post \"https://tekton-operator-proxy-webhook.openshift-pipelines.svc:443/defaulting?timeout=10s\": context deadline exceeded. Maybe missing or invalid Task jhutar-1-tenant/" } ], "podName": "", "startTime": "2025-07-29T14:20:29Z", "completionTime": "2025-07-29T14:20:51Z", * feat: New error and functionality: Capture another fail that might be missing pod log We got this in the collected task run: "status": { "conditions": [ { "type": "Succeeded", "status": "False", "lastTransitionTime": "2025-07-29T11:42:40Z", "reason": "TaskRunImagePullFailed", "message": "the step \"oci-attach-report\" in TaskRun \"jhutar-app-floao-comp-0-on-push-2tw8q-clair-scan\" failed to pull the image \"\". The pod errored with the message: \"Back-off pulling image \"quay.io/konflux-ci/oras:latest@sha256:1beeecce012c99794568f74265c065839f9703d28306a8430b667f639343a98b\".\"" } ], "podName": "jhutar-app-floao-comp-0-on-push-2tw8q-clair-scan-pod", "startTime": "2025-07-29T11:42:35Z", "completionTime": "2025-07-29T11:42:40Z", but pod log was not collected - probably because the pod never actually run as we were not able to pull it. * feat: New error: Failed to pull container from quay.io because of DNS error Error from collected-data/jhutar-tenant/1/pod-jhutar-app-budtn-comp-0-on-push-v9vd5-build-container-pod-step-build.log: [2025-07-29T09:51:34,311323006+00:00] Update CA trust INFO: Using mounted CA bundle: /mnt/trusted-ca/ca-bundle.crt '/mnt/trusted-ca/ca-bundle.crt' -> '/etc/pki/ca-trust/source/anchors/ca-bundle.crt' [2025-07-29T09:51:35,240514976+00:00] Prepare Dockerfile Checking if /var/workdir/cachi2/output/bom.json exists. Preparing construction of content-sets.json to be placed at /usr/share/buildinfo/content-sets.json in the image Constructed the following: { "metadata": { "icm_version": 1, "icm_spec": "https://raw.githubusercontent.com/containerbuildsystem/atomic-reactor/master/atomic_reactor/schemas/content_manifest.json", "image_layer_index": 0 }, "from_dnf_hint": true, "content_sets": [] } Appending a COPY command to the Containerfile [2025-07-29T09:51:35,253106176+00:00] Prepare system (architecture: x86_64) Trying to pull registry.access.redhat.com/ubi10/nodejs-22:latest... Getting image source signatures Checking if image destination supports signatures Copying blob sha256:42baebe7ae640b1e854d36457ba223320cdbc5c32b13a19c112ef447d220fc5d Copying blob sha256:addf8199744d205db3fbc9d2362711681eb7ce637199676287dc04a9f2f2d1c4 Copying blob sha256:64971d9503824c80069530cf5881bced3c2896533a1786c4b8b93354d0a0b572 Copying config sha256:52dde4223889b08bbf5ce98b536803bc57cb145455d4c6603417e79e58adf475 Writing manifest to image destination Storing signatures 52dde4223889b08bbf5ce98b536803bc57cb145455d4c6603417e79e58adf475 Trying to pull registry.access.redhat.com/ubi10/nodejs-22-minimal:latest... Getting image source signatures Checking if image destination supports signatures Copying blob sha256:5422f45747c67d8d7ff17fd6f2c2fff2b472050062875c176537fe85486fa542 Copying blob sha256:8842ba7bc2df44f86cd5c7be359d4db31b54752212e79736f6abda71717fa1f4 Error: copying system image from manifest list: reading blob sha256:8842ba7bc2df44f86cd5c7be359d4db31b54752212e79736f6abda71717fa1f4: Get "https://cdn01.quay.io/quayio-production-s3/sha256/88/8842ba7bc2df44f86cd5c7be359d4db31b54752212e79736f6abda71717fa1f4?X-Amz-Algorithm=...&X-Amz-Credential=...&X-Amz-Date=20250729T095147Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=...&region=us-east-1&namespace=redhat-prod&username=redhat-prod+registry_proxy&repo_name=ubi10----nodejs-22-minimal&akamai_signature=...": dial tcp: lookup cdn01.quay.io: Temporary failure in name resolution * feat: Also closely investigate release PLRs * fix: Use sets here as in dicts we can not have two values with same key * feat(KONFLUX-8988): Move part of collection to per auth so it makes sense to collect pods per application label as release pods do not have component label * feat(KONFLUX-8988): Also collect Release, RP, RPA and Snapshot * feat: New error: Hide problem with releases collection on clusters where it is not configured * fix: Do not fail if there are no release related CRs as this is a best effort function Generated-by: Gemini * fix: Add forgotten coma * feat: Make sure that bug in errors.py do not cause interruption of the whole process * fix: Do not attempt to collect Snapshot and Release if name was not provided * feat: Check TR status message even when podName is set but pod log is missing * feat: New error: Back-off pulling task run image from registry.access.redhat.com "status": { "conditions": [ { "type": "Succeeded", "status": "False", "lastTransitionTime": "2025-08-04T12:13:59Z", "reason": "TaskRunImagePullFailed", "message": "the step \"init\" in TaskRun \"jhutar-app-bjsnc-comp-0-on-pull-request-tdmgq-init\" failed to pull the image \"\". The pod errored with the message: \"Back-off pulling image \"registry.access.redhat.com/ubi9/skopeo:9.6-1752647240@sha256:cbf079a41e8dded35a1292730513857292930a2780e39f56d998ee4f3dadb856\".\"" } ], "podName": "jhutar-app-bjsnc-comp-0-on-pull-request-tdmgq-init-pod", "startTime": "2025-08-04T12:13:32Z", "completionTime": "2025-08-04T12:13:59Z", * fix: Properly escape these backslashes and double quotes * feat: New error: Failed to pull container from registry.fedoraproject.org Error from collected-data/jhutar-1-tenant/1/pod-jhutar-1-app-avzzl-comp-0-ob75e7f5ccf666294f2fe3bda1b4168dd-pod-step-mock-build.log: [...] Directory walk started Directory walk done - 208 packages Temporary output repo path: /results/buildroot_repo/.repodata/ Pool started (with 5 workers) Pool finished INFO:__main__:Pulling like: podman pull --arch amd64 registry.fedoraproject.org/fedora:rawhide@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0 Trying to pull registry.fedoraproject.org/fedora@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0... WARN[0011] Failed, retrying in 1s ... (1/3). Error: initializing source docker://registry.fedoraproject.org/fedora@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0: pinging container registry registry.fedoraproject.org: Get "https://registry.fedoraproject.org/v2/": net/http: TLS handshake timeout WARN[0042] Failed, retrying in 1s ... (2/3). Error: initializing source docker://registry.fedoraproject.org/fedora@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0: pinging container registry registry.fedoraproject.org: Get "https://registry.fedoraproject.org/v2/": dial tcp 38.145.32.21:443: i/o timeout WARN[0067] Failed, retrying in 1s ... (3/3). Error: initializing source docker://registry.fedoraproject.org/fedora@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0: pinging container registry registry.fedoraproject.org: Get "https://registry.fedoraproject.org/v2/": read tcp 10.207.4.246:51610->38.145.32.21:443: read: connection reset by peer Error: internal error: unable to copy from source docker://registry.fedoraproject.org/fedora@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0: initializing source docker://registry.fedoraproject.org/fedora@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0: pinging container registry registry.fedoraproject.org: Get "https://registry.fedoraproject.org/v2/": dial tcp 38.145.32.21:443: connect: connection refused Traceback (most recent call last): File "/usr/bin/mock-hermetic-repo", line 151, in <module> _main() ~~~~~^^ File "/usr/bin/mock-hermetic-repo", line 146, in _main prepare_image(data["config"]["bootstrap_image"], data["bootstrap"], ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ options.output_repo) ^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/mock-hermetic-repo", line 115, in prepare_image subprocess.check_output(pull_cmd) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/lib64/python3.13/subprocess.py", line 472, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ **kwargs).stdout ^^^^^^^^^ File "/usr/lib64/python3.13/subprocess.py", line 577, in run raise CalledProcessError(retcode, process.args, output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['podman', 'pull', '--arch', 'amd64', 'registry.fedoraproject.org/fedora:rawhide@sha256:26048d9008a413c000a6e2f971de53b17859d17a15c16997f53aaa3dc2efdfa0']' returned non-zero exit status 125. * feat: New error: Error updating .tekton file in gitlab.cee.redhat.com I0804 21:40:59.042568 1703 logging.go:64] FAIL(64): Repo-templating workflow component cleanup failed: Error templating PaC files: Failed to update file .tekton/jhutar-app-fnpzb-comp-0-pull-request.yaml in repo jhutar/libecpg-gitlab-fork-rhelp01-jhutar revision c10s: Failed to update/create file: PUT https://gitlab.cee.redhat.com/api/v4/projects/jhutar/libecpg-gitlab-fork-rhelp01-jhutar/repository/files/.tekton/jhutar-app-fnpzb-comp-0-pull-request.yaml: 400 {message: A file with this name doesn't exist} * feat: New error and change: Build failed for unspecified reasons * feat: New error: Failed because CPU is not x86-64-v4 Error from collected-data/jhutar-tenant/1/pod-jhutar-app-idqrn-comp-0-on-push-l5nxb-rpmbuild-x86-64-pod-step-mock-build.log: + ssh -o StrictHostKeyChecking=no u-686965e23b2b4ad6dcf8387b40b1@10.29.77.90 echo 'Hello from the other side!' Warning: Permanently added '10.29.77.90' (ED25519) to the list of known hosts. Hello from the other side! + case linux/amd64 in + arch=x86_64 + remote_cmd /usr/bin/ld.so --help + ssh -o StrictHostKeyChecking=no u-686965e23b2b4ad6dcf8387b40b1@10.29.77.90 /usr/bin/ld.so --help + grep -q 'x86-64-v4 (supported, searched)' + remote_cmd /usr/bin/ld.so --help + ssh -o StrictHostKeyChecking=no u-686965e23b2b4ad6dcf8387b40b1@10.29.77.90 /usr/bin/ld.so --help Usage: /usr/bin/ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...] You have invoked 'ld.so', the program interpreter for dynamically-linked ELF programs. Usually, the program interpreter is invoked automatically when a dynamically-linked executable is started. You may invoke the program interpreter program directly from the command line to load and run an ELF executable file; this is like executing that file itself, but always uses the program interpreter you invoked, instead of the program interpreter specified in the executable file you run. Invoking the program interpreter directly provides access to additional diagnostics, and changing the dynamic linker behavior without setting environment variables (which would be inherited by subprocesses). --list list all dependencies and how they are resolved --verify verify that given object really is a dynamically linked object we can handle --inhibit-cache Do not use /etc/ld.so.cache --library-path PATH use given PATH instead of content of the environment variable LD_LIBRARY_PATH --glibc-hwcaps-prepend LIST search glibc-hwcaps subdirectories in LIST --glibc-hwcaps-mask LIST only search built-in subdirectories if in LIST --inhibit-rpath LIST ignore RUNPATH and RPATH information in object names in LIST --audit LIST use objects named in LIST as auditors --preload LIST preload objects named in LIST --argv0 STRING set argv[0] to STRING before running --list-tunables list all tunables with minimum and maximum values --list-diagnostics list diagnostics information --help display this help and exit --version output version information and exit This program interpreter self-identifies as: /lib64/ld-linux-x86-64.so.2 Shared library search path: (libraries located via /etc/ld.so.cache) /lib64 (system search path) /usr/lib64 (system search path) Subdirectories of glibc-hwcaps directories, in priority order: x86-64-v4 x86-64-v3 (supported, searched) x86-64-v2 (supported, searched) Legacy HWCAP subdirectories under library search path directories: x86_64 (AT_PLATFORM; supported, searched) tls (supported, searched) avx512_1 x86_64 (supported, searched) ERROR: CPU is not x86-64-v4, aborting build. + '[' true = true ']' + echo 'ERROR: CPU is not x86-64-v4, aborting build.' + exit -1 * feat: New error: Failed downloading rpms for hermetic builds due to 504 errors Error from collected-data/jhutar-1-tenant/1/pod-jhutar-1-app-tsyqu-comp-0-o4d99e024c3617e7a03cdc59371af8f9a-pod-step-mock-build.log: + remote_cmd podman run -v /home/u-04f56220f9bb6a890a064657d38e/results:/results --privileged --rm -ti quay.io/redhat-user-workloads/rpm-build-pipeline-tenant/environment:4b95644a1a230956d9cc8121cc3b15dbd5bdd5d0 mock-hermetic-repo --lockfile /results/buildroot_lock.json --output-repo /results/buildroot_repo + ssh -o StrictHostKeyChecking=no u-04f56220f9bb6a890a064657d38e@10.207.4.103 podman run -v /home/u-04f56220f9bb6a890a064657d38e/results:/results --privileged --rm -ti quay.io/redhat-user-workloads/rpm-build-pipeline-tenant/environment:4b95644a1a230956d9cc8121cc3b15dbd5bdd5d0 mock-hermetic-repo --lockfile /results/buildroot_lock.json --output-repo /results/buildroot_repo time="2025-08-06T06:38:28Z" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly" [...] DEBUG:urllib3.connectionpool:Retry: /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/l/libkadm5-1.21.3-7.fc43.aarch64.rpm DEBUG:urllib3.connectionpool:https://d2lzkl7pfhq30w.cloudfront.net:443 "GET /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/l/libkadm5-1.21.3-7.fc43.aarch64.rpm HTTP/1.1" 504 941 DEBUG:urllib3.util.retry:Incremented Retry for (url='/pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/l/libkadm5-1.21.3-7.fc43.aarch64.rpm'): Retry(total=0, connect=5, read=5, redirect=None, status=None) DEBUG:urllib3.connectionpool:Retry: /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/ansible-srpm-macros-1-18.1.fc43.noarch.rpm DEBUG:urllib3.connectionpool:Retry: /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/alternatives-1.33-2.fc43.aarch64.rpm DEBUG:urllib3.connectionpool:https://d2lzkl7pfhq30w.cloudfront.net:443 "GET /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/ansible-srpm-macros-1-18.1.fc43.noarch.rpm HTTP/1.1" 504 941 ERROR:__main__:Exception raised for https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/ansible-srpm-macros-1-18.1.fc43.noarch.rpm urllib3.exceptions.ResponseError: too many 504 error responses The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/requests/adapters.py", line 668, in send resp = conn.urlopen( method=request.method, ...<9 lines>... chunked=chunked, ) File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 942, in urlopen return self.urlopen( ~~~~~~~~~~~~^ method, ^^^^^^^ ...<13 lines>... **response_kw, ^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 942, in urlopen return self.urlopen( ~~~~~~~~~~~~^ method, ^^^^^^^ ...<13 lines>... **response_kw, ^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 942, in urlopen return self.urlopen( ~~~~~~~~~~~~^ method, ^^^^^^^ ...<13 lines>... **response_kw, ^^^^^^^^^^^^^^ ) ^ [Previous line repeated 2 more times] File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 932, in urlopen retries = retries.increment(method, url, response=response, _pool=self) File "/usr/lib/python3.13/site-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='d2lzkl7pfhq30w.cloudfront.net', port=443): Max retries exceeded with url: /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/ansible-srpm-macros-1-18.1.fc43.noarch.rpm (Caused by ResponseError('too many 504 error responses')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/mock-hermetic-repo", line 62, in download_file with request_with_retry().get(url, stream=True, timeout=60) as response: ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/requests/sessions.py", line 602, in get return self.request("GET", url, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3.13/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3.13/site-packages/requests/adapters.py", line 692, in send raise RetryError(e, request=request) requests.exceptions.RetryError: HTTPSConnectionPool(host='d2lzkl7pfhq30w.cloudfront.net', port=443): Max retries exceeded with url: /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/ansible-srpm-macros-1-18.1.fc43.noarch.rpm (Caused by ResponseError('too many 504 error responses')) DEBUG:urllib3.connectionpool:Retry: /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/b/binutils-2.45-1.fc43.aarch64.rpm DEBUG:urllib3.connectionpool:https://d2lzkl7pfhq30w.cloudfront.net:443 "GET /pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/alternatives-1.33-2.fc43.aarch64.rpm HTTP/1.1" 504 941 ERROR:__main__:Exception raised for https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/a/alternatives-1.33-2.fc43.aarch64.rpm urllib3.exceptions.ResponseError: too many 504 error responses [...] * feat: New error: Couldnt get task via git resolver from gitlab.cee due to 429 I0807 05:30:10.989882 29910 logging.go:64] FAIL(71): Build Pipeline Run failed run: PipelineRun for component jhutar-app-jowqw-comp-0 in namespace jhutar-tenant failed: {Type:Succeeded Status:False Severity: LastTransitionTime:{Inner:2025-08-07 05:29:59 +0000 UTC} Reason:CouldntGetTask Message:Pipeline jhutar-tenant/ can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "resolver type git\nurl = https://gitlab.cee.redhat.com/rhel-on-konflux/rpmbuild-pipeline.git\n": error requesting remote resource: error getting "Git" "jhutar-tenant/git-47322cd9fd7f3226a27635b56a1f4f43": git fetch error: remote: Retry later * feat: Relax regexp for this pattern Newly I have noticed this: Unknown error: {"lastTransitionTime": "2025-08-06T18:49:34Z", "message": "\"step-mock-build\" exited with code 1: Error", "reason": "Failed", "status": "False", "type": "Succeeded"} Notice that added ': Error' in message. * feat: New error: Couldnt get task via git resolver from gitlab.cee due to 429 I0807 04:41:17.152651 31188 logging.go:64] FAIL(71): Build Pipeline Run failed run: PipelineRun for component jhutar-app-omzqw-comp-0 in namespace jhutar-tenant failed: {Type:Succeeded Status:False Severity: LastTransitionTime:{Inner:2025-08-07 04:41:08 +0000 UTC} Reason:CouldntGetTask Message:Pipeline jhutar-tenant/ can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "resolver type git\nurl = https://gitlab.cee.redhat.com/rhel-on-konflux/rpmbuild-pipeline.git\n": error requesting remote resource: error getting "Git" "jhutar-tenant/git-15e8f3ea98056bf530f0b541220abf09": git fetch error: error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429 * feat: New error: Couldnt get task via git resolver from gitlab.cee due to 429 Unknown error: FAIL(71): Build Pipeline Run failed run: PipelineRun for component jhutar-app-rqnvt-comp-0 in namespace jhutar-tenant failed: {Type:Succeeded Status:False Severity: LastTransitionTime:{Inner:2025-08-06 20:42:28 +0000 UTC} Reason:CouldntGetTask Message:Pipeline jhutar-tenant/ can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "resolver type git\nurl = https://gitlab.cee.redhat.com/rhel-on-konflux/rpmbuild-pipeline.git\n": error requesting remote resource: error getting "Git" "jhutar-tenant/git-bdfc1a38ae1817c67b4110630f969975": error resolving repository: git clone error: Cloning into '/tmp/rpmbuild-pipeline.git-1020491201'... error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429 fatal: expected 'packfile': exit status 128} * feat: New error: Failed to add imagePullSecrets to build SA I0807 05:56:46.058388 4112 logging.go:30] DEBUG Configuring 5 imagePullSecrets for component build task images for component konflux-perfscale-app-cgdon-comp-0 I0807 05:57:06.080204 4112 logging.go:64] FAIL(61): Failed to configure pipeline imagePullSecrets: Unable to add secret imagerepository-for-toolings-gather-results-container-image-pull to service account build-pipeline-konflux-perfscale-app-cgdon-comp-0: context deadline exceeded This was caused by configuration issue on my side, but adding a rule to avoid "UNKNOWN". * feat: Do not give up if JSON in that annotation value have unexpected data * feat: New error: Component creation timed out waiting for image repository to be ready [...] Image repository for component jhutar-1-app-nruea-comp-0 in namespace jhutar-1-tenant do not have right state ('' != 'ready') yet. Image repository for component jhutar-1-app-nruea-comp-0 in namespace jhutar-1-tenant do not have right state ('' != 'ready') yet. Image repository for component jhutar-1-app-nruea-comp-0 in namespace jhutar-1-tenant do not have right state ('' != 'ready') yet. I0808 03:32:41.220780 94387 logging.go:64] FAIL(60): Component failed creation: Unable to create the Component jhutar-1-app-nruea-comp-0: timed out waiting for image repository to be ready for component jhutar-1-app-nruea-comp-0 in namespace jhutar-1-tenant: context deadline exceeded * feat: New error: Failed creating integration test scenario because admission webhook dintegrationtestscenario.kb.io could not find application I0807 17:17:44.754144 24726 logging.go:30] DEBUG Creating integration test scenario jhutar-1-its-xkutg for application jhutar-1-app-xaguj in namespace jhutar-1-tenant I0807 17:17:44.776288 24726 logging.go:64] FAIL(40): Integration test scenario failed creation: Unable to create the Integration Test Scenario jhutar-1-its-xkutg: admission webhook "dintegrationtestscenario.kb.io" denied the request: could not find application 'jhutar-1-app-xaguj' in namespace 'jhutar-1-tenant' * feat: New error: Timeout waiting for release pip…
1 parent 367e218 commit 65478b6

57 files changed

Lines changed: 3115 additions & 1007 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/loadtest-hourly.yaml

Lines changed: 0 additions & 89 deletions
This file was deleted.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ require (
4747
github.com/stretchr/testify v1.10.0
4848
github.com/tektoncd/cli v0.33.0
4949
github.com/tektoncd/pipeline v0.68.0
50-
github.com/xanzy/go-gitlab v0.104.1
50+
github.com/xanzy/go-gitlab v0.110.0
5151
golang.org/x/crypto v0.36.0
5252
golang.org/x/oauth2 v0.25.0
5353
golang.org/x/tools v0.28.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,8 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh
19391939
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
19401940
github.com/xanzy/go-gitlab v0.104.1 h1:g/liXIPJH0jsTwVuzTAUMiKdTf6Qup3u2XZq5Rp90Wc=
19411941
github.com/xanzy/go-gitlab v0.104.1/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI=
1942+
github.com/xanzy/go-gitlab v0.110.0 h1:hsFIFp01v/0D0sdUXoZfRk6CROzZbHQplk6NzKSFKhc=
1943+
github.com/xanzy/go-gitlab v0.110.0/go.mod h1:wKNKh3GkYDMOsGmnfuX+ITCmDuSDWFO0G+C4AygL9RY=
19421944
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
19431945
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
19441946
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=

pkg/clients/common/service_account.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55

66
corev1 "k8s.io/api/core/v1"
77
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
8+
. "github.com/onsi/ginkgo/v2"
89
"k8s.io/apimachinery/pkg/util/wait"
910
"sigs.k8s.io/controller-runtime/pkg/client"
1011
)
@@ -17,6 +18,7 @@ func (s *SuiteController) ServiceAccountPresent(saName, namespace string) wait.C
1718
return func() (bool, error) {
1819
_, err := s.GetServiceAccount(saName, namespace)
1920
if err != nil {
21+
GinkgoWriter.Printf("failed to get service account %s in namespace %s: %+v\n", saName, namespace, err)
2022
return false, nil
2123
}
2224
return true, nil

pkg/clients/github/repositories.go

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@ func (g *Github) CreateFile(repository, pathToFile, fileContent, branchName stri
6666
}
6767

6868
func (g *Github) GetFile(repository, pathToFile, branchName string) (*github.RepositoryContent, error) {
69+
return g.GetFileWithOrg(g.organization, repository, pathToFile, branchName)
70+
}
71+
72+
func (g *Github) GetFileWithOrg(org, repository, pathToFile, branchName string) (*github.RepositoryContent, error) {
6973
opts := &github.RepositoryContentGetOptions{}
7074
if branchName != "" {
7175
opts.Ref = fmt.Sprintf(HEADS, branchName)
7276
}
73-
file, _, _, err := g.client.Repositories.GetContents(context.Background(), g.organization, repository, pathToFile, opts)
77+
file, _, _, err := g.client.Repositories.GetContents(context.Background(), org, repository, pathToFile, opts)
7478
if err != nil {
7579
return nil, fmt.Errorf("error when listing file contents: %v", err)
7680
}
@@ -158,32 +162,33 @@ func (g *Github) DeleteRepositoryIfExists(name string) error {
158162

159163
_, resp, err := g.client.Repositories.Get(ctx, g.organization, name)
160164
if err != nil {
161-
if resp.StatusCode != 404 {
162-
return fmt.Errorf("Error checking repository %s/%s: %v\n", g.organization, name, err)
163-
}
164-
} else {
165-
_, deleteErr := g.client.Repositories.Delete(ctx, g.organization, name)
166-
if deleteErr != nil {
167-
return fmt.Errorf("Error deleting repository %s/%s: %v\n", g.organization, name, deleteErr)
165+
if resp != nil && resp.StatusCode == 404 {
166+
return nil
168167
}
168+
return fmt.Errorf("Error checking repository %s/%s: %v", g.organization, name, err)
169+
}
170+
171+
_, deleteErr := g.client.Repositories.Delete(ctx, g.organization, name)
172+
if deleteErr != nil {
173+
return fmt.Errorf("Error deleting repository %s/%s: %v", g.organization, name, deleteErr)
169174
}
170175

171176
return nil
172177
}
173178

174-
func (g *Github) ForkRepository(sourceName, targetName string) (*github.Repository, error) {
179+
func (g *Github) ForkRepositoryWithOrgs(sourceOrgName, sourceName, targetOrgName, targetName string) (*github.Repository, error) {
175180
var fork *github.Repository
176181
var resp *github.Response
177182
var repo *github.Repository
178183

179184
ctx := context.Background()
180185

181186
forkOptions := &github.RepositoryCreateForkOptions{
182-
Organization: g.organization,
187+
Organization: targetOrgName,
183188
}
184189

185190
err1 := utils.WaitUntilWithInterval(func() (done bool, err error) {
186-
fork, resp, err = g.client.Repositories.CreateFork(ctx, g.organization, sourceName, forkOptions)
191+
fork, resp, err = g.client.Repositories.CreateFork(ctx, sourceOrgName, sourceName, forkOptions)
187192
if err != nil {
188193
if _, ok := err.(*github.AcceptedError); ok && resp.StatusCode == 202 {
189194
// This meens forking is happening asynchronously
@@ -200,46 +205,61 @@ func (g *Github) ForkRepository(sourceName, targetName string) (*github.Reposito
200205
fmt.Printf("Warning, got 500: %s", resp.Body)
201206
return false, nil
202207
}
203-
return false, fmt.Errorf("Error forking %s/%s: %v", g.organization, sourceName, err)
208+
return false, fmt.Errorf("Error forking %s/%s: %v", sourceOrgName, sourceName, err)
204209
}
205210
return true, nil
206-
}, time.Second * 10, time.Minute * 30)
211+
}, time.Second * 10, time.Minute * 5)
207212
if err1 != nil {
208-
return nil, fmt.Errorf("Failed waiting for fork %s/%s: %v", g.organization, sourceName, err1)
213+
return nil, fmt.Errorf("Failed waiting for fork %s/%s: %v", sourceOrgName, sourceName, err1)
209214
}
210215

211216
err2 := utils.WaitUntilWithInterval(func() (done bool, err error) {
212217
// Using this to detect repo is created and populated with content
213218
// https://stackoverflow.com/questions/33666838/determine-if-a-fork-is-ready
214-
_, _, err = g.client.Repositories.ListCommits(ctx, g.organization, fork.GetName(), &github.CommitsListOptions{})
219+
_, _, err = g.client.Repositories.ListCommits(ctx, targetOrgName, fork.GetName(), &github.CommitsListOptions{})
215220
if err != nil {
216221
return false, nil
217222
}
218223
return true, nil
219224
}, time.Second * 10, time.Minute * 10)
220225
if err2 != nil {
221-
return nil, fmt.Errorf("Failed waiting for commits %s/%s: %v", g.organization, sourceName, err2)
226+
return nil, fmt.Errorf("Failed waiting for commits %s/%s: %v", targetOrgName, fork.GetName(), err2)
222227
}
223228

224229
editedRepo := &github.Repository{
225230
Name: github.String(targetName),
226231
}
227232

228233
err3 := utils.WaitUntilWithInterval(func() (done bool, err error) {
229-
repo, resp, err = g.client.Repositories.Edit(ctx, g.organization, fork.GetName(), editedRepo)
234+
repo, resp, err = g.client.Repositories.Edit(ctx, targetOrgName, fork.GetName(), editedRepo)
230235
if err != nil {
231236
if resp.StatusCode == 422 {
232237
// This started to happen recently. Docs says 422 is "Validation failed, or the endpoint has been spammed." so we need to be patient.
233238
// Error we are getting: "422 Validation Failed [{Resource:Repository Field:name Code:custom Message:name a repository operation is already in progress}]"
234239
return false, nil
235240
}
236-
return false, fmt.Errorf("Error renaming %s/%s to %s: %v\n", g.organization, fork.GetName(), targetName, err)
241+
return false, fmt.Errorf("Error renaming %s/%s to %s: %v", targetOrgName, fork.GetName(), targetName, err)
237242
}
238243
return true, nil
239244
}, time.Second * 10, time.Minute * 10)
240245
if err3 != nil {
241-
return nil, fmt.Errorf("Failed waiting for renaming %s/%s: %v", g.organization, targetName, err3)
246+
return nil, fmt.Errorf("Failed waiting for renaming %s/%s: %v", targetOrgName, targetName, err3)
242247
}
243248

244249
return repo, nil
245250
}
251+
252+
// Fork repository in our organization
253+
func (g *Github) ForkRepository(sourceName, targetName string) (*github.Repository, error) {
254+
return g.ForkRepositoryWithOrgs(g.organization, sourceName, g.organization, targetName)
255+
}
256+
257+
// For repozitory from our organization to another org
258+
func (g *Github) ForkRepositoryToOrg(sourceName, targetName, targetOrgName string) (*github.Repository, error) {
259+
return g.ForkRepositoryWithOrgs(g.organization, sourceName, targetOrgName, targetName)
260+
}
261+
262+
// Fork repository from another organization to our org
263+
func (g *Github) ForkRepositoryFromOrg(sourceName, targetName, sourceOrgName string) (*github.Repository, error) {
264+
return g.ForkRepositoryWithOrgs(sourceOrgName, sourceName, g.organization, targetName)
265+
}

0 commit comments

Comments
 (0)