Page MenuHomePhabricator

[Nix] Only prompt Powerline when an interactive shell
ClosedPublic

Authored by jon on Aug 22 2022, 4:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 8:57 PM
Unknown Object (File)
Fri, Nov 8, 8:57 PM
Unknown Object (File)
Fri, Nov 8, 8:57 PM
Unknown Object (File)
Fri, Nov 8, 8:56 PM
Unknown Object (File)
Tue, Nov 5, 2:06 AM
Unknown Object (File)
Sun, Nov 3, 7:16 PM
Unknown Object (File)
Thu, Oct 31, 5:35 AM
Unknown Object (File)
Thu, Oct 31, 2:00 AM
Subscribers

Details

Reviewers
atul
abosh
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMMd0abaae7b16d: [Nix] Only prompt Powerline when an interactive shell
Summary

Buildkite CI was polling indefinitely when running nix develop.

Only ask for powerline prompt if it's an interactive shell.

https://linear.app/comm/issue/ENG-1684

Test Plan
# Reset powerline preference
rm ~/Library/Caches/app.comm/enable-powerline

nix develop
# Should get prompted for Powerline

For buildkite, the below run should pass
https://buildkite.com/comm/blob-nix/builds/50#0182c7f4-63c8-407c-a17a-3852aa3ae46b

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Aug 22 2022, 4:58 PM

Nice, looks like the Buildkite CI passes as well.

nix/start-powerline.sh
6 ↗(On Diff #15841)
7 ↗(On Diff #15841)

I think this looks cleaner haha because it matches the rest of the line and we use it in other spots in the codebase.

This revision is now accepted and ready to land.Aug 22 2022, 6:29 PM