-
Notifications
You must be signed in to change notification settings - Fork 44
Do not setup set -e in case function analyze_logs_by_logdetective fails
#416
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
Conversation
send the logs to logdetective URL. Setting set +e and afterwards set -e does not make sense. In case sending data to logdetective failed, then continue. In case set -e is set up and failed_version function returns non zero status, than script is immediatelly stopped which does not make sense in case we tested all version. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Pull Request validationFailed🔴 Failed or pending statuses:
🔴 Review - Missing review from a member (1 required) |
|
@pkhartsk @SlouchyButton PTAL. This should fix the issues sclorg/ci-scripts#183 |
|
[test] |
Testing Farm results
|
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
|
Let's test it once again after adding some more descriptive comments. |
|
[test] |
pkhartsk
left a comment
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.
Tested with failing tests for nginx container, output:
Test cases results:
[PASSED] for 'test-app' test_s2i_usage (00:00:00)
[PASSED] for 'test-app' test_docker_run_usage (00:00:00)
[PASSED] for 'test-app' test_application (00:00:03)
[FAILED] for 'test-app' test_log_output (00:00:06)
[PASSED] for 'test-app' test_log_volume_output (00:00:02)
[PASSED] for 'test-app' test_application_user (00:00:02)
[PASSED] for 'start-hook-test-app' test_pre_init_script (00:00:02)
[PASSED] for 'perl-test-app' test_perl_directive (00:00:02)
[PASSED] for 'miscellaneous-tests' run_dockerfiles_test (00:00:16)
Tests for ubi9/nginx-126:1.26 failed.
Analyse logs by logdetective, why it failed.
Sending failed log by fpaste command to paste bin.
Sending log file to logdetective server: /tmp/rhel9-1.26.nIyRu4
-------- LOGDETECTIVE TEST LOG ANALYSIS START --------
curl: (3) URL rejected: No host part in the URL
ERROR: Failed to analyze log file by logdetective server.
-------- LOGDETECTIVE TEST LOG ANALYSIS FAILED --------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Test for image ubi9/nginx-126:1.26 FAILED in these versions 1.20 1.22 1.24 1.26.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
make: *** [common/common.mk:95: test] Error 1
LGTM
Do not setup
set -ein case functionanalyze_logs_by_logdetectivefailssend the logs to logdetective URL.
Setting set +e and afterwards set -e does not make sense. In case sending data to logdetective failed, then continue.
In case set -e is set up and failed_version function returns non zero status, than script is immediatelly stopped which does not make sense in case we tested all version.