Skip to content

self-test: poll for daemon socket before running#153

Merged
Mic92 merged 1 commit intomainfrom
macos-warning
Mar 4, 2026
Merged

self-test: poll for daemon socket before running#153
Mic92 merged 1 commit intomainfrom
macos-warning

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Mar 3, 2026

On macOS, launchctl kickstart returns before the nix-daemon process has created its Unix socket at /nix/var/nix/daemon-socket/socket. The self-test then immediately tries 'nix build' which fails with 'cannot connect to socket'.

Only poll when we actually expect a daemon to be running: check the planner settings for --init none and --no-start-daemon to avoid a 10s timeout penalty in daemon-less installs.

Fixes: #147 (comment)

Description
Checklist
  • Added or updated relevant tests (leave unchecked if not applicable)
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • Linked to related issues (leave unchecked if not applicable)

On macOS, launchctl kickstart returns before the nix-daemon process
has created its Unix socket at /nix/var/nix/daemon-socket/socket.
The self-test then immediately tries 'nix build' which fails with
'cannot connect to socket'.

Only poll when we actually expect a daemon to be running: check the
planner settings for --init none and --no-start-daemon to avoid a
10s timeout penalty in daemon-less installs.

Fixes: #147 (comment)
@Mic92 Mic92 enabled auto-merge March 4, 2026 07:07
@Mic92 Mic92 added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit 9d7731e Mar 4, 2026
20 checks passed
@Mic92 Mic92 deleted the macos-warning branch March 4, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[macOS][x86_64] WARN Skipping SystemUIServer checks: failed to load profile data

1 participant