| 21 Sep 2022 |
| roshan | byteio.in 🌷 joined the room. | 10:06:04 |
| 22 Sep 2022 |
@yuka:yuka.dev | Yay for colmenaEval and makeHive, this is exactly what I wanted | 09:50:38 |
@yuka:yuka.dev | I have another request: In flake-enabled deployments, can we pass the nixpkgs flake so that the hive expression can use nixpkgs.lib.nixosSystem and get the proper system.nixos.(revision|versionSuffix)? | 09:51:51 |
@yuka:yuka.dev | * Yay for colmenaHive and makeHive, this is exactly what I wanted | 10:08:39 |
| Tommy joined the room. | 12:48:28 |
| 25 Sep 2022 |
@rendakuenthusiast:imperishable.name | hm, I ran into a weird issue | 05:38:42 |
@rendakuenthusiast:imperishable.name | I was having a problem building redis | 05:38:51 |
@rendakuenthusiast:imperishable.name | specifically I got this exception:
couldn't execute "pgrep": no such file or directory
while executing
"open "|pgrep -P $pid" "r""
(procedure "get_child_pid" line 4)
invoked from within
"get_child_pid 0"
("uplevel" body line 16)
invoked from within
"uplevel 1 $code"
(procedure "test" line 51)
invoked from within
"test {Don't rehash if redis has child process} {
r config set save ""
r config set rdb-key-save-delay 1000000
populate 4096 "..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {tags {"other external:skip"}} {
test {Don't rehash if redis has child process} {
r config set save ""
r config set r..."
(file "tests/unit/other.tcl" line 334)
invoked from within
"source $path"
(procedure "execute_test_file" line 4)
invoked from within
"execute_test_file $data"
(procedure "test_client_main" line 10)
invoked from within
| 05:39:30 |
@rendakuenthusiast:imperishable.name | which I believe was coming from this test in redis' source: https://github.com/redis/redis/blob/b414605285244c453f3fadbbe7a157cd83ed5f59/tests/unit/other.tcl#L334 | 05:39:41 |
@rendakuenthusiast:imperishable.name | which calls this code: https://github.com/redis/redis/blob/13d25dd95eec5e21925ef474b5d43f2acb23e54e/tests/support/util.tcl#L616 | 05:39:56 |
@rendakuenthusiast:imperishable.name | which does:
if {[file exists "/usr/bin/pgrep"]} {
set fd [open "|pgrep -P $pid" "r"]
set child_pid [string trim [lindex [split [read $fd] \n] 0]]
} else {
set fd [open "|ps --ppid $pid -o pid" "r"]
set child_pid [string trim [lindex [split [read $fd] \n] 1]]
}
| 05:40:12 |
@rendakuenthusiast:imperishable.name | and when colmena tries to deploy from my laptop, I have /usr/bin/pgrep installed at that path in my normal OS | 05:40:37 |
@rendakuenthusiast:imperishable.name | I was able to work around this by renaming /usr/bin/pgrep on my system and then building locally | 05:40:56 |
@rendakuenthusiast:imperishable.name | I'm not sure what the principled way to solve this is | 05:41:05 |