-
Notifications
You must be signed in to change notification settings - Fork 338
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
[RFC] config reload mechanism #1350
base: master
Are you sure you want to change the base?
Conversation
@zappolowski it seems like the ci is having a problem with arch maybe it's https://bbs.archlinux.org/viewtopic.php?id=276422? |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1350 +/- ##
==========================================
- Coverage 66.08% 65.38% -0.71%
==========================================
Files 50 50
Lines 8247 8345 +98
Branches 958 1006 +48
==========================================
+ Hits 5450 5456 +6
- Misses 2797 2889 +92
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
mostly done. I'll do some more checks and maybe add a functional test |
Thanks for picking this up! I never got it to work properly when I tried it. But when the code is structured well, it should not be too hard to implement |
I made some updates. The only thing I am a bit unsure is the reapply of rules |
Basically I added a rule struct inside the notification that is allocated and filled when we try to apply a rule to change a value. Then when we reload we reapply that rule to "revert" the original state. @fwsmit does this solve the problem you said in the comments? |
arch ci is not working ... |
@zappolowski I made the changes you suggested. Did you try hot reloading and found any problem? I wanted to merge this soon |
I wanted to add a way to reload the config files. part of the code is taken from #968.
In respect to #968 I added the ability to pass a list of config files to use to the dbus method. If none are passed it will use the old config list.
I noticed that the cmdline parser ignores multiple
-conf
options (without any acknowledgment of the fact). So I changed the behavior to accept a list of files.Summary
ConfigReload
-conf
valuesdunstctl reload
and completions