chore(llmobs): response incomplete cassette #1334
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - run: pip install .[testing] | |
| - run: riot -v run -s check_fmt | |
| - run: riot -v run -s flake8 | |
| - run: riot -v run mypy | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.8", "3.12"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: install deps | |
| run: pip install .[testing] | |
| - run: | | |
| riot run -p --pass-env ${{ matrix.python-version}} test | |
| cassettes-size: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check VCR cassettes size | |
| run: | | |
| CASSETTES_SIZE=$(du -sb vcr-cassettes/ 2>/dev/null | cut -f1 || echo "0") | |
| MAX_SIZE=2097152 | |
| echo "VCR cassettes size: ${CASSETTES_SIZE} bytes ($((CASSETTES_SIZE / 1024 / 1024))MB)" | |
| echo "Maximum allowed size: ${MAX_SIZE} bytes (2MB)" | |
| if [ "$CASSETTES_SIZE" -gt "$MAX_SIZE" ]; then | |
| echo "❌ VCR cassettes directory is larger than 2MB!" | |
| echo "Current size: $((CASSETTES_SIZE / 1024 / 1024))MB" | |
| echo "Please review and clean up large cassette files." | |
| exit 1 | |
| else | |
| echo "✅ VCR cassettes directory size is within limits" | |
| fi | |