Skip to content

Conversation

@phracek
Copy link
Member

@phracek phracek commented Jan 7, 2026

Do not setup set -e in case function analyze_logs_by_logdetective fails

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.

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>
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Pull Request validation

Failed

🔴 Failed or pending statuses:

  • Testing Farm - RHEL9 - s2i-base-container[pending]
  • Testing Farm - Fedora - postgresql-container[pending]
  • Testing Farm - RHEL9 - s2i-perl-container[pending]
  • Testing Farm - RHEL9 - postgresql-container[pending]
  • Testing Farm - CentOS Stream 10 - postgresql-container[pending]
  • Testing Farm - Fedora - s2i-python-container[pending]
  • Testing Farm - RHEL9 - s2i-python-container[pending]
  • Testing Farm - Fedora - s2i-perl-container[pending]
  • Testing Farm - RHEL8 - s2i-perl-container[pending]
  • Testing Farm - RHEL9 - nginx-container[pending]
  • Testing Farm - CentOS Stream 9 - postgresql-container[pending]
  • Testing Farm - RHEL8 - postgresql-container[pending]
  • Testing Farm - Fedora - nginx-container[pending]
  • Testing Farm - CentOS Stream 9 - nginx-container[pending]

🔴 Review - Missing review from a member (1 required)

@phracek
Copy link
Member Author

phracek commented Jan 7, 2026

@pkhartsk @SlouchyButton PTAL. This should fix the issues sclorg/ci-scripts#183

@phracek phracek requested a review from SlouchyButton January 7, 2026 08:47
@phracek
Copy link
Member Author

phracek commented Jan 7, 2026

[test]

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - nginx-containerFedora-latestx86_64✅ passed07.01.2026 14:12:1811min 10stest pipeline
CentOS Stream 10 - s2i-base-containerCentOS-Stream-10x86_64✅ passed07.01.2026 14:16:1612min 21stest pipeline
CentOS Stream 10 - nginx-containerCentOS-Stream-10x86_64✅ passed07.01.2026 14:13:5812min 33stest pipeline
CentOS Stream 10 - postgresql-containerCentOS-Stream-10x86_64✅ passed07.01.2026 14:12:1715min 29stest pipeline
RHEL10 - nginx-containerRHEL-10-Nightlyx86_64✅ passed07.01.2026 14:30:4016min 30stest pipeline
CentOS Stream 9 - nginx-containerCentOS-Stream-9x86_64✅ passed07.01.2026 14:12:2317min 20stest pipeline
RHEL10 - postgresql-containerRHEL-10-Nightlyx86_64✅ passed07.01.2026 14:28:2719min 22stest pipeline
RHEL10 - s2i-base-containerRHEL-10-Nightlyx86_64✅ passed07.01.2026 14:30:5419min 14stest pipeline
RHEL8 - nginx-containerRHEL-8.10.0-Nightlyx86_64✅ passed07.01.2026 14:14:0821min 55stest pipeline
CentOS Stream 10 - s2i-perl-containerCentOS-Stream-10x86_64✅ passed07.01.2026 14:16:0221min 16stest pipeline
CentOS Stream 9 - s2i-perl-containerCentOS-Stream-9x86_64✅ passed07.01.2026 16:15:1622min 56stest pipeline
RHEL10 - s2i-python-containerRHEL-10-Nightlyx86_64✅ passed07.01.2026 14:28:4027min 21stest pipeline
CentOS Stream 9 - postgresql-containerCentOS-Stream-9x86_64✅ passed07.01.2026 14:12:1825min 30stest pipeline
RHEL8 - s2i-perl-containerRHEL-8.10.0-Nightlyx86_64✅ passed07.01.2026 08:49:2627min 8stest pipeline
Fedora - s2i-base-containerFedora-latestx86_64✅ passed07.01.2026 14:36:2811min 5stest pipeline
CentOS Stream 9 - s2i-base-containerCentOS-Stream-9x86_64✅ passed07.01.2026 14:16:2714min 2stest pipeline
RHEL9 - s2i-perl-containerRHEL-9.6.0-Nightlyx86_64✅ passed07.01.2026 14:12:1631min 44stest pipeline
Fedora - s2i-python-containerFedora-latestx86_64✅ passed07.01.2026 14:12:1735min 57stest pipeline
RHEL9 - postgresql-containerRHEL-9.6.0-Nightlyx86_64✅ passed07.01.2026 14:12:1636min 36stest pipeline
RHEL9 - nginx-containerRHEL-9.6.0-Nightlyx86_64✅ passed07.01.2026 14:12:1829min 60stest pipeline
RHEL10 - s2i-perl-containerRHEL-10-Nightlyx86_64✅ passed07.01.2026 14:33:3727min 33stest pipeline
RHEL8 - s2i-base-containerRHEL-8.10.0-Nightlyx86_64✅ passed07.01.2026 14:13:1119min 16stest pipeline
RHEL9 - s2i-base-containerRHEL-9.6.0-Nightlyx86_64✅ passed07.01.2026 14:12:1624min 18stest pipeline
Fedora - postgresql-containerFedora-latestx86_64✅ passed07.01.2026 14:12:1617min 42stest pipeline
RHEL8 - postgresql-containerRHEL-8.10.0-Nightlyx86_64✅ passed07.01.2026 14:12:1840min 10stest pipeline
CentOS Stream 10 - s2i-python-containerCentOS-Stream-10x86_64✅ passed07.01.2026 14:30:5257min 55stest pipeline
Fedora - s2i-perl-containerFedora-latestx86_64✅ passed07.01.2026 14:12:1737min 37stest pipeline
CentOS Stream 9 - s2i-python-containerCentOS-Stream-9x86_64✅ passed07.01.2026 16:15:151h 25min 44stest pipeline
RHEL9 - s2i-python-containerRHEL-9.6.0-Nightlyx86_64✅ passed07.01.2026 14:12:171h 21min 54stest pipeline
RHEL8 - s2i-python-containerRHEL-8.10.0-Nightlyx86_64✅ passed07.01.2026 14:30:421h 35min 25stest pipeline

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
@phracek
Copy link
Member Author

phracek commented Jan 7, 2026

Let's test it once again after adding some more descriptive comments.

@phracek
Copy link
Member Author

phracek commented Jan 7, 2026

[test]

Copy link
Contributor

@pkhartsk pkhartsk left a 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

@pkhartsk pkhartsk merged commit eaf2778 into sclorg:master Jan 8, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants