Skip to content

Commit 35e959b

Browse files
ci: auto-commit benchmark report to docs and scope write permissions
Add step to commit benchmark HTML report to docs/benchmarks/ on push. Scope contents:write permission to the benchmark job only. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 33d7d9f commit 35e959b

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.chainlink/issues.db

0 Bytes
Binary file not shown.

.github/workflows/uv-test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
name: Benchmarks
8484
runs-on: ubuntu-latest
8585
needs: [lint]
86+
permissions:
87+
contents: write
8688
steps:
8789
- uses: actions/checkout@v5
8890

@@ -110,6 +112,20 @@ jobs:
110112
- name: Run benchmarks
111113
run: just bench
112114

115+
- name: Copy report to docs
116+
run: |
117+
mkdir -p docs/benchmarks
118+
cp .bench/report.html docs/benchmarks/index.html
119+
120+
- name: Commit updated benchmark docs
121+
if: github.event_name == 'push'
122+
run: |
123+
git config user.name "github-actions[bot]"
124+
git config user.email "github-actions[bot]@users.noreply.github.com"
125+
git add docs/benchmarks/index.html
126+
git diff --cached --quiet || git commit -m "docs: update benchmark report [skip ci]"
127+
git push
128+
113129
- name: Upload benchmark report
114130
uses: actions/upload-artifact@v4
115131
if: always()

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2525
- **Comprehensive integration test suite**: 593 tests covering E2E flows, error handling, edge cases
2626

2727
### Changed
28+
- Scope contents:write permission to benchmark job only (#510)
29+
- Add benchmark docs auto-commit to CI workflow (#509)
30+
- Submit PR for v0.3.0b1 release to upstream/main (#508)
2831
- Implement GH#39: Production hardening (observability, error handling, testing infra) (#504)
2932
- Add pluggable structured logging via atdata.configure_logging (#507)
3033
- Add PartialFailureError and shard-level error handling to Dataset.map (#506)

0 commit comments

Comments
 (0)