fix: LDAP - Enable check-for-changes.sh support#4627
fix: LDAP - Enable check-for-changes.sh support#4627polarathene merged 4 commits intodocker-mailserver:masterfrom
check-for-changes.sh support#4627Conversation
8b89fab to
340f7f0
Compare
340f7f0 to
26a3272
Compare
polarathene
left a comment
There was a problem hiding this comment.
Minor changes:
- Revised changelog entry.
- Allow the LDAP account provisioner to also handle Rspamd config changes.
|
Thank you for the feedback! I implemented both suggested changes. |
|
LGTM! Thanks for taking time to make a contribution to DMS ❤️ |
|
It seems that an rspamd test has been broken. Unclear if that's the fault of this PR, we don't have extensive test coverage with LDAP so it would be with the file based provisioner 🤔
There is quite a few lines like: I've tried re-running the test but it failed again. Until it's confirmed that this is due to something other than this PR I don't think I can go ahead and merge 😓 Unfortunately we don't have an ability to pin the version of rspamd supplied from upstream (I requested it and offered to implement but they declined), it's possible that some upstream change pulled in also contributes to this failure, in which case any PR will trigger it. |
|
Since I am completely new to this codebase i just poked a bit around. The test rspamd_full waits for the service to be running and then immediately tries to trigger rspamd, which has not yet spawned it's workers. |
…e available before testing
|
There still seems to be an issue in rspamd_dkim which randomly fails while restarting rspamd with exit code 7 Randomly meaning that in every test run one or more of the tests fail, but it could be any of them. |
Could be, or could be a change in the CI environment being slower too. I used to run tests in cheap VPS instances that revealed other issues in the past that didn't show up with our CI on Github. If that were the case though our current release image (without a fresh build) should similarly fail, otherwise it'd need to be some recent change somewhere.
We have a generic port helper method to wait on, that might be sufficient. Or we could potentially monitor logs (rspamd logs are a separate log file due to verbosity). EDIT: Oh I see you already contributed that helper. I'm alright with that 👍
Yeah I've caught that one before too and have detailed it here: #4579 I just rarely having time spare for DMS lately beyond quick support tickets and reviews. The project could do with more contributors, we lack the momentum alternative mail solutions have in that regard so I'm not sure how relevant DMS will remain beyond it's main differentiator of a single container for simple deployment and configuration. |
polarathene
left a comment
There was a problem hiding this comment.
Sweet tests are now passing (DKIM is still racey as noted), thanks for also improving the rspamd tests! ❤️
I'm happy to merge the contribution now 🚀
check-for-changes.sh support
Description
Enables the change detector for account provisioner ldap. This is required to watch for changes in the SSL certificates and reload postfix when needed. Therefore the change detector needs to be aware whether he should also watch the file databases for changes.
Fixes #4528
Type of change
Checklist
docs/)CHANGELOG.md