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

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Speed up pam_ecryptfs testinfra check #7428

merged 1 commit into from
Jan 31, 2025

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
@cfm cfm mentioned this pull request Jan 31, 2025
36 tasks
Copy link
Member

@cfm cfm left a comment

Choose a reason for hiding this comment

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

Tested in #7406 (comment) and passes CI modulo #7433. Thanks, @legoktm.

@cfm cfm added this pull request to the merge queue Jan 31, 2025
Merged via the queue into develop with commit 7680afe Jan 31, 2025
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants