Skip to content

Add support for sending failed logs to logdetective #397

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 4 commits into
base: master
Choose a base branch
from

Conversation

phracek
Copy link
Member

@phracek phracek commented Jun 16, 2025

Add support for sending failed logs to logdetective

New function called 'analyze_logs_by_logdetective()' is used as for 'build' part as for 'test' part.

Each function is marked by 'LOGDETECTIVE {BUILD|TEST} tag so we can easily find them.

Also parsing logs have been enhanced no parse_output is needed. Let's call it directly.
It is used on Fedora. We use podman for building
and there is no needed to use complicated functions.

Copy link

github-actions bot commented Jun 16, 2025

Pull Request validation

Failed

🔴 Failed or pending statuses:

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

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

@phracek phracek force-pushed the enable_logdetective branch from 55d624e to a8e79f3 Compare June 16, 2025 14:22
@phracek phracek force-pushed the enable_logdetective branch from a8e79f3 to 7d05253 Compare June 16, 2025 14:23
@phracek phracek force-pushed the enable_logdetective branch 2 times, most recently from 00e5e7a to d49c91e Compare June 23, 2025 13:28
New function called 'analyze_logs_by_logdetective()' is
used as for 'build' part as for 'test' part.

Each function is marked by 'LOGDETECTIVE {BUILD|TEST} tag
so we can easily find them.

Also parsing logs have been enhanced no parse_output is needed.
Let's call it directly.
It is used on Fedora. We use podman for building
and there is no needed to use complicated functions.

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek phracek force-pushed the enable_logdetective branch from 3e4f2ed to d5d33ce Compare June 23, 2025 14:55
@phracek

This comment was marked as outdated.

Copy link

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
RHEL8 - nginx-containerRHEL-8.10.0-Nightlyx86_64❌ error23.06.2025 14:56:3626min 20stest pipeline

Copy link

github-actions bot commented Jun 23, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
RHEL10 - s2i-base-containerRHEL-10-Nightlyx86_64✅ passed03.07.2025 14:11:3418min 9stest pipeline
RHEL8 - postgresql-containerRHEL-8.10.0-Nightlyx86_64✅ passed03.07.2025 13:47:3143min 53stest pipeline
RHEL10 - s2i-perl-containerRHEL-10-Nightlyx86_64✅ passed03.07.2025 13:47:3127min 18stest pipeline
RHEL10 - s2i-python-containerRHEL-10-Nightlyx86_64✅ passed03.07.2025 13:47:4327min 24stest pipeline
RHEL10 - nginx-containerRHEL-10-Nightlyx86_64✅ passed03.07.2025 14:18:0019min 25stest pipeline
RHEL8 - s2i-python-containerRHEL-8.10.0-Nightlyx86_64❌ error03.07.2025 13:47:281h 22min 9stest pipeline
RHEL9 - postgresql-containerRHEL-9.4.0-Nightlyx86_64✅ passed03.07.2025 13:47:2937min 24stest pipeline
RHEL9 - nginx-containerRHEL-9.4.0-Nightlyx86_64✅ passed03.07.2025 13:47:3129min 44stest pipeline
CentOS Stream 9 - s2i-perl-containerCentOS-Stream-9x86_64✅ passed03.07.2025 14:10:2836min 51stest pipeline
Fedora - postgresql-containerFedora-latestx86_64✅ passed03.07.2025 13:47:3159min 26stest pipeline
CentOS Stream 9 - postgresql-containerCentOS-Stream-9x86_64✅ passed03.07.2025 14:32:2321min 59stest pipeline
Fedora - nginx-containerFedora-latestx86_64✅ passed03.07.2025 13:47:2849min 4stest pipeline
Fedora - s2i-perl-containerFedora-latestx86_64✅ passed03.07.2025 13:47:321h 16min 1stest pipeline
Fedora - s2i-python-containerFedora-latestx86_64✅ passed03.07.2025 13:47:311h 31min 50stest pipeline
CentOS Stream 10 - s2i-perl-containerCentOS-Stream-10x86_64✅ passed03.07.2025 14:25:5225min 46stest pipeline
CentOS Stream 9 - nginx-containerCentOS-Stream-9x86_64✅ passed03.07.2025 13:47:3244min 58stest pipeline
CentOS Stream 10 - postgresql-containerCentOS-Stream-10x86_64✅ passed03.07.2025 13:47:3642min 51stest pipeline
Fedora - s2i-base-containerFedora-latestx86_64✅ passed03.07.2025 14:15:4520min 19stest pipeline
CentOS Stream 10 - s2i-base-containerCentOS-Stream-10x86_64✅ passed03.07.2025 14:31:5711min 28stest pipeline
CentOS Stream 9 - s2i-base-containerCentOS-Stream-9x86_64✅ passed03.07.2025 13:47:3152min 13stest pipeline
CentOS Stream 9 - s2i-python-containerCentOS-Stream-9x86_64✅ passed03.07.2025 13:47:282h 4min 31stest pipeline
CentOS Stream 10 - s2i-python-containerCentOS-Stream-10x86_64✅ passed03.07.2025 13:47:311h 5min 7stest pipeline
RHEL8 - s2i-base-containerRHEL-8.10.0-Nightlyx86_64✅ passed24.06.2025 12:37:2420min 22stest pipeline
RHEL9 - s2i-base-containerRHEL-9.4.0-Nightlyx86_64✅ passed03.07.2025 14:29:5422min 48stest pipeline
RHEL10 - postgresql-containerRHEL-10-Nightlyx86_64✅ passed03.07.2025 13:47:3420min 20stest pipeline
RHEL9 - s2i-python-containerRHEL-9.4.0-Nightlyx86_64✅ passed03.07.2025 14:29:401h 14min 29stest pipeline
RHEL9 - s2i-perl-containerRHEL-9.4.0-Nightlyx86_64✅ passed03.07.2025 14:31:5429min 38stest pipeline
RHEL8 - s2i-perl-containerRHEL-8.10.0-Nightlyx86_64✅ passed03.07.2025 13:47:3341min 26stest pipeline
CentOS Stream 10 - nginx-containerCentOS-Stream-10x86_64✅ passed03.07.2025 13:49:1239min 60stest pipeline
RHEL8 - nginx-containerRHEL-8.10.0-Nightlyx86_64✅ passed03.07.2025 14:16:1524min 45stest pipeline

@phracek

This comment was marked as outdated.

@phracek phracek force-pushed the enable_logdetective branch from 39a69ff to 428c450 Compare June 24, 2025 11:40
@phracek
Copy link
Member Author

phracek commented Jun 24, 2025

[test]

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Jun 24, 2025

[test]

@phracek
Copy link
Member Author

phracek commented Jun 30, 2025

/auto-merge

and at the end store it to $TMT_TEST_DATA directory
so we see it in Testing Farm results

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek phracek force-pushed the enable_logdetective branch from 8572e51 to 195784a Compare July 3, 2025 13:47
@phracek
Copy link
Member Author

phracek commented Jul 3, 2025

After copyting logdetective output to $TMT_TEST_DATA dir let's test it again.

[test]

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.

1 participant