Skip to content

[TST] Debug flaky property tests #3784

[TST] Debug flaky property tests

[TST] Debug flaky property tests #3784

Workflow file for this run

name: PR checks
on:
pull_request:
branches:
- main
- '**'
jobs:
# debug:
# strategy:
# matrix:
# python: ['3.12']
# platform: [ubuntu-latest]
# runs-on: ${{ matrix.platform }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup
# uses: ./.github/actions/rust
# - name: Install Tilt
# shell: bash
# run: |
# TILT_VERSION="0.33.3"
# 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
# - name: Install ctlptlc
# shell: bash
# run: |
# CTLPTL_VERSION="0.8.20"
# curl -fsSL https://github.com/tilt-dev/ctlptl/releases/download/v$CTLPTL_VERSION/ctlptl.$CTLPTL_VERSION.linux.x86_64.tar.gz | \
# tar -xzv -C /usr/local/bin ctlptl
# - name: Set up kind
# shell: bash
# run: ctlptl create cluster kind --registry=ctlptl-registry
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# env:
# PROPERTY_TESTING_PRESET: normal
# - name: Archive logs
# uses: actions/upload-artifact@v4
# with:
# name: test_logs
# path: ~/work/chroma/chroma/**/*.log
test-embeddings:
strategy:
fail-fast: false
matrix:
attempt_x: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k']
attempt_y: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+']
runs-on: depot-ubuntu-22.04-16
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/python
with:
python-version: 3.12
- uses: ./.github/actions/tilt
- name: Test
run: bin/cluster-test.sh bash -c 'python -m pytest "chromadb/test/property"'
shell: bash
env:
PROPERTY_TESTING_PRESET: normal
- name: Get logs of all services
id: get-logs
if: failure()
run: bin/get-logs.sh
shell: bash
- name: Upload logs as artifact
if: failure()
uses: actions/upload-artifact@v4
with:
name: test_embeddings_log_${{ matrix.attempt_x }}_${{ matrix.attempt_y }}
path: ~/work/chroma/chroma/**/*.log