Skip to content
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

Flush automatus test logs before outputting results #11605

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

comps
Copy link
Collaborator

@comps comps commented Feb 19, 2024

Description:

This ensures that logs contain all the test stdout/stderr outputs at the moment of automatus.py announcing their results on its output.

The flushing is done here and not deeper, because it seems unnecessary to flush after every 'retry' attempt, only when the test is done running and its result is about to be announced by automatus.py.

Rationale:

This is useful for an external automatus.py wrapper, which parses its output in real-time, while also processing the logs in real-time. Without this change, the wrapper will get empty logs in some cases.

This ensures that logs contain all the test stdout/stderr outputs
at the moment of automatus.py announcing their results on its output.

This is useful for an external automatus.py wrapper, which parses
its output in real-time, while also processing the logs in real-time.

The flushing is done here and not deeper, because it seems unnecessary
to flush after every 'retry' attempt, only when the test is done
running and its result is about to be announced by automatus.py.

Signed-off-by: Jiri Jaburek <comps@nomail.dom>
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

codeclimate bot commented Feb 19, 2024

Code Climate has analyzed commit 6c3102e and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 58.3% (0.0% change).

View more on Code Climate.

@jan-cerny jan-cerny self-assigned this Feb 19, 2024
@jan-cerny jan-cerny added this to the 0.1.73 milestone Feb 19, 2024
@jan-cerny jan-cerny added the Test Suite Update in Test Suite. label Feb 19, 2024
@jan-cerny jan-cerny merged commit db56fb2 into ComplianceAsCode:master Feb 19, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Suite Update in Test Suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants