-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bin nix review: separate the review parts
Signed-off-by: lucasew <lucas59356@gmail.com>
- Loading branch information
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
PR="$1"; shift | ||
|
||
export JOB_LABEL="review #$PR $*" | ||
|
||
# -L "$JOB_LABEL" \ | ||
ssh whiterun \ | ||
ts \ | ||
-m \ | ||
systemd-run --user --working-directory ~/nixpkgs -P --collect -p KillSignal=SIGINT -p TimeoutStopSec=infinity \ | ||
sdw nix review --really pr "$PR" \ | ||
--no-shell \ | ||
--post-result \ | ||
--build-graph nix \ | ||
--eval local \ | ||
"$@" | ||
-L "$JOB_LABEL" \ | ||
sd nix sdreview "$PR" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
PR="$1"; shift | ||
|
||
systemd-run \ | ||
--user \ | ||
--working-directory ~/nixpkgs \ | ||
-P \ | ||
--unit "nixpkgs-review-$PR" \ | ||
--collect \ | ||
-p KillSignal=SIGINT \ | ||
-p TimeoutStopSec=infinity \ | ||
\ | ||
sdw nix review --really \ | ||
\ | ||
pr "$PR" \ | ||
--no-shell \ | ||
--post-result \ | ||
--build-graph nix \ | ||
--eval local \ | ||
"$PR" "$@" |