Skip to content

Revert "Merge pull request #141192 from helsinki-systems/feat/improve… - #147609

Merged
nrdxp merged 1 commit into
NixOS:masterfrom
primeos:revert-restarting-systemd-socket-units
Nov 27, 2021
Merged

nrdxp merged 1 commit into
NixOS:masterfrom
primeos:revert-restarting-systemd-socket-units

Conversation

@primeos

@primeos primeos commented Nov 27, 2021 •

Copy link
Copy Markdown
Member

…d-socket-handling2"

This reverts commit 57961d2, reversing
changes made to b04f913.
(I.e. this reverts PR #141192.)

While well-intended, this change does unfortunately introduce very
serious regressions that are especially disruptive/noticeable on desktop
systems (e.g. users of Sway will loose their graphical session when
running "nixos-rebuild switch").

Therefore, this change has to be reverted ASAP instead of trying to fix
it in "production".
Note: An updated version should be extensively discussed, reviewed, and
tested before re-landing this change as an earlier version also had to
be reverted for the exact same issues 0.

Fix: #146727

Motivation for this change
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

…proved-socket-handling2"

This reverts commit 57961d2, reversing
changes made to b04f913.
(I.e. this reverts PR NixOS#141192.)

While well-intended, this change does unfortunately introduce very
serious regressions that are especially disruptive/noticeable on desktop
systems (e.g. users of Sway will loose their graphical session when
running "nixos-rebuild switch").

Therefore, this change has to be reverted ASAP instead of trying to fix
it in "production".
Note: An updated version should be extensively discussed, reviewed, and
tested before re-landing this change as an earlier version also had to
be reverted for the exact same issues [0].

Fix: NixOS#146727

[0]: NixOS#73871 (comment)
@primeos primeos added 0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 1.severity: blocker This is preventing another PR or issue from being completed 0.kind: regression Something that worked before working no longer labels Nov 27, 2021
@primeos
primeos requested a review from dasJ as a code owner November 27, 2021 16:33
@github-actions github-actions Bot added 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 27, 2021
@primeos

primeos commented Nov 27, 2021

Copy link
Copy Markdown
Member Author

I tested this by switching back and forth between Nixpkgs revisions. rev1 -> rev2 "crashes" Sway while rev1 -> rev2 + this commit/revert doesn't "crash" Sway. nix-build -A nixosTests.switchTest also still succeeds.

@ofborg test switchTest

@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 27, 2021
@pennae

pennae commented Nov 27, 2021

Copy link
Copy Markdown
Contributor

probably also worth backporting to 21.11?

@primeos primeos added this to the 21.11 milestone Nov 27, 2021
@primeos primeos added the 9.needs: port to stable A PR needs a backport to the stable release. label Nov 27, 2021
@Artturin
Artturin requested a review from Mic92 November 27, 2021 17:08

@nrdxp nrdxp left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Crashing DE/WM is a pretty serious regression, so I see no choice but to go ahead and merge for now. @dasJ, I appreciate the intention here, and hopefully you can get this fixed up soon. For now I'll merge and backport.

@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR #147620 for release-21.11.

@github-actions

Copy link
Copy Markdown
Contributor

The process '/usr/bin/git' failed with exit code 1

@dasJ

dasJ commented Nov 27, 2021

Copy link
Copy Markdown
Member

Oh boy gotta love me some fixing work 🎉

@Ma27

Ma27 commented Nov 29, 2021

Copy link
Copy Markdown
Member

FYI while updating the branch from #140669 I also found another issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: bug Something is broken 0.kind: regression Something that worked before working no longer 1.severity: blocker This is preventing another PR or issue from being completed 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 9.needs: port to stable A PR needs a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nixos-rebuild switch crashes/quits DE/WM

5 participants