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

nixos/rspamd: Remove non-working socket activation #47449

Merged
merged 1 commit into from Sep 28, 2018

Conversation

griff
Copy link
Contributor

@griff griff commented Sep 28, 2018

Motivation for this change

The socket activation I added to the rspamd module doesn't actually work
and can't be made to work without changes to rspamd.

See: #47421
See: rspamd/rspamd#2035

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

SocketMode = mkIf (isUnixSocket each.value.socket) each.value.mode;
};
};
}) allMappedSockets));
};
imports = [
(mkRenamedOptionModule [ "services" "rspamd" "bindSocket" ] [ "services" "rspamd" "workers" "normal" "bindSockets" ])
Copy link
Member

Choose a reason for hiding this comment

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

Please also add it as mkRemovedOptionModule here.

@griff griff force-pushed the remove-rspamd-socket-activation branch from c7eaf25 to 1de5c28 Compare September 28, 2018 12:57
@griff
Copy link
Contributor Author

griff commented Sep 28, 2018

@Mic92 it was bit late when I made this so I forgot the mkRemovedOptionModule until I woke this morning.

Should be fixed now.

@Mic92 Mic92 added the 9.needs: port to stable A PR needs a backport to the stable release. label Sep 28, 2018
@Mic92 Mic92 added this to the 18.09 milestone Sep 28, 2018
@xeji
Copy link
Contributor

xeji commented Sep 28, 2018

nixos/tests/rspamd.nix: The socketActivated test is still there and needs to be removed as well.

The socket activation I added to the rspamd module doesn't actually work
and can't be made to work without changes to rspamd.

See: NixOS#47421
See: rspamd/rspamd#2035
@griff griff force-pushed the remove-rspamd-socket-activation branch from 1de5c28 to 783a58f Compare September 28, 2018 17:44
@griff
Copy link
Contributor Author

griff commented Sep 28, 2018

@xeji I clearly shouldn't make PRs late at night. The test is now removed.

@xeji
Copy link
Contributor

xeji commented Sep 28, 2018

Great. Let me run the remaining tests locally before merging.

@xeji
Copy link
Contributor

xeji commented Sep 28, 2018

Tests run fine here.

@xeji xeji merged commit f7c434b into NixOS:master Sep 28, 2018
@xeji
Copy link
Contributor

xeji commented Sep 28, 2018

backported to 18.09 in 3108f74

@griff griff deleted the remove-rspamd-socket-activation branch September 28, 2018 19:24
@samueldr samueldr removed the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants