|
| 1 | +name: Large performance investigation |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + schedule: |
| 6 | + - cron: "0 4 * * 0" |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +jobs: |
| 12 | + performance-large: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + timeout-minutes: 180 |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + fetch-depth: 0 |
| 19 | + |
| 20 | + - uses: actions/setup-python@v5 |
| 21 | + with: |
| 22 | + python-version: "3.12" |
| 23 | + |
| 24 | + - name: Install benchmark dependencies |
| 25 | + run: | |
| 26 | + python -m pip install --upgrade pip |
| 27 | + pip install -e ".[dev,bench,ml]" |
| 28 | +
|
| 29 | + - name: Run large performance matrix |
| 30 | + id: benchmark |
| 31 | + continue-on-error: true |
| 32 | + run: >- |
| 33 | + python -m benchmarks.performance run |
| 34 | + --rows 100000,500000,1000000 |
| 35 | + --widths narrow,medium,wide |
| 36 | + --configs default,conservative,representation_off,statistical_off,explicit |
| 37 | + --report-modes false,true |
| 38 | + --warmups 1 |
| 39 | + --repetitions 5 |
| 40 | + --timeout 1800 |
| 41 | + --output benchmarks/results/performance/large |
| 42 | +
|
| 43 | + - name: Analyze all completed and failed cases |
| 44 | + id: analyze |
| 45 | + if: always() |
| 46 | + continue-on-error: true |
| 47 | + run: >- |
| 48 | + python -m benchmarks.performance analyze |
| 49 | + --input benchmarks/results/performance/large |
| 50 | + --output benchmarks/results/performance/large-summary.json |
| 51 | +
|
| 52 | + - name: Render compact report |
| 53 | + id: render |
| 54 | + if: always() |
| 55 | + continue-on-error: true |
| 56 | + run: >- |
| 57 | + python -m benchmarks.performance render |
| 58 | + --input benchmarks/results/performance/large-summary.json |
| 59 | + --output benchmarks/results/performance/large-report.md |
| 60 | +
|
| 61 | + - name: Upload performance evidence |
| 62 | + id: upload |
| 63 | + if: always() |
| 64 | + uses: actions/upload-artifact@v4 |
| 65 | + with: |
| 66 | + name: performance-large-${{ github.run_id }} |
| 67 | + path: benchmarks/results/performance/ |
| 68 | + if-no-files-found: error |
| 69 | + |
| 70 | + - name: Preserve failure status after evidence upload |
| 71 | + if: >- |
| 72 | + always() && |
| 73 | + (steps.benchmark.outcome != 'success' || |
| 74 | + steps.analyze.outcome != 'success' || |
| 75 | + steps.render.outcome != 'success' || |
| 76 | + steps.upload.outcome != 'success') |
| 77 | + run: exit 1 |
0 commit comments