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

utils: add Coredumpd #64

Merged
merged 1 commit into from
Jul 2, 2024
Merged

utils: add Coredumpd #64

merged 1 commit into from
Jul 2, 2024

Conversation

pbrezina
Copy link
Contributor

Collects generated core files from /var/lib/systemd/coredump and if there
are any, optionally fail the test.

Collects generated core files from /var/lib/systemd/coredump and if there
are any, optionally fail the test.
@pbrezina
Copy link
Contributor Author

You will need VM to test this as coredumps produced from with in containers are still stored on the host. There is ongoing work to enable to store the coredump directly in the container, so we'll likely get that in the future as well.

systemd/systemd#29272
containers/podman#22958

original_outcome = report.outcome

# Fail the test if fail mode is selected
if report.outcome == "passed" and self.mode == "fail":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the reason to have if report.outcome == "passed" here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the test passed, we want to switch it to fail, otherwise don't touch the outcome. In theory, the outcome here may only be "passed" or "failed" so this check is redundant. But I added it for verbosity and future safety.

Copy link
Contributor

@justin-stephenson justin-stephenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack thank you Pavel.

Copy link

@danlavu danlavu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Thank you, Pavel.

@pbrezina pbrezina merged commit a6b1c48 into next-actions:master Jul 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants