-
Notifications
You must be signed in to change notification settings - Fork 181
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
spec: used macro for profiles path and other fixes #665
spec: used macro for profiles path and other fixes #665
Conversation
yarda
commented
Jul 26, 2024
- improved conditionals for better readability
- fixed tuned-ppd not to run install twice
- used macro for profiles path
2652a28
to
05bf7bb
Compare
The changes look fine to me and the RPM build/installation works well. The failed CI tests do not seem related to the changes, though I'm not sure what's causing them. Approving. |
/packit build |
05bf7bb
to
5995ef7
Compare
Rebased and hopefully fixed not to break the CI now :) |
196635e
to
efd84e4
Compare
It was a bit more tricky than I initially thought :). It seems I will also have to fix tests. |
efd84e4
to
5580fbc
Compare
It also requires: beakerlib/tuned#10 |
788be03
to
30c6f94
Compare
@zacikpa please re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good, I only have a couple of comments.
rlServiceStop "tuned" | ||
sleep 1 | ||
rlFileBackup "/var/log/tuned/tuned.log" | ||
rlRun "rm -rf /var/log/tuned/tuned.log" | ||
rlFileBackup "/var/log/tuned/tuned.log" | ||
rlRun "rm -rf /var/log/tuned/tuned.log" | ||
rlServiceStart "tuned" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why separate the service stop? I'd back up the logs first and then run rlServiceStart (which restarts TuneD if it's already running).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's taken from the RHEL dist-git upstream Beaker test. I wanted to sync to their version. IMHO it's trying to avoid possible race if the daemon is simultaneously logging while the file is removed/backed-up. Without it IMHO the worst case that could happen is that for multiline logs there could be some lines missing in the log (IMHO it uses line buffering). But the calls in the test could be reordered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's keep the tests in sync.
- improved conditionals for better readability - fixed tuned-ppd not to run install twice - used macro for profiles path - consolidated names of related variables - updated Makefile to update the current profile paths during installation - fixed tests to use correct profile directory on RHEL/CentOS - consolidated whitespaces and variable names in fixed tests Signed-off-by: Jaroslav Škarvada <[email protected]>
30c6f94
to
7a41949
Compare