Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
321 commits
Select commit Hold shift + click to select a range
a91cf14
feat: Avoid confusion when MY_GITHUB_ORG is not set to same as --fork…
jhutar Jun 23, 2025
f2c95e8
feat(KONFLUX-8856): Add more progress log messages when waiting for I…
jhutar Jun 25, 2025
af211a0
fix(KONFLUX-8856): Avoid touching 'snap' if it was not loaded: panic:…
jhutar Jun 25, 2025
0a3da45
feat(KONFLUX-8919): Add a way to add more details to 'Pipeline failed…
jhutar Jun 27, 2025
0d3c902
feat(KONFLUX-8544): Setup releases for the application
jhutar Jun 20, 2025
94449c6
feat(KONFLUX-8544): Measure releases for the application
jhutar Jun 23, 2025
e662444
chore: Add more ignored files & dirs
jhutar Jun 23, 2025
0745370
feat: Add more logging to show what is going on better
jhutar Jun 23, 2025
84fac22
feat(KONFLUX-8544): Also consider release measurements in KPI
jhutar Jun 23, 2025
00c51aa
feat(KONFLUX-8544): Sync missing labels to Horreum definition script
jhutar Jun 23, 2025
33b0221
feat: New error: Release failed: Release jhutar-app-tnplb-bhjbp-e25f3…
jhutar Jun 24, 2025
2bf95f2
feat: New error: Snapshot failed creation: context deadline exceeded
jhutar Jun 27, 2025
7624b91
feat: Return simple error when required logs are missing
jhutar Jun 30, 2025
b360461
feat: When no PLR was found, word the error properly. Also add one mo…
jhutar Jun 30, 2025
dd1d120
fix: Add missing newlines to end of these error prints
jhutar Jun 30, 2025
446ec7c
fix: If the release pipeline run was not found, keep waiting
jhutar Jul 1, 2025
03df0d0
feat: New error for Unable to list PipelineRuns
larrymou9 Jul 1, 2025
b1c31f4
feat: New error (and sort): ERROR Command returned error: Failed to d…
jhutar Jul 1, 2025
f91d56a
feat: New error: Adding Error deleting on-pull-request default Pipeli…
larrymou9 Jun 27, 2025
ee7c69e
feat: New error: tar: /home/u-.../chroot_scan.tar.gz: Cannot open: No…
jhutar Jul 2, 2025
dff1855
feat: Extend the message back
jhutar Jul 2, 2025
47ec9c2
feat: New error: Application failed creation: Unable to create the Ap…
jhutar Jul 2, 2025
bc837cf
feat: New error: Release failed: Release jhutar-app-okeck-krc9c-4f297…
jhutar Jul 3, 2025
fd42577
docs: Add details about 'Timeout listing pipeline runs' error
jhutar Jul 3, 2025
77b385e
feat: New error: buildah build failed creating build container: regis…
larrymou9 Jul 3, 2025
3251138
feat: New error: Introspection failed because of incomplete .docker/c…
larrymou9 Jul 3, 2025
840f78e
docs: Add a note about how significant this ently is. We should have …
jhutar Jul 4, 2025
d50b338
feat: New error: Error allocating host because of provisioning error
larrymou9 Jul 4, 2025
20e2452
feat: New error: Can not find Dockerfile
larrymou9 Jul 4, 2025
e4fd8d7
feat: New error: Error allocating host because of insufficient free a…
jhutar Jul 23, 2025
5498bf2
feat: New error: Gateway Time-out when pulling container image
jhutar Jul 23, 2025
152ca39
feat: New error: Failed creating integration test scenario because ca…
jhutar Jul 23, 2025
4c786fa
cleanup: Sort
jhutar Jul 23, 2025
f205543
feat: New error pattern: Timeout listing pipeline runs
jhutar Jul 23, 2025
87dfb7a
feat: New error: Bad Gateway when pulling container image
jhutar Jul 23, 2025
2c88f8e
feat: New error: Timeout getting PaC pull number when validating comp…
jhutar Jul 23, 2025
1792b13
feat: New error pattern: Build Pipeline Run was cancelled
jhutar Jul 23, 2025
7a43890
feat: New error: DNF failed to download repodata from Download Devel …
jhutar Jul 23, 2025
5a7ff06
feat: New error: Repo forking failed as we got TLS handshake timeout …
jhutar Jul 23, 2025
921a752
feat: New error: Unable to connect to server
jhutar Jul 23, 2025
617b63a
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Jul 23, 2025
86c6738
feat(KONFLUX-8783): Remove ITS validation
jhutar Jul 25, 2025
a389260
feat: New error: Couldnt get task via buldles resolver from quay.io d…
jhutar Jul 25, 2025
f16965f
fix: Fix typo buldles -> bundles
jhutar Jul 25, 2025
d28f3fa
feat: New error: Gateway Time-out when pulling container image from q…
jhutar Jul 25, 2025
c0d5767
feat: New error: Failed getting PaC pull number because PaC public ro…
jhutar Jul 25, 2025
fb11cf1
fix: Fix wording as we are not creating that SA, just ensuring it exists
jhutar Jul 25, 2025
b39c23f
feat(KONFLUX-8988): Also collect release pipelinerun
jhutar Jul 28, 2025
ef05611
fix: Make error code unique
jhutar Jul 28, 2025
adc7620
feat: Distinguilsh when different pipeline runs fails
jhutar Jul 28, 2025
fe5aae6
fix: Do not exit collecting PLRs if there is not release PLR
jhutar Jul 28, 2025
a57685a
feat: Do not append pr_release if none was found
jhutar Jul 29, 2025
e44fb61
feat: New error: Repo forking failed when deleting target repo on git…
jhutar Jul 29, 2025
a673ff9
fix: Use right (?) exception when catching YAML parsing error
jhutar Jul 30, 2025
6b7c569
feat: New error and functionality: Sometimes PLR fails because TR fai…
jhutar Jul 30, 2025
c85a213
feat: New error and functionality: Capture another fail that might be…
jhutar Jul 30, 2025
90c7479
feat: New error: Failed to pull container from quay.io because of DNS…
jhutar Jul 30, 2025
0ab58a7
feat: Also closely investigate release PLRs
jhutar Jul 30, 2025
2d875c3
fix: Use sets here as in dicts we can not have two values with same key
jhutar Jul 30, 2025
5d3f9c9
feat(KONFLUX-8988): Move part of collection to per auth so it makes s…
jhutar Jul 30, 2025
789d9d3
feat(KONFLUX-8988): Also collect Release, RP, RPA and Snapshot
jhutar Jul 30, 2025
2820799
feat: New error: Hide problem with releases collection on clusters wh…
jhutar Jul 30, 2025
58b98cd
fix: Do not fail if there are no release related CRs as this is a bes…
jhutar Jul 30, 2025
9214bbb
fix: Add forgotten coma
jhutar Jul 30, 2025
af6c9b3
feat: Make sure that bug in errors.py do not cause interruption of th…
jhutar Jul 30, 2025
366a632
fix: Do not attempt to collect Snapshot and Release if name was not p…
jhutar Jul 30, 2025
68747e3
feat: Check TR status message even when podName is set but pod log is…
jhutar Aug 4, 2025
b9543f5
feat: New error: Back-off pulling task run image from registry.access…
jhutar Aug 4, 2025
7ff2947
fix: Properly escape these backslashes and double quotes
jhutar Aug 4, 2025
d5f438e
feat: New error: Failed to pull container from registry.fedoraproject…
jhutar Aug 4, 2025
ce5f1fe
feat: New error: Error updating .tekton file in gitlab.cee.redhat.com
jhutar Aug 5, 2025
1908adc
feat: New error and change: Build failed for unspecified reasons
jhutar Aug 5, 2025
e3693f9
feat: New error: Failed because CPU is not x86-64-v4
jhutar Aug 6, 2025
17b5828
feat: New error: Failed downloading rpms for hermetic builds due to 5…
jhutar Aug 6, 2025
13c4699
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 7, 2025
604118e
feat: Relax regexp for this pattern
jhutar Aug 7, 2025
213f7db
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 7, 2025
4480a17
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 7, 2025
8bb3f31
feat: New error: Failed to add imagePullSecrets to build SA
jhutar Aug 7, 2025
73a841a
feat: Do not give up if JSON in that annotation value have unexpected…
jhutar Aug 7, 2025
df1627d
feat: New error: Component creation timed out waiting for image repos…
jhutar Aug 8, 2025
cd6d32e
feat: New error: Failed creating integration test scenario because ad…
jhutar Aug 8, 2025
a3e0888
feat: New error: Timeout waiting for release pipeline to be created
jhutar Aug 8, 2025
40a76a2
feat: New error: Script gather-rpms.py failed because of too many val…
jhutar Aug 8, 2025
d236b3f
fix: Move to right list as this is about error from some pod
jhutar Aug 11, 2025
20aaa3e
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 11, 2025
5a2a5db
feat: New error: Failed to pull container from access.redhat.com beca…
jhutar Aug 14, 2025
f129638
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 14, 2025
6ea33be
feat: New error: Failed to git fetch from gitlab.cee due to connectiv…
jhutar Aug 14, 2025
ec35026
feat: New error: Timeout forking the repo before the actual test
jhutar Aug 14, 2025
221ce18
feat: New error: Getting repo tags from quay.io failed because of 502…
jhutar Aug 14, 2025
f5d939c
fix: Properly escape the error
jhutar Aug 14, 2025
f545cc4
feat: New error: Repo forking failed because import failed
jhutar Aug 14, 2025
1dfe70d
fix: Remove trailing character - typo
jhutar Aug 15, 2025
5d64a5f
feat: New error: Failed to ssh to remote MPC VM
jhutar Aug 15, 2025
4081963
fix: Fix regexp for this rule
jhutar Aug 15, 2025
55b7542
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 15, 2025
e635a0f
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 15, 2025
4ffd0b5
feat: Ignore another error that is not relevant
jhutar Aug 15, 2025
c6e518e
fix(KONFLUX-9622): Retry creating ITS in case of failure with short t…
jhutar Aug 18, 2025
e1ba87d
feat: Do not spam output with so many errors when waiting
jhutar Aug 18, 2025
9abe3a4
fix: Resolve panic 'invalid memory address or nil pointer dereference…
jhutar Aug 19, 2025
4e1462d
refactor: Remove trailing newlines from errors
jhutar Aug 19, 2025
2aa9fe4
fix: Define we always return string here - this also resolves traceba…
jhutar Aug 19, 2025
8003709
feat: Print PipelineRun name
jhutar Aug 19, 2025
afad692
style: Use debug log messages here as in the rest of the code
jhutar Aug 19, 2025
e559af2
feat: Increase interval as onboarding takes about 25 seconds, so ther…
jhutar Aug 20, 2025
818b774
feat: Do not even attempt to list release PLRs if we do not tahe rele…
jhutar Aug 20, 2025
2423819
feat(KONFLUX-8961): Add more verbosity when waiting for SA as it hand…
jhutar Aug 20, 2025
81a6307
fix(KONFLUX-8961): Increase timeout when waiting for build SA
jhutar Aug 20, 2025
b9afb9e
feat: New error: Repo forking failed as GitLab CEE says 500 Internal …
jhutar Aug 20, 2025
c260412
feat: New error: Application creation failed because it already exists
jhutar Aug 20, 2025
181f314
feat: New error: Couldnt get task via git resolver from gitlab.cee du…
jhutar Aug 20, 2025
f530a0f
feat: New error: Failed to provision MPC VM due to resource quota eva…
jhutar Aug 20, 2025
5156fff
feat: New error: Script mock-hermetic-repo failed because pull from r…
jhutar Aug 20, 2025
0b505ff
feat: New error: Failed creating integration test scenario because of…
jhutar Aug 20, 2025
75dfd46
refactor(KONFLUX-8961): When simply creating component, it is not our…
jhutar Aug 20, 2025
80ef377
feat(KONFLUX-8961): Instead of waiting for build SA and image reposit…
jhutar Aug 20, 2025
a4aa001
feat: New error: Not enough nodes to schedule pod
jhutar Aug 21, 2025
d81d594
feat: New error: Script rpm_verifier failed to access image layer fro…
jhutar Aug 21, 2025
a0e8d14
feat: New error: Repo templating failed when updating file on github.…
jhutar Aug 21, 2025
070a7f9
feat: New error: Release failed because unauthorized when pushing art…
jhutar Aug 21, 2025
2109f3c
feat: New error: Release failed because unauthorized when pulling policy
jhutar Aug 21, 2025
c20865f
feat: New error: Enterprise contract results failed validation
jhutar Aug 21, 2025
f601b81
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 21, 2025
915c017
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 21, 2025
1bed5a6
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 21, 2025
f84deb6
feat(KONFLUX-9621): Add a cleanup or ImageRepository CRs in case they…
jhutar Aug 22, 2025
c32ff5c
feat: New error: Timeout onboarding component
jhutar Aug 22, 2025
18f2293
feat: New error: Failed component creation because it already exists
jhutar Aug 22, 2025
4e74bbd
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 22, 2025
513a0b1
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 22, 2025
5f9560a
feat: New error: Couldnt get task via buldles resolver from quay.io d…
jhutar Aug 22, 2025
009bcdd
feat: New error: Failed to pull container from quay.io due to 404
jhutar Aug 22, 2025
4716fb4
feat: New error: Failed to push to quai.io due to 404
jhutar Aug 22, 2025
0142fef
feat: New error: Back-off pulling task run image from registry.redhat.io
jhutar Aug 22, 2025
03ed6f1
feat: New error: Post-test data collection failed
jhutar Aug 22, 2025
9fb5d05
feat: New error: Failed downloading rpms for hermetic builds
jhutar Aug 22, 2025
51e5b19
feat: New error: Failed to prefetch dependencies due to download timeout
jhutar Aug 22, 2025
f564bdc
feat: New error: Repo forking failed as GitLab CEE says 405 Method No…
jhutar Aug 25, 2025
243359c
feat: New error: Timeout forking the repo before the actual test
jhutar Aug 25, 2025
34f025c
feat(KONFLUX-9835): When repo got moved, that means it was deleted
jhutar Aug 25, 2025
ba01f3c
feat: New error: Failed to push SBOM to quay.io
jhutar Aug 25, 2025
d96daa2
feat(KONFLUX-9835): Delete GL CEE repos for second time
jhutar Aug 26, 2025
1f05d64
feat: New error: Script mock-hermetic-repo failed because pull from r…
jhutar Aug 26, 2025
778382f
fix: Fix `full_path` is incorrect. You must enter the complete path f…
jhutar Aug 27, 2025
f01feeb
feat: New error: Couldnt get task via bundles resolver from quay.io d…
jhutar Aug 28, 2025
bf8c35a
feat: New error: Script rpm_verifier failed to pull image from quay.i…
jhutar Aug 28, 2025
0d4b962
feat: New error: Script mock-hermetic-repo failed because pull from r…
jhutar Aug 28, 2025
1ed79c1
feat: New error: Failed to pull container from registry.access.redhat…
jhutar Aug 28, 2025
37b527d
feat: New error: Failed to connect to MPC VM
jhutar Aug 28, 2025
3856749
feat: New error: Pod stuck in incorrect status
jhutar Aug 28, 2025
08c4da0
style: Apply some flake8 recomendations to errors.py
jhutar Aug 28, 2025
b589f6c
feat: Hide 'Post-test data collection failed' from simple error as it…
jhutar Aug 28, 2025
ebec323
feat: New error: Application creation failed because resourcequota ob…
jhutar Aug 28, 2025
c0f83da
feat: New error: Component creation failed because resourcequota obje…
jhutar Aug 28, 2025
b106a27
feat: New error: buildah build failed to pull container from registry…
jhutar Sep 1, 2025
877189b
feat: New error: Couldnt get task via bundles resolver because contro…
jhutar Sep 1, 2025
757cf0f
feat: New error: No podman installed on a MPC VM
jhutar Sep 1, 2025
a5dcfbc
feat: New error: Pod creation failed because resource quota evaluatio…
jhutar Sep 1, 2025
5428eac
feat: New error: Invalid reference when processing SBOM
jhutar Sep 1, 2025
f1d9ed5
feat: New error: Failed to push SBOM to quay.io
jhutar Sep 1, 2025
36d1ebc
feat: New error: Timeout creating application calling mapplication.kb…
jhutar Sep 2, 2025
09bc429
feat: New error: Couldnt get task via buldles resolver from quay.io d…
jhutar Sep 8, 2025
419e35e
feat: New error: DNF failed to download repodata from Download Devel …
jhutar Sep 8, 2025
bc7d1b8
feat: New error: DNF failed to download repodata from Download Devel …
jhutar Sep 8, 2025
e26b6fb
feat: New error: Pod creation failed with reason error
jhutar Sep 8, 2025
9c30faa
feat(KONFLUX-9513): Make it possible to configure namespace
jhutar Sep 9, 2025
90360db
refactor: Simplify user frameworks creation
jhutar Sep 9, 2025
52dab43
feat: Allow setting startup delay for threads
jhutar Sep 10, 2025
aa16f81
feat: Make sure all times from pkg/clients/has/components.go are disp…
jhutar Sep 10, 2025
ca3853c
feat: Updated error: DNF failed to download repodata from Download De…
jhutar Sep 11, 2025
88fb2cd
feat: New error: Repo templating failed when updating file on github.…
jhutar Sep 11, 2025
b66da69
feat: New error: Repo forking failed as we got TLS handshake timeout …
jhutar Sep 11, 2025
eb13fed
feat: Updated error: Invalid reference when processing SBOM
jhutar Sep 11, 2025
8e922d3
feat: Also show number of successful runs when computing KPI
jhutar Sep 15, 2025
6b08d05
feat: New error: Repo templating failed when updating file on github.…
jhutar Sep 15, 2025
939718d
refactor(KONFLUX-10143): break import cycle between journey and logging
jhutar Sep 16, 2025
9fd488d
chore: Make git to ignore few more files
jhutar Sep 16, 2025
7a77aeb
feat: Get thread and repeats info from params, but looks like it is n…
jhutar Sep 16, 2025
b3b292d
feat(KONFLUX-10143): Specify threads info when calling Measure function
jhutar Sep 16, 2025
bc8ceee
refactor(KONFLUX-10143): Compute KPI stats without guessing with the …
jhutar Sep 16, 2025
b44f3c6
refactor(KONFLUX-10143): Pass just one context to make the code short…
jhutar Sep 16, 2025
14a0466
feat: Allow running this script against custom collected-data directo…
jhutar Sep 17, 2025
75f2815
feat: New error: Failed reading signatures from access.redhat.com due…
jhutar Sep 17, 2025
7858b3b
feat: New error: TaskRun was cancelled as its PipelineRun was cancelled
jhutar Sep 18, 2025
bb94806
fix(KONFLUX-9051): If the release is still progressing, wait some more
jhutar Sep 18, 2025
56704db
feat: Do not traceback when TR file is missing
jhutar Sep 19, 2025
e7289e7
feat: New error: Pod creation failed because serviceaccounts not found
jhutar Sep 19, 2025
63e9545
feat: New error: TaskRun was cancelled as its PipelineRun timeouted
jhutar Sep 19, 2025
833840c
feat: New error: Script opm failed because catalog is missing
jhutar Sep 19, 2025
9c022aa
feat: New error: Failed to compile with clang
jhutar Sep 19, 2025
304dde3
feat: New error: Failed to prefetch dependencies due to go env error
jhutar Sep 19, 2025
684bc87
feat: New error: Failed to prefetch dependencies due to invalid input…
jhutar Sep 19, 2025
011696e
feat: New error: Script merge_catalogs.sh due to permission error
jhutar Sep 19, 2025
f1d627d
feat: New error: TaskRun resolution failed because validation.webhook…
jhutar Sep 19, 2025
46062b8
feat: New error: TaskRun was cancelled because it timeouted
jhutar Sep 19, 2025
86c54dc
feat: New error: Script oras failed to fetch blob from Quay after 10 …
jhutar Sep 19, 2025
fab2359
style: Fix order
jhutar Sep 19, 2025
55e72a2
feat: New error: Failed to compile with clang
jhutar Sep 19, 2025
e599ff7
feat: New error: Script opm failed because failed to pull image from …
jhutar Sep 19, 2025
722592f
feat: New error: Script opm failed because catalog is missing
jhutar Sep 19, 2025
b0329f0
feat: New error: Failed to prefetch dependencies due to subscription-…
jhutar Sep 19, 2025
2f14279
feat: New error: Script opm failed to load or rebuild cache because s…
jhutar Sep 23, 2025
30088f8
feat: Make files we are evaluating smaller, because for big ones it t…
jhutar Sep 23, 2025
181b86e
feat: New error: Git failed to clone submodule because GitLab CEE giv…
jhutar Sep 23, 2025
84179e1
feat: New error: Git failed to fetch because GitLab CEE giving 429
jhutar Sep 23, 2025
4cab593
feat: New error: Git failed to fetch because GitLab CEE giving 429
jhutar Sep 23, 2025
bb785e2
fix: Change error: Relax regexp here as exist codes are sometimes 1, …
jhutar Sep 23, 2025
6769767
fix: Fixed error regexps and added one more variant
jhutar Sep 23, 2025
cefc8f3
feat: New error: DNF failed to install package because GPG check failed
jhutar Sep 23, 2025
49f89ab
feat: New error: Go failed installation because it was killed
jhutar Sep 23, 2025
a97193b
feat: New error: oras failed to fetch blob from Quay.io because it wa…
jhutar Sep 23, 2025
cda594d
fix: Make this space optional
jhutar Sep 23, 2025
655757d
feat: Also skipp containers that were just cancelled because TaskRun …
jhutar Sep 23, 2025
0bed36c
feat: New error: buildah failed to pull image from Quay.io because un…
jhutar Sep 23, 2025
4acd196
feat: New error: Git failed to fetch because GitLab CEE giving 429
jhutar Sep 23, 2025
03968f7
feat: New error: Prefetch dependencies failed to download from rhsm-p…
jhutar Sep 23, 2025
868b84c
feat: New error: Prefetch dependencies failed to download from downlo…
jhutar Sep 23, 2025
d73d580
fix: Dockerfile can have different names
jhutar Sep 23, 2025
239a1a6
fix: Do not fail if there are no release related CRs as this is a bes…
jhutar Jul 30, 2025
68c3664
feat: Add more info into distribution of KPI durations
jhutar Sep 25, 2025
3674432
fix: Fix name 'datafile' is not defined error caused by refactor
jhutar Sep 26, 2025
66d6b66
fix(KONFLUX-10309): Use right organization when getting templates
jhutar Sep 26, 2025
39a42ef
feat(KONFLUX-10328): Add option to make component onboarding sequential
jhutar Oct 1, 2025
4c07de5
refactor: Rename these to express this is about per user threads
jhutar Oct 1, 2025
d989b69
refactor: Move determining ITS and printing relevant log to create...…
jhutar Oct 1, 2025
fc93f76
refactor: Rename these to express this is about per user threads, par…
jhutar Oct 1, 2025
b47b803
refactor: Determine application name in handle function as for other …
jhutar Oct 1, 2025
46669fb
refactor: Generate RP and RPA names in functions and store them in co…
jhutar Oct 1, 2025
2036379
feat: Add DoHarmlessCommit function
jhutar Oct 1, 2025
7211f84
feat(KONFLUX-10328): Add options to reuse apps and components
jhutar Oct 1, 2025
dfb554e
refactor: Move component name creation to handle function
jhutar Oct 1, 2025
27ab125
fix: At this point we might not have a component name yet
jhutar Oct 1, 2025
34b4e96
fix: Make this function to actually return component name
jhutar Oct 1, 2025
fb15e5a
fix: Do not attempt to collect RPs and RPAs when they were not created
jhutar Oct 1, 2025
4251700
fix: Resolve race condition in component and application setup
jhutar Oct 1, 2025
66745fe
feat: Ensure all needed data are available
jhutar Oct 1, 2025
91bdd91
feat: Streamline tracking journey, have is staticcaly in app context …
jhutar Oct 2, 2025
bc04128
fix: Correctly reference reused components in subsequent journeys
jhutar Oct 2, 2025
8e6e850
fix: Use forked ComponentRepoUrl
jhutar Oct 2, 2025
e4cfdd6
fix: Get right application for every application thread
jhutar Oct 2, 2025
387d04c
feat: When reusing components and applications, reuse also metrics fo…
jhutar Oct 2, 2025
4e37508
feat: Log traceback if this exception happens
jhutar Oct 13, 2025
6e0b0f5
feat: Show monitoring venv content
jhutar Oct 17, 2025
0aab00f
fix(KONFLUX-10645): correct Options struct initialization in releaseL…
jhutar Oct 31, 2025
a2d80e4
feat(KONFLUX-10645): Address issues found by golangci-lint
jhutar Oct 31, 2025
cd5336d
fix(KONFLUX-10645): Fix two tests working with git branches
jhutar Oct 31, 2025
82155de
cleanup: Remove 'temporary logs'
jhutar Nov 3, 2025
bb87604
feat: First run is in .../0/... now
jhutar Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 0 additions & 89 deletions .github/workflows/loadtest-hourly.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ require (
github.com/stretchr/testify v1.10.0
github.com/tektoncd/cli v0.33.0
github.com/tektoncd/pipeline v0.68.0
github.com/xanzy/go-gitlab v0.104.1
github.com/xanzy/go-gitlab v0.110.0
golang.org/x/crypto v0.36.0
golang.org/x/oauth2 v0.25.0
golang.org/x/tools v0.28.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,8 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/xanzy/go-gitlab v0.104.1 h1:g/liXIPJH0jsTwVuzTAUMiKdTf6Qup3u2XZq5Rp90Wc=
github.com/xanzy/go-gitlab v0.104.1/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI=
github.com/xanzy/go-gitlab v0.110.0 h1:hsFIFp01v/0D0sdUXoZfRk6CROzZbHQplk6NzKSFKhc=
github.com/xanzy/go-gitlab v0.110.0/go.mod h1:wKNKh3GkYDMOsGmnfuX+ITCmDuSDWFO0G+C4AygL9RY=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
Expand Down
2 changes: 2 additions & 0 deletions pkg/clients/common/service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
. "github.com/onsi/ginkgo/v2"
"k8s.io/apimachinery/pkg/util/wait"
"sigs.k8s.io/controller-runtime/pkg/client"
)
Expand All @@ -17,6 +18,7 @@ func (s *SuiteController) ServiceAccountPresent(saName, namespace string) wait.C
return func() (bool, error) {
_, err := s.GetServiceAccount(saName, namespace)
if err != nil {
GinkgoWriter.Printf("failed to get service account %s in namespace %s: %+v\n", saName, namespace, err)
return false, nil
}
return true, nil
Expand Down
58 changes: 39 additions & 19 deletions pkg/clients/github/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ func (g *Github) CreateFile(repository, pathToFile, fileContent, branchName stri
}

func (g *Github) GetFile(repository, pathToFile, branchName string) (*github.RepositoryContent, error) {
return g.GetFileWithOrg(g.organization, repository, pathToFile, branchName)
}

func (g *Github) GetFileWithOrg(org, repository, pathToFile, branchName string) (*github.RepositoryContent, error) {
opts := &github.RepositoryContentGetOptions{}
if branchName != "" {
opts.Ref = fmt.Sprintf(HEADS, branchName)
}
file, _, _, err := g.client.Repositories.GetContents(context.Background(), g.organization, repository, pathToFile, opts)
file, _, _, err := g.client.Repositories.GetContents(context.Background(), org, repository, pathToFile, opts)
if err != nil {
return nil, fmt.Errorf("error when listing file contents: %v", err)
}
Expand Down Expand Up @@ -158,32 +162,33 @@ func (g *Github) DeleteRepositoryIfExists(name string) error {

_, resp, err := g.client.Repositories.Get(ctx, g.organization, name)
if err != nil {
if resp.StatusCode != 404 {
return fmt.Errorf("Error checking repository %s/%s: %v\n", g.organization, name, err)
}
} else {
_, deleteErr := g.client.Repositories.Delete(ctx, g.organization, name)
if deleteErr != nil {
return fmt.Errorf("Error deleting repository %s/%s: %v\n", g.organization, name, deleteErr)
if resp != nil && resp.StatusCode == 404 {
return nil
}
return fmt.Errorf("Error checking repository %s/%s: %v", g.organization, name, err)
}

_, deleteErr := g.client.Repositories.Delete(ctx, g.organization, name)
if deleteErr != nil {
return fmt.Errorf("Error deleting repository %s/%s: %v", g.organization, name, deleteErr)
}

return nil
}

func (g *Github) ForkRepository(sourceName, targetName string) (*github.Repository, error) {
func (g *Github) ForkRepositoryWithOrgs(sourceOrgName, sourceName, targetOrgName, targetName string) (*github.Repository, error) {
var fork *github.Repository
var resp *github.Response
var repo *github.Repository

ctx := context.Background()

forkOptions := &github.RepositoryCreateForkOptions{
Organization: g.organization,
Organization: targetOrgName,
}

err1 := utils.WaitUntilWithInterval(func() (done bool, err error) {
fork, resp, err = g.client.Repositories.CreateFork(ctx, g.organization, sourceName, forkOptions)
fork, resp, err = g.client.Repositories.CreateFork(ctx, sourceOrgName, sourceName, forkOptions)
if err != nil {
if _, ok := err.(*github.AcceptedError); ok && resp.StatusCode == 202 {
// This meens forking is happening asynchronously
Expand All @@ -200,46 +205,61 @@ func (g *Github) ForkRepository(sourceName, targetName string) (*github.Reposito
fmt.Printf("Warning, got 500: %s", resp.Body)
return false, nil
}
return false, fmt.Errorf("Error forking %s/%s: %v", g.organization, sourceName, err)
return false, fmt.Errorf("Error forking %s/%s: %v", sourceOrgName, sourceName, err)
}
return true, nil
}, time.Second * 10, time.Minute * 30)
}, time.Second * 10, time.Minute * 5)
if err1 != nil {
return nil, fmt.Errorf("Failed waiting for fork %s/%s: %v", g.organization, sourceName, err1)
return nil, fmt.Errorf("Failed waiting for fork %s/%s: %v", sourceOrgName, sourceName, err1)
}

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

editedRepo := &github.Repository{
Name: github.String(targetName),
}

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

return repo, nil
}

// Fork repository in our organization
func (g *Github) ForkRepository(sourceName, targetName string) (*github.Repository, error) {
return g.ForkRepositoryWithOrgs(g.organization, sourceName, g.organization, targetName)
}

// For repozitory from our organization to another org
func (g *Github) ForkRepositoryToOrg(sourceName, targetName, targetOrgName string) (*github.Repository, error) {
return g.ForkRepositoryWithOrgs(g.organization, sourceName, targetOrgName, targetName)
}

// Fork repository from another organization to our org
func (g *Github) ForkRepositoryFromOrg(sourceName, targetName, sourceOrgName string) (*github.Repository, error) {
return g.ForkRepositoryWithOrgs(sourceOrgName, sourceName, g.organization, targetName)
}
Loading
Loading