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

Speed up pam_ecryptfs testinfra check #7428

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Jan 27, 2025

Status

Ready for review

Description of Changes

After a noble migration, transmitting syslog back to the host so it can be searched can be pretty slow, so let's do it on the host. By using grep, we can escape the message we're looking for in a way that ensures our search doesn't match the error we're looking for.

Since there's already a . in the message, use re.escape(), which turns it into \., which obfuscates our grep.

Testing

How should the reviewer test this PR?

  • staging CI passes (or this test doesn't fail)
  • visual review

Deployment

Any special considerations for deployment? n/a

Checklist

After a noble migration, transmitting syslog back to the host so it can
be searched can be pretty slow, so let's do it on the host. By using
grep, we can escape the message we're looking for in a way that ensures
our search doesn't match the error we're looking for.

Since there's already a `.` in the message, use re.escape(), which turns
it into `\.`, which obfuscates our grep.
@legoktm legoktm requested a review from a team as a code owner January 27, 2025 22:26
@legoktm
Copy link
Member Author

legoktm commented Jan 27, 2025

Running into the same issue with test_aa_no_denies_in_syslog; might patch that one tomorrow too.

@cfm cfm self-assigned this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready For Review
Development

Successfully merging this pull request may close these issues.

2 participants