-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(KONFLUX-2072): prepare the pkg to be able to detect issues outsi…
…de e2e workflow (#85) * feat(KONFLUX-2072): be able to detect issues outside e2e workflow * Improved the handling of iterator of e2e directory. The changes ensure that the iterator's pointer is not advanced when checking for `iterator.Done`, preventing potential data loss. * When the first call to `it.Next()` returns `iterator.Done`, that means there's no files found within the current directory with given prefix. * This implies there are no files present within the directory that's supposed to store artifacts related to e2e tests. * So, we initialise a new iterator for a new directory with prefix that points to "build-log.txt" file. And accordingly we init the maps. * This commit also refactors some logic to move them inside a function. Signed-off-by: Dheeraj<[email protected]> * refactor(KONFLUX-2072): make 'Run()' method more readable and clean Co-authored-by: Pavel Sturc <[email protected]> * style(KONFLUX-2072): address Golang warning Co-authored-by: Tomáš Nevrlka <[email protected]> * refactor(KONFLUX-2072): avoid else branches by using an early "return nil" Co-authored-by: Tomáš Nevrlka <[email protected]> * fix(KONFLUX-2072): check the size of array before accessing it Signed-off-by: Dheeraj<[email protected]> --------- Signed-off-by: Dheeraj<[email protected]> Co-authored-by: Pavel Sturc <[email protected]> Co-authored-by: Tomáš Nevrlka <[email protected]>
- Loading branch information
1 parent
ce50aa0
commit 142df51
Showing
1 changed file
with
172 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters