refactor(tvix/boot/tests): use nar-bridge-rs

This switches the boot tests from the golang implementation to the rust
one.

Change-Id: Ide2a47aebe40c172077147c05bb6dacd74ba6b1e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11997
Tested-by: BuildkiteCI
Reviewed-by: Brian Olsen <me@griff.name>
This commit is contained in:
Florian Klink 2024-07-21 01:36:36 +02:00 committed by flokli
parent d136f2c881
commit fdc0cf0c94

View file

@ -45,7 +45,7 @@ let
depot.tvix.store depot.tvix.store
depot.tvix.boot.runVM depot.tvix.boot.runVM
] ++ lib.optionals (isClosure && useNarBridge) [ ] ++ lib.optionals (isClosure && useNarBridge) [
depot.tvix.nar-bridge-go depot.tvix.nar-bridge
pkgs.curl pkgs.curl
pkgs.parallel pkgs.parallel
pkgs.xz.bin pkgs.xz.bin
@ -85,10 +85,9 @@ let
tvix-store --otlp=false copy tvix-store --otlp=false copy
'' + lib.optionalString (isClosure && useNarBridge) '' '' + lib.optionalString (isClosure && useNarBridge) ''
echo "Starting nar-bridge" echo "Starting nar-bridge"
nar-bridge-http \ nar-bridge \
--otlp=false \ --otlp=false \
--store-addr=unix://$PWD/tvix-store.sock \ -l $PWD/nar-bridge.sock &
--listen-addr=$PWD/nar-bridge.sock &
# Wait for the socket to be created. # Wait for the socket to be created.
while [ ! -e $PWD/nar-bridge.sock ]; do sleep 1; done while [ ! -e $PWD/nar-bridge.sock ]; do sleep 1; done