Skip to content

Commit 1d0a456

Browse files
committed
cleanup
1 parent 848e6aa commit 1d0a456

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

.github/actions/docker/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ runs:
1818
using: "composite"
1919
steps:
2020
# https://github.com/docker/setup-qemu-action - for multiplatform builds
21-
# - name: Set up QEMU
22-
# uses: docker/setup-qemu-action@v2
23-
# - name: Set up Docker Buildx
24-
# uses: docker/setup-buildx-action@v3
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v2
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
2525
- name: Log in to the Github Container registry
2626
uses: docker/[email protected]
2727
if: ${{ inputs.ghcr-username != '' }}

.github/actions/tilt/action.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@ description: "This action starts Tilt services"
33
runs:
44
using: "composite"
55
steps:
6-
- name: Collect Workflow Telemetry
7-
uses: catchpoint/workflow-telemetry-action@v2
86
- name: Start minikube
97
uses: medyagh/setup-minikube@latest
108
with:
11-
driver: none
9+
driver: none # uses Docker engine on host instead of Docker-in-Docker
10+
# tilt ci can automatically build images while bringing up the cluster. However, this results in flaky runs for our usage so we split up image building and pod deployment into separate steps. See https://github.com/chroma-core/chroma/pull/4720.
1211
- name: Install Tilt, bake images, pre-pull external images
1312
shell: bash
1413
env:
1514
TILT_VERSION: "0.34.2"
1615
run: |
17-
parallel --line-buffer --keep-order ::: \
16+
parallel --tag --linebuffer ::: \
1817
"bash -c 'curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v${TILT_VERSION}/tilt.${TILT_VERSION}.linux.x86_64.tar.gz | tar -xzv -C /usr/local/bin tilt'" \
19-
"docker buildx bake -f docker-bake.hcl --load" \
18+
"docker buildx bake -f .github/actions/tilt/docker-bake.hcl --load" \
2019
"bash .github/actions/tilt/pull_external_images.sh"
2120
- name: Start Tilt
2221
shell: bash
File renamed without changes.

.github/actions/tilt/pull_external_images.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# This is a simple script to gather all external images referenced in Kubernetes manifests and then pull them in parallel.
4+
15
set -euo pipefail
26

37
k8s_dir="k8s"
@@ -8,12 +12,15 @@ mapfile -t images < <(
812
grep -v '{{' |
913
sed -E 's/.*image:[[:space:]]*//' |
1014
tr -d '"' |
11-
grep -vi 'chroma-postgres' | # EXCLUDE chroma-postgres
12-
grep -vi 'load-service' | # EXCLUDE chroma-postgres
15+
# chroma-postgres appears to be an external image ref, but it's a custom image.
16+
# It's just the base postgres image with a single file copied in (k8s/test/postgres/Dockerfile) so it's ok to build during `tilt ci`.
17+
grep -vi 'chroma-postgres' |
18+
# The load service appears in k8s/test and is not Helm-templated, so we must exclude it here.
19+
grep -vi 'load-service' |
1320
sort -u
1421
)
1522

16-
(( ${#images[@]} )) || { echo "No literal images found nothing to pull."; exit 0; }
23+
(( ${#images[@]} )) || { echo "No literal images found, nothing to pull."; exit 0; }
1724

1825
# Build a temporary docker-compose file
1926
tmpfile=$(mktemp)

.github/workflows/_go-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
with:
2121
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
2222
dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}
23-
- uses: ./.github/actions/tilt
23+
- name: Start Tilt services
24+
uses: ./.github/actions/tilt
2425
- run: bin/cluster-test.sh bash -c 'cd go && make test'
2526
- name: Save service logs to artifact
2627
if: always()

.github/workflows/_python-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ jobs:
154154
with:
155155
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
156156
dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}
157-
- uses: ./.github/actions/tilt
157+
- name: Start Tilt services
158+
uses: ./.github/actions/tilt
158159
- name: Test
159160
run: bin/cluster-test.sh bash -c 'python -m pytest "${{ matrix.test-globs }}" --durations 10'
160161
shell: bash

.github/workflows/pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ jobs:
166166
secrets: inherit
167167
with:
168168
property_testing_preset: 'normal'
169-
python_versions: '["3.9", "3.10", "3.11", "3.12"]'
170169

171170
python-vulnerability-scan:
172171
name: Python vulnerability scan
@@ -189,8 +188,8 @@ jobs:
189188

190189
go-tests:
191190
name: Go tests
192-
# needs: change-detection
193-
# if: contains(fromJson(needs.change-detection.outputs.tests-to-run), 'go')
191+
needs: change-detection
192+
if: contains(fromJson(needs.change-detection.outputs.tests-to-run), 'go')
194193
uses: ./.github/workflows/_go-tests.yml
195194
secrets: inherit
196195

Tiltfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
update_settings(max_parallel_updates=6)
22

3+
# *:ci images are defined in .github/actions/tilt/docker-bake.hcl and used for .github/actions/tilt/action.yaml.
4+
35
if config.tilt_subcommand == "ci":
46
custom_build(
57
'chroma-postgres',

rust/types/src/collection.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,6 @@ impl TryFrom<chroma_proto::Collection> for Collection {
244244
}
245245
}
246246

247-
// todo test rebuild AC7B900F-8EF4-4035-9B09-80DD3D4D8E35
248-
// 4EEDDBBB-B8E4-4468-BDFD-B1E6A6EBFEF2
249-
// 86337F43-A95B-4AF4-B68B-03BD35648AEC
250-
// 59FD8E66-962A-4AAC-8758-43441A0D8575
251-
// C22A3DB9-4A83-409D-9A6A-BD54466FC536
252-
// 01AEFDF3-F405-4A86-BF65-148EE050A2F8
253-
// 71A45988-1989-464D-9780-ADEBF28402A3
254-
// DCADEFBC-B601-425F-B115-C353F8EFCDA8
255-
256247
#[derive(Error, Debug)]
257248
pub enum CollectionToProtoError {
258249
#[error("Could not serialize config: {0}")]

0 commit comments

Comments
 (0)