|
24 | 24 | steps: |
25 | 25 | - name: Check out the repo |
26 | 26 | uses: actions/checkout@v4 |
27 | | - with: |
28 | | - fetch-depth: 0 # Need full history for baseline comparison |
29 | 27 |
|
30 | 28 | - name: Set up Go |
31 | 29 | uses: actions/setup-go@v5 |
|
83 | 81 | HF_HUB_DISABLE_TELEMETRY: 1 |
84 | 82 | run: make download-models |
85 | 83 |
|
86 | | - - name: Download performance baselines |
87 | | - continue-on-error: true |
88 | | - run: | |
89 | | - mkdir -p perf/testdata/baselines |
90 | | - git show main:perf/testdata/baselines/classification.json > perf/testdata/baselines/classification.json 2>/dev/null || echo '{"version":"v1.0.0","benchmarks":{}}' > perf/testdata/baselines/classification.json |
91 | | - git show main:perf/testdata/baselines/decision.json > perf/testdata/baselines/decision.json 2>/dev/null || echo '{"version":"v1.0.0","benchmarks":{}}' > perf/testdata/baselines/decision.json |
92 | | - git show main:perf/testdata/baselines/cache.json > perf/testdata/baselines/cache.json 2>/dev/null || echo '{"version":"v1.0.0","benchmarks":{}}' > perf/testdata/baselines/cache.json |
93 | | -
|
94 | 84 | - name: Run component benchmarks |
95 | 85 | run: | |
96 | 86 | mkdir -p reports |
@@ -177,21 +167,3 @@ jobs: |
177 | 167 | path: | |
178 | 168 | reports/ |
179 | 169 | retention-days: 30 |
180 | | - |
181 | | - - name: Check for regressions (placeholder) |
182 | | - id: regression_check |
183 | | - continue-on-error: true |
184 | | - run: | |
185 | | - # In a real implementation, this would: |
186 | | - # 1. Parse benchmark output |
187 | | - # 2. Compare against baselines |
188 | | - # 3. Calculate % changes |
189 | | - # 4. Exit 1 if regressions exceed thresholds |
190 | | - echo "No regressions detected (placeholder check)" |
191 | | -
|
192 | | - - name: Fail on regression |
193 | | - if: steps.regression_check.outcome == 'failure' |
194 | | - run: | |
195 | | - echo "❌ Performance regressions detected!" |
196 | | - echo "See benchmark results in artifacts for details" |
197 | | - exit 1 |
0 commit comments