From 71f3ce254d3687756815bd3e46bb5f3ad11bef00 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Tue, 14 Jan 2025 18:06:48 -0800 Subject: [PATCH] Prebuild query service --- .github/workflows/_go-tests.yml | 8 ++++++++ Tiltfile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_go-tests.yml b/.github/workflows/_go-tests.yml index 7ddd9b8b3f6..a6aaaf9497a 100644 --- a/.github/workflows/_go-tests.yml +++ b/.github/workflows/_go-tests.yml @@ -43,6 +43,14 @@ jobs: - name: Setup uses: ./.github/actions/go - uses: crazy-max/ghaction-github-runtime@v3 + - name: Set up Depot CLI + uses: depot/setup-action@v1 + - name: (temp) build rust image + run: | + docker login registry.depot.dev -u x-token -p $DEPOT_TOKEN + depot build --load --file rust/worker/Dockerfile --target query_service . + env: + DEPOT_TOKEN: ${{ secrets.DEPOT_PROJECT_TOKEN }} - uses: ./.github/actions/tilt - run: bin/cluster-test.sh bash -c 'cd go && go test -timeout 30s -run ^TestNodeWatcher$ github.com/chroma-core/chroma/go/pkg/memberlist_manager' - name: Save service logs to artifact diff --git a/Tiltfile b/Tiltfile index 9e062314299..05347eff225 100644 --- a/Tiltfile +++ b/Tiltfile @@ -4,7 +4,7 @@ def format_buildx_command(dockerfile, context = None, target = None): build_str = 'docker buildx build -t $EXPECTED_REF --file {}'.format(dockerfile) if os.environ.get('CI'): - build_str += ' --cache-from=type=gha --cache-to=type=gha,mode=max --load' + build_str += ' --load' if target: build_str += ' --target {}'.format(target)