ci: add gas report workflow with baseline comparison#518
Open
jonaprieto wants to merge 1 commit into
Open
Conversation
7c08ac4 to
74ed534
Compare
Contributor
Author
|
CI is green and artifacts are live. Here's the first run producing them: https://github.com/anoma/pa-evm/actions/runs/24377241026 The gas-report artifact contains both a .gas-snapshot (per-test gas costs) and a gas-report.txt (per-function breakdown for all Benchmark contracts). Artifacts are retained for 30 days and labeled with the branch and commit SHA for easy comparison across PRs. |
74ed534 to
7dc6525
Compare
7dc6525 to
377f645
Compare
Contributor
Gas ReportTotal benchmark gas: 202,096,997 — no baseline yet, diff available after first merge to Gas Snapshot — per-test gas consumption
Gas Report — per-function statisticsContract Sizes — EVM bytecode size (24,576 B limit)
Generated by CI — commit |
heueristik
requested changes
Apr 15, 2026
377f645 to
b06fae8
Compare
heueristik
previously approved these changes
Apr 15, 2026
Move gas reporting into a dedicated gas-report.yml workflow, keeping the contracts CI lean. The new workflow provides: - Gas snapshot and per-function gas report - Contract sizes with EVM 24KB limit margin - Baseline caching on main push via actions/cache - Automatic diff vs. main on every PR (delta + percentage) - Sticky PR comment updated on each push - Artifacts uploaded with 30-day retention On the first merge to main the baseline is seeded. Every subsequent PR compares against it and surfaces regressions inline.
b06fae8 to
5c6c17d
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move gas reporting into a dedicated gas-report.yml workflow, keeping the contracts CI lean. The new workflow provides gas snapshot, per-function gas report, contract sizes (with EVM 24KB limit warnings), and a baseline diff vs. main on every PR. The baseline is cached on each main merge and PRs automatically compare against it, surfacing regressions with delta and percentage inline in a sticky PR comment.