Skip to content

fix(KONFLUX-8910): fix results to show when ec command fails #2538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kasemAlem
Copy link
Contributor

@kasemAlem kasemAlem commented Jul 15, 2025

Check the logs for the error message when ec is missing
Verify TEST_OUTPUT contains "result":"ERROR" instead of "result":""
Ensure the task exits cleanly without attempting failed ec test commands
Confirm Konflux UI shows the task as failed (ERROR) rather than successful
The key verification is that when ec is missing, you get a proper ERROR result instead of an invalid/empty result that was shown as successful

In below content of the Jira Ticket KONFLUX-8910:

Description
Description of problem:
The clamav-scan task doesn't handle failed ec test command calls gracefully, instead it carries on and reports an invalid TEST_OUTPUT tekton result. which is then shown as successful in the Konflux UI.

How reproducible:

Steps to Reproduce:

  1. Run the clamav-scan task with a clamav-db image which doesn't have the ec util
  2. Check the task that's displayed in the Konflux UI
  3. Check the TEST_OUTPUT task result

Actual results:

The clamav-scan task outputs an invalid TEST_OUTPUT with an empty result value:

TEST_OUTPUT{"timestamp":"0","namespace":"","successes":0,"failures":0,"warnings":0,"result":"","note":""}
Expected results:

The TEST_OUTPUT's result value should be ERROR

Is this a customer issue: Yes

Please attach any logs/print screens to the ticket or share any additional info/links:
Task log gist: https://gist.github.com/dirgim/3dfb03897e648f1deb6fa7ffef625e2a

@kasemAlem kasemAlem requested a review from a team as a code owner July 15, 2025 11:51
@kasemAlem
Copy link
Contributor Author

/retest

@kasemAlem kasemAlem force-pushed the KONFLUX-8910 branch 3 times, most recently from c6f75b5 to 91ea8b1 Compare July 16, 2025 07:22
  we fixed the script in task clamav-scan if
  command ec fails in clamav-db image cause it's not exist an ERROR will
  be in result of TEST_OUTPUT.

Signed-off-by: Kasem Alem <[email protected]>
Copy link
Contributor

@jencull jencull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kasemAlem
Copy link
Contributor Author

/retest

@kasemAlem kasemAlem requested a review from a team July 16, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants