-
Notifications
You must be signed in to change notification settings - Fork 140
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
tasks/acs*: don't fail when ACS is not configured #878
Conversation
a19bfdc
to
bb6c630
Compare
Seems to work more or less as intended
|
I assume the empty ACS_SCAN_OUTPUT causes the 0 values in the vulnerabilties ? |
Probably yes. I don't see an easy way to avoid that |
/retest |
@@ -95,6 +95,7 @@ spec: | |||
echo "rox API endpoint is not set, demo will exit with success" | |||
echo "TODO: configure the pipeline with your ACS server domain. Set your ACS endpoint under 'rox-api-endpoint' key in the secret specified in rox-secret-name parameter. For example: 'rox.stackrox.io:443'" | |||
set_test_output_result SKIPPED "Task $(context.task.name) skipped: ACS API enpoint not specified" | |||
touch $(results.SCAN_OUTPUT.path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for completeness: if we didn't write the empty result here, the pipeline would fail with
invalid pipelineresults [ACS_SCAN_OUTPUT], the referred results don't exist
And this failure is only visible directly in the OCP console. RHDH just shows all the tasks as green and the overall result as red
bb6c630
to
b4d6fc3
Compare
* The report step in all tasks now cats the file only if it exists * The image-scan task writes an empty SCAN_OUTPUT when skipped * Otherwise the pipeline fails because the ACS_SCAN_OUTPUT result references a non-existent task result Signed-off-by: Adam Cmiel <[email protected]>
b4d6fc3
to
7ca57c1
Compare
Quality Gate passedIssues Measures |
From a discussion with John: the 0s in the vulnerabilities report are a problem, we'd like a better solution
|
Before you complete this pull request ...
Look for any open pull requests in the repository with the title "e2e-tests update" and
see if there are recent e2e-tests updates that will be applicable to your change.