feat(bench): publish release benchmark baselines#144
Conversation
- Add a release-only benchmark workflow that saves full Criterion baselines for published releases and attaches the archived baseline to the GitHub Release. - Keep the regular benchmark workflow focused on PR and main-branch comparison runs. - Document how to restore archived release baselines for future performance comparisons. Closes #138
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR introduces release baseline capture infrastructure and documentation. A new GitHub Actions workflow runs on release publication, benchmarks both the ChangesRelease Baseline Infrastructure
Sequence DiagramsequenceDiagram
participant Release as GitHub Release
participant Actions as GitHub Actions
participant Cargo as Cargo Bench
participant Artifact as Artifact Upload
participant GHAsset as GH Release Asset
participant Summary as GITHUB_STEP_SUMMARY
Release->>Actions: published event
Actions->>Actions: checkout release tag
Actions->>Cargo: cargo bench (vs_linalg)
Cargo->>Cargo: save Criterion baseline
Actions->>Cargo: cargo bench (exact with features)
Cargo->>Cargo: save Criterion baseline
Actions->>Actions: tar.gz criterion/ directory
Actions->>Artifact: upload temporary artifact (30-day)
Actions->>GHAsset: gh release upload --clobber
GHAsset->>Release: attach la-stack-$TAG-criterion-baseline.tar.gz
Actions->>Summary: write asset filename and path
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #144 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 5 5
Lines 2846 2846
=======================================
Hits 2835 2835
Misses 11 11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Closes #138
Summary by CodeRabbit
Documentation
Chores