Page MenuHomePhabricator

[Nix] Reduce services noise when doing nix develop
ClosedPublic

Authored by jon on Aug 18 2022, 4:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 1, 12:24 AM
Unknown Object (File)
Wed, Jan 1, 12:24 AM
Unknown Object (File)
Wed, Jan 1, 12:24 AM
Unknown Object (File)
Wed, Jan 1, 12:20 AM
Unknown Object (File)
Fri, Dec 27, 6:30 AM
Unknown Object (File)
Tue, Dec 24, 12:39 PM
Unknown Object (File)
Tue, Dec 24, 11:46 AM
Unknown Object (File)
Nov 8 2024, 8:58 PM

Details

Reviewers
abosh
varun
ashoat
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMMe9a808cc752c: [Nix] Reduce services noise when doing nix develop
Summary

Avoid printing how to view logs and kill the service
when the services are already available.

In a similar spirit, only emit that it's waiting
for mariadb if it's actually waiting for mariadb.

This cuts down on every invocation of nix develop cluttering
the development workflow.

Depends on D4880

Test Plan
pkill mariadb
pkill redis

nix develop
# Should print everything

exit # leave nix shell

nix develop
# should print only print welcome message

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Aug 18 2022, 4:33 PM

This revision is okay, but the rest of the stack still needs to be addressed.

nix/mariadb-up-mac.nix
17 ↗(On Diff #15771)
20 ↗(On Diff #15771)
73–76 ↗(On Diff #15771)

Darn, we really have to do the if statement with a while loop inside with both having the same condition just because of the echo. I wish there was a way to make this look cleaner, but it's okay!

This revision is now accepted and ready to land.Aug 22 2022, 10:28 AM
This revision now requires review to proceed.Aug 23 2022, 9:33 AM

can't find the ticket or comment, but I do remember @ashoat mentioning somewhere that he might like this content to be emitted on each nix develop

This revision is now accepted and ready to land.Aug 23 2022, 11:59 AM