Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
043a3e4
Merge branch '7-bug-release-workflow-failed' of https://github.com/Da…
googleworkspace-bot Apr 10, 2026
de6c9f0
Merge branch 'master' into 7-bug-release-workflow-failed
googleworkspace-bot Apr 10, 2026
adc3642
Update crates/cast/src/args.rs
Dargon789 Apr 10, 2026
6bd1f5b
Update docker.yml
googleworkspace-bot Apr 10, 2026
3733407
Merge branch '7-bug-release-workflow-failed' of https://github.com/Da…
googleworkspace-bot Apr 10, 2026
4672ecd
Revise Foundry benchmark results and system info (#407)
Dargon789 Apr 10, 2026
f37f5fd
Merge branch 'master' into 7-bug-release-workflow-failed
Dargon789 Apr 14, 2026
cb0f6ed
Delete .circleci directory
Dargon789 Apr 14, 2026
87e1cf3
Merge branch 'revert-142-master' into dargon789/gamefi
googleworkspace-bot Apr 21, 2026
39ff73c
Merge remote-tracking branch 'upstream/master' into 7-bug-release-wor…
googleworkspace-bot Apr 21, 2026
23d9618
Update Docker.yml
googleworkspace-bot Apr 21, 2026
1f430c2
chore(deps): bump strum from 0.27.2 to 0.28.0
dependabot[bot] Apr 22, 2026
558ec9d
Merge branch 'foundry-rs:master' into dargon789/gamefi
Dargon789 Apr 23, 2026
f5005b0
Merge branch 'master' into dargon789/gamefi
googleworkspace-bot Apr 23, 2026
a2c9c46
Merge branch 'main' into dargon789/gamefi
googleworkspace-bot Apr 23, 2026
f3660a7
Merge branch '7-bug-release-workflow-failed' into dargon789/gamefi
googleworkspace-bot Apr 23, 2026
d6dd990
Remove CircleCI; update workflows, code, deps
googleworkspace-bot Apr 23, 2026
9b6eb11
Merge branch 'foundry-rs:master' into edr-reth
Dargon789 Apr 24, 2026
c6d3d19
Merge remote-tracking branch 'upstream/master' into hardhat-project
googleworkspace-bot Apr 24, 2026
2e0240b
feat(invariant): assert all invariants
grandizzy Nov 17, 2025
74f1360
Tests and Nits
grandizzy Apr 24, 2026
0d6858d
fix: check all invariants in afterInvariant gate and preflight
grandizzy Apr 24, 2026
67bbe1a
fix: use per-invariant fail_on_revert when recording handler revert f…
grandizzy Apr 24, 2026
01adfd5
fix: commit state between txs in generate_counterexample
grandizzy Apr 24, 2026
bc4b3ad
fix: preflight check all invariants, not just primary
grandizzy Apr 24, 2026
145b18a
fix: exclude secondary invariants from optimization mode runs
grandizzy Apr 24, 2026
43f7230
refactor: rename invariant_fn to primary_invariant_fn, deterministic …
grandizzy Apr 24, 2026
6c0a977
feat: show broken invariant count in progress bar during continuous runs
grandizzy Apr 24, 2026
fb01017
Update crates/script/src/simulate.rs
Dargon789 Apr 25, 2026
df6d596
Merge remote-tracking branch 'upstream/master' into hardhat-project
googleworkspace-bot Apr 25, 2026
30189ca
Merge branch 'master' into hardhat-project
Dargon789 Apr 25, 2026
1209b13
Merge branch 'foundry-rs:master' into foundry/master-test-UX
Dargon789 Apr 25, 2026
5dbd7b2
Update crates/anvil/server/src/handler.rs
Dargon789 Apr 25, 2026
b012dbd
feat(invariant): rename continuous_run to assert_all and default to true
grandizzy Apr 27, 2026
640a117
feat(invariant): parameterize shrinker by target invariant + persiste…
grandizzy Apr 27, 2026
20f0c0f
feat(invariant): structured InvariantOtherFailure for assert_all seco…
grandizzy Apr 27, 2026
f06905b
feat(invariant): serial secondary shrinking + Ctrl-C persists un-shru…
grandizzy Apr 27, 2026
714887f
feat(invariant): assert_all polish — [i/N] shrink counter, suite roll…
grandizzy Apr 27, 2026
1b36a6c
feat(invariant): warn when assert_all skips invariants with persisted…
grandizzy Apr 27, 2026
3cf9e71
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 27, 2026
8f34444
fix(invariant): gate afterInvariant per-run under assert_all
grandizzy Apr 27, 2026
35e48bd
fix(invariant): re-evaluate secondary persisted failures on settings …
grandizzy Apr 27, 2026
5924ef0
fix(invariant): drop hollow [FAIL] when only secondaries break under …
grandizzy Apr 27, 2026
b3ff301
fix(invariant): scope assert_all hollow [FAIL] suppression to seconda…
grandizzy Apr 27, 2026
c09d7c1
fix(invariant): attribute failure event to first broken invariant in …
grandizzy Apr 27, 2026
eb51a9d
refactor(invariant): rename to InvariantSecondaryFailure / invariant_…
grandizzy Apr 27, 2026
058ef9b
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 27, 2026
5e16eb3
fix(forge): adjust gas assertion CounterWithFallback (foundry-rs#1446…
Dargon789 Apr 27, 2026
844dd52
Merge branch 'foundry-rs:master' into foundry/master-test-UX
Dargon789 Apr 27, 2026
7156deb
Merge branch 'foundry-rs:master' into hardhat-project
Dargon789 Apr 27, 2026
ffb889a
test(invariant): assert_all + fail_on_revert=false attributes assert(…
grandizzy Apr 28, 2026
1dfc854
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 28, 2026
e8197a8
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 28, 2026
cb8ff9f
feat(invariant): decouple handler-side assertions from invariant pred…
grandizzy Apr 28, 2026
b750247
fix: avoid private intra-doc link in HandlerAssertionFailure
grandizzy Apr 28, 2026
a2d71de
refactor(invariant): fold broken_handlers into InvariantFailureMetrics
grandizzy Apr 28, 2026
d2eaa96
Merge branch 'foundry-rs:master' into foundry/master-test-UX
Dargon789 Apr 29, 2026
1cfe27b
Merge branch 'foundry-rs:master' into hardhat-project
Dargon789 Apr 29, 2026
f1eba3c
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 29, 2026
65be9b4
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 29, 2026
21ac1bb
refactor(invariant): dedup handler-side assertion bugs by edge-covera…
grandizzy Apr 29, 2026
cc459e7
feat(invariant): shrink handler-side assertion bug counterexamples
grandizzy Apr 29, 2026
fbbd6c6
feat(invariant): persist and replay handler-side assertion bugs
grandizzy Apr 29, 2026
80aec25
perf(invariant): only hash edge coverage for asserting calls
grandizzy Apr 29, 2026
941e5de
feat(invariant): pre-seed campaign with persisted handler bugs for li…
grandizzy Apr 29, 2026
24f402a
test(invariant): handler-bug coverage for multi-handler, post-shrink …
grandizzy Apr 29, 2026
26fee07
fix(invariant): strict handler-bug replay rejects stale files and div…
grandizzy Apr 29, 2026
0c15f88
perf(invariant): drop per-call clone in campaign loop and restore O(k…
grandizzy Apr 29, 2026
27f6bc1
feat(invariant): site-granular dedup for handler bugs + live pulse-me…
grandizzy Apr 30, 2026
f13c8ff
Merge branch 'gdzzy/issue-9727' into gdzzy/issue-14448
grandizzy Apr 30, 2026
9b8e678
Merge branch 'master' into gdzzy/issue-9727
grandizzy Apr 30, 2026
ba65305
Merge branch 'gdzzy/issue-9727' into gdzzy/issue-14448
grandizzy Apr 30, 2026
c3b12ed
Merge remote-tracking branch 'upstream/master' into foundry/master-te…
googleworkspace-bot May 2, 2026
55517eb
Merge remote-tracking branch 'upstream/master' into dargon789/gamefi
googleworkspace-bot May 2, 2026
a223d20
Merge branch 'foundry/master-test-UX'
googleworkspace-bot May 2, 2026
b5fa58d
Merge branch 'dependabot/cargo/strum-0.28.0'
googleworkspace-bot May 2, 2026
6c44631
chore(deps): bump strum from 0.27.2 to 0.28.0 (#509)
dependabot[bot] May 2, 2026
b8e3a0c
gas-snapshot
googleworkspace-bot May 2, 2026
840ec70
Merge branch 'main'
googleworkspace-bot May 2, 2026
432d718
chore(deps): bump similar-asserts from 1.7.0 to 2.0.0 (#508)
dependabot[bot] May 2, 2026
bbc2e1c
Merge branch 'master' into gdzzy/issue-9727
grandizzy May 4, 2026
a17a26d
Merge branch 'gdzzy/issue-9727' into gdzzy/issue-14448
May 4, 2026
5dbc6ef
fix(clippy): use values() instead of iter() with unused key
May 4, 2026
7c9af52
fix(clippy): drop redundant references in trimmed_hex format args
May 4, 2026
5fce0ad
Merge branch 'master' into gdzzy/issue-9727
grandizzy May 4, 2026
1da49bd
Merge branch 'gdzzy/issue-9727' into gdzzy/issue-14448
grandizzy May 4, 2026
3a7e24c
Merge remote-tracking branch 'upstream/master'
googleworkspace-bot May 4, 2026
ef4f254
Merge remote-tracking branch 'upstream/master'
googleworkspace-bot May 4, 2026
1d5702d
Merge remote-tracking branch 'upstream/master'
googleworkspace-bot May 4, 2026
5a4d289
ci: sign release archives, docker images, and publish SBOMs (#520)
Dargon789 May 6, 2026
092dcf6
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 6, 2026
53c39b4
ci: sign release archives, docker images, and publish SBOMs (#519)
Dargon789 May 6, 2026
bcfef65
Merge branch 'foundry-rs:master' into hardhat-project
Dargon789 May 6, 2026
9753a85
Merge branch 'master' of https://github.com/Dargon789/foundry
googleworkspace-bot May 6, 2026
905659c
Merge branch 'edr-reth' of https://github.com/Dargon789/foundry into …
googleworkspace-bot May 6, 2026
e36d86d
Merge remote-tracking branch 'upstream/master' into edr-reth
googleworkspace-bot May 6, 2026
e3038f9
Merge branch 'hardhat-project' into edr-reth
Dargon789 May 6, 2026
b2931c3
Update .github/ISSUE_TEMPLATE/bug_report.md
Dargon789 May 7, 2026
8d9e6f3
Merge branch 'master' into hardhat-project
Dargon789 May 7, 2026
ea1d9f9
Merge branch 'hardhat-project' into edr-reth
Dargon789 May 7, 2026
ff9b162
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 7, 2026
fc617f4
Tempo signer lookup and access key signing (#523)
Dargon789 May 7, 2026
9abaa0d
Merge branch 'hardhat-project' of https://github.com/Dargon789/foundr…
googleworkspace-bot May 7, 2026
1175872
ci: sign release archives, docker images, and publish SBOMs
googleworkspace-bot May 7, 2026
c6ce877
Merge branch 'master' into hardhat-project
googleworkspace-bot May 7, 2026
a2be318
Merge branch 'master' of https://github.com/Dargon789/foundry
googleworkspace-bot May 7, 2026
7128f62
Merge branch 'hardhat-project'
googleworkspace-bot May 7, 2026
de9cf90
Update .github/scripts/compare-nightly.sh
Dargon789 May 7, 2026
2b8840d
Update crates/forge/src/cmd/test/mod.rs
Dargon789 May 7, 2026
7d6a0cb
Merge branch 'main'
googleworkspace-bot May 7, 2026
8dff762
Merge branch 'foundry-rs/master'
googleworkspace-bot May 7, 2026
ad2fcae
Merge branch 'edr-reth'
googleworkspace-bot May 7, 2026
3300696
Merge branch 'dargon789/gamefi'
googleworkspace-bot May 7, 2026
397c9f6
dargon789/gamefi (#531)
Dargon789 May 7, 2026
746ad26
Potential fix for pull request finding 'CodeQL / Artifact poisoning'
Dargon789 May 7, 2026
340b815
Merge branch 'master' into gdzzy/issue-9727
grandizzy May 8, 2026
81acc7a
Merge branch 'gdzzy/issue-9727' into gdzzy/issue-14448
grandizzy May 8, 2026
4527b09
feat: improve forge build lint-failure UX
stevencartavia May 9, 2026
feb4615
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 9, 2026
093be97
Merge remote-tracking branch 'upstream/master'
googleworkspace-bot May 9, 2026
d2e6a1f
vercel-wagmi (#535)
Dargon789 May 9, 2026
4ef4980
Merge branch 'steven/clarify-lint-failure'
googleworkspace-bot May 9, 2026
c396f0a
foundry-rs/master (#541)
Dargon789 May 9, 2026
92c7877
Merge branch 'foundry-rs/master'
googleworkspace-bot May 9, 2026
17010e4
solidity-files-cache.json
googleworkspace-bot May 9, 2026
6bb1e79
Merge branch 'foundry-rs/master'
googleworkspace-bot May 9, 2026
af31686
Merge remote-tracking branch 'upstream/gdzzy/issue-14448'
googleworkspace-bot May 9, 2026
da3f6e3
Merge branch 'master' of https://github.com/Dargon789/foundry
googleworkspace-bot May 9, 2026
a8bc4f2
edr-reth (#545)
Dargon789 May 9, 2026
b8b896f
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 9, 2026
e6b212c
add ci_deploy
googleworkspace-bot May 9, 2026
6eea8c6
Merge branch 'foundry-rs/master' of https://github.com/Dargon789/foun…
googleworkspace-bot May 9, 2026
54619d1
Merge branch 'master' into foundry-rs/master
googleworkspace-bot May 9, 2026
8830c08
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 12, 2026
c9f6ea2
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 13, 2026
f39e278
Merge branch 'foundry-rs/master' of https://github.com/Dargon789/foun…
googleworkspace-bot May 19, 2026
680984f
Merge branch 'master' into foundry-rs/master
googleworkspace-bot May 19, 2026
b15efac
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 19, 2026
88f9201
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 19, 2026
05b4723
Merge branch 'foundry-rs:master' into foundry-rs/master
Dargon789 May 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .circleci/cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2.1
#
jobs:
build-and-test:
docker:
- image: cimg/rust:1.89.0
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-{{ checksum "Cargo.lock" }}
- v1-cargo-
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
- save_cache:
key: v1-cargo-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo/bin"
- "~/.cargo/registry/index"
- "~/.cargo/registry/cache"
- "~/.cargo/git/db"
- "target"
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
Comment thread
Dargon789 marked this conversation as resolved.
26 changes: 26 additions & 0 deletions .circleci/ci-web3-gamefi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference

version: 2.1
executors:
my-custom-executor:
docker:
- image: cimg/base:stable
auth:
# ensure you have first added these secrets
# visit app.circleci.com/settings/project/github/Dargon789/foundry/environment-variables
username: $DOCKER_HUB_USER
password: $DOCKER_HUB_PASSWORD
jobs:
web3-defi-game-project-:

executor: my-custom-executor
steps:
- checkout
- run: |
# echo Hello, World!

workflows:
my-custom-workflow:
jobs:
- web3-defi-game-project-
31 changes: 31 additions & 0 deletions .circleci/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1
jobs:
build-and-test:
docker:
- image: cimg/rust:1.89.0
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-{{ checksum "Cargo.lock" }}
- v1-cargo-
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
- save_cache:
key: v1-cargo-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo/bin"
- "~/.cargo/registry/index"
- "~/.cargo/registry/cache"
- "~/.cargo/git/db"
- "target"
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
Comment thread
Dargon789 marked this conversation as resolved.
37 changes: 37 additions & 0 deletions .circleci/ci_cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2.1

jobs:
build-and-test:
docker:
- image: cimg/rust:1.88.0
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-{{ checksum "Cargo.lock" }}
- v1-cargo-
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
- save_cache:
key: v1-cargo-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo/bin"
- "~/.cargo/registry/index"
- "~/.cargo/registry/cache"
- "~/.cargo/git/db"
- "target"
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
Comment thread
Dargon789 marked this conversation as resolved.

workflows:
ci:
jobs:
- build-and-test
34 changes: 34 additions & 0 deletions .circleci/ci_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 2.1

jobs:
say-hello:
docker:
- image: cimg/base:current

steps:
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"

workflows:
say-hello-workflow:
jobs:
- say-hello

- run:
name: Plan a deploy
command: |
circleci run release plan \
--environment-name="<environment-name>" \
--component-name="<component-name>" \
--target-version="<some-version-name>"
# Your job here doing the actual deployment
- run:
name: Update a deploy to SUCCESS
command: circleci run release update --status=SUCCESS
when: on_success
- run:
name: Update planned deploy to FAILED
command: circleci run release update --status=FAILED
when: on_fail
Comment thread
Dargon789 marked this conversation as resolved.
31 changes: 31 additions & 0 deletions .circleci/ci_v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2.1

jobs:
build-and-test:
docker:
- image: cimg/rust:1.89.0
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-{{ checksum "Cargo.lock" }}
- v1-cargo-
- run:
name: "Check formatting"
command: cargo fmt -- --check
- run:
name: "Run tests"
command: cargo test
- save_cache:
key: v1-cargo-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo/bin"
- "~/.cargo/registry/index"
- "~/.cargo/registry/cache"
- "~/.cargo/git/db"
- "target"

workflows:
ci:
jobs:
- build-and-test
70 changes: 70 additions & 0 deletions .circleci/dev_stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference

version: 2.1
executors:
my-custom-executor:
docker:
- image: cimg/base:stable
jobs:
web3-defi-game-project-:

executor: my-custom-executor
steps:
- checkout
- run: |
# echo Hello, World!

workflows:
my-custom-workflow:
jobs:
- web3-defi-game-project-

jobs:
my-job:
steps:
- run: echo "Hello, world!"
- run:
command: echo "This step will automatically rerun up to 3 times if it fails with a 10 second delay between attempts"
max_auto_reruns: 3
auto_rerun_delay: 10s

Comment thread
Dargon789 marked this conversation as resolved.
workflows:
dev_stage_pre-prod:
jobs:
- test_dev:
filters: # using regex filters requires the entire branch to match
branches:
only: # only branches matching the below regex filters will run
- dev
- /user-.*/
- test_stage:
filters:
branches:
only: stage
- test_pre-prod:
filters:
branches:
only: /pre-prod(?:-.+)?$/


build-test-deploy:
jobs:
- build:
filters: # required since `test` has tag filters AND requires `build`
tags:
only: /^config-test.*/
- test:
requires:
- build
filters: # required since `deploy` has tag filters AND requires `test`
tags:
only: /^config-test.*/
- deploy:
requires:
- test
filters:
tags:
only: /^config-test.*/
branches:
ignore: /.*/
26 changes: 26 additions & 0 deletions .circleci/web3_defi_gamefi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference

version: 2.1
executors:
my-custom-executor:
docker:
- image: cimg/base:stable
auth:
# ensure you have first added these secrets
# visit app.circleci.com/settings/project/github/Dargon789/foundry/environment-variables
username: $DOCKER_HUB_USER
password: $DOCKER_HUB_PASSWORD
jobs:
web3-defi-game-project-:

executor: my-custom-executor
steps:
- checkout
- run: |
# echo Hello, World!

workflows:
my-custom-workflow:
jobs:
- web3-defi-game-project-
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
crates/cheatcodes/assets/*.json linguist-generated
testdata/cheats/Vm.sol linguist-generated
bun.lock linguist-generated

# See <https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header>
*.rs diff=rust
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. Chrome, Safari]
- Version [e.g. 22]
- Browser [e.g. Chrome, safari]
- Version [e.g. 22]
Comment thread
Dargon789 marked this conversation as resolved.

Expand Down
10 changes: 0 additions & 10 deletions .github/TEST_ISOLATE_FAILURE_TEMPLATE.md

This file was deleted.

13 changes: 0 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,3 @@ updates:
applies-to: "version-updates"
patterns: ["*"]
update-types: ["minor", "patch"]

- package-ecosystem: "npm"
directory: "/npm"
schedule:
interval: "weekly"
cooldown:
default-days: 7
open-pull-requests-limit: 5
groups:
npm-weekly:
applies-to: "version-updates"
patterns: ["*"]
update-types: ["minor", "patch"]
Empty file modified .github/scripts/commit-benchmark-results.sh
100755 → 100644
Empty file.
14 changes: 10 additions & 4 deletions .github/scripts/compare-nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ warn = float(os.environ["WARN"])
fail = float(os.environ["FAIL"])

prev_path = os.environ.get("PREV_JSON", "")
prev = json.load(open(prev_path)) if prev_path and os.path.isfile(prev_path) else {}
prev = {}
if prev_path and os.path.isfile(prev_path):
with open(prev_path) as f:
prev = json.load(f)
with open(os.environ["TODAY_JSON"]) as f:
today = json.load(f)

print("## Nightly Benchmark Regression Report\n")
print("| Benchmark | Previous | Today | Δ | Status |")
print("|-----------|----------|-------|---|--------|")
print("| Benchmark | Stable | Nightly | Δ | Status |")
print("|-----------|--------|---------|---|--------|")

has_regression = False
all_keys = sorted(prev.keys() | today.keys())
Expand All @@ -39,7 +42,10 @@ for key in all_keys:
if p is None:
print(f"| `{key}` | N/A | {t:.5f}s | — | 🆕 New |")
continue
delta = (t - p) / p * 100
if p == 0:
delta = float('inf') if t > 0 else 0.0
else:
delta = (t - p) / p * 100
if delta >= fail:
status = "🔴 Regression"
has_regression = True
Expand Down
Empty file modified .github/scripts/read-benchmark-results.sh
100755 → 100644
Empty file.
Loading