Skip to content

Commit 86510e3

Browse files
committed
Merge branch 'main' into feat-compactor-panics
2 parents c7d91bb + cd61136 commit 86510e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1118
-623
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Export Tilt logs
2+
description: Exports logs and traces from services in Tilt to an artifact
3+
inputs:
4+
artifact-name:
5+
description: "The name of the artifact containing logs and traces from services in Tilt"
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Get logs of all services
11+
id: get-logs
12+
run: |
13+
bin/get-logs.sh ${{ inputs.artifact-name }}.zip
14+
shell: bash
15+
- name: Upload logs as artifact
16+
uses: actions/upload-artifact@v4
17+
with:
18+
name: ${{ inputs.artifact-name }}
19+
path: "${{ inputs.artifact-name }}.zip"

.github/actions/tilt/action.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ runs:
3131
kubectl -n chroma port-forward svc/query-service 50053:50051 &
3232
kubectl -n chroma port-forward svc/frontend-service 8000:8000 &
3333
kubectl -n chroma port-forward svc/minio 9000:9000 &
34+
kubectl -n chroma port-forward svc/jaeger 16686:16686 &

.github/workflows/_go-tests.yml

+5
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ jobs:
4444
uses: ./.github/actions/go
4545
- uses: ./.github/actions/tilt
4646
- run: bin/cluster-test.sh bash -c 'cd go && go test -timeout 30s -run ^TestNodeWatcher$ github.com/chroma-core/chroma/go/pkg/memberlist_manager'
47+
- name: Save service logs to artifact
48+
if: always()
49+
uses: ./.github/actions/export-tilt-logs
50+
with:
51+
artifact-name: "go-cluster-test"

.github/workflows/_python-tests.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,15 @@ jobs:
118118
shell: bash
119119
env:
120120
PROPERTY_TESTING_PRESET: ${{ inputs.property_testing_preset }}
121-
- name: Get logs of all services
122-
id: get-logs
123-
if: success() || failure()
124-
run: |
125-
bin/get-logs.sh "${{ matrix.test-globs }}" "${{ matrix.python }}"
126-
# Output the logs zip file path as a job output
127-
echo "artifact_name=cluster_logs_$(basename "${{ matrix.test-globs }}" .py)_${{ matrix.python }}" >> $GITHUB_OUTPUT
128-
echo "logs_zip_path=$(pwd)/$(basename "${{ matrix.test-globs }}" .py)_${{ matrix.python }}_logs.zip" >> $GITHUB_OUTPUT
129-
shell: bash
130-
- name: Upload logs as artifact
131-
if: success() || failure()
132-
uses: actions/upload-artifact@v4
121+
- name: Compute artifact name
122+
if: always()
123+
id: compute-artifact-name
124+
run: echo "artifact_name=cluster_logs_$(basename "${{ matrix.test-globs }}" .py)_${{ matrix.python }}" >> $GITHUB_OUTPUT
125+
- name: Save service logs to artifact
126+
if: always()
127+
uses: ./.github/actions/export-tilt-logs
133128
with:
134-
name: ${{ steps.get-logs.outputs.artifact_name }}
135-
path: ${{ steps.get-logs.outputs.logs_zip_path }}
129+
artifact-name: ${{ steps.compute-artifact-name.outputs.artifact_name }}
136130

137131
merge-cluster-logs:
138132
runs-on: ubuntu-latest

.github/workflows/_rust-tests.yml

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
uses: ./.github/actions/tilt
3737
- name: Run tests
3838
run: cargo nextest run --profile k8s_integration
39+
- name: Save service logs to artifact
40+
if: always()
41+
uses: ./.github/actions/export-tilt-logs
42+
with:
43+
artifact-name: "rust-integration-test"
44+
3945
test-benches:
4046
strategy:
4147
matrix:

.github/workflows/nightly-tests.yml

+4-14
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,11 @@ jobs:
2727
shell: bash
2828
env:
2929
PROPERTY_TESTING_PRESET: slow
30-
- name: Get logs of all services
31-
id: get-logs
32-
if: success() || failure()
33-
run: |
34-
bin/get-logs.sh "${{ matrix.test-globs }}" "3.12"
35-
# Output the logs zip file path as a job output
36-
echo "artifact_name=cluster_logs_$(basename "${{ matrix.test-globs }}" .py)_3.12" >> $GITHUB_OUTPUT
37-
echo "logs_zip_path=$(pwd)/$(basename "${{ matrix.test-globs }}" .py)_3.12_logs.zip" >> $GITHUB_OUTPUT
38-
shell: bash
39-
- name: Upload logs as artifact
40-
if: success() || failure()
41-
uses: actions/upload-artifact@v4
30+
- name: Save service logs to artifact
31+
if: always()
32+
uses: ./.github/actions/export-tilt-logs
4233
with:
43-
name: ${{ steps.get-logs.outputs.artifact_name }}
44-
path: ${{ steps.get-logs.outputs.logs_zip_path }}
34+
artifact-name: "tilt-logs"
4535
- name: Send PagerDuty alert on failure
4636
if: ${{ failure() }}
4737
uses: Entle/[email protected]

.github/workflows/release-chromadb.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ jobs:
279279
// - This workflow finishes for A and deploys A to Chroma Cloud
280280
// Chroma Cloud is now running A, but the last commit was B.
281281
"environment": "staging",
282-
"planes": "data"
282+
"planes": "data,control"
283283
}
284284
})
285285

.taplo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[formatting]
2+
column_width = 65535

0 commit comments

Comments
 (0)