Skip to content

Commit 703c370

Browse files
authored
Merge branch 'master' into mablr/sign-authorization-keychain
2 parents db75ace + 073ea8c commit 703c370

151 files changed

Lines changed: 9789 additions & 3852 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
crates/cheatcodes/assets/*.json linguist-generated
22
testdata/cheats/Vm.sol linguist-generated
3-
bun.lock linguist-generated
43

54
# See <https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header>
65
*.rs diff=rust

.github/dependabot.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,3 @@ updates:
2424
applies-to: "version-updates"
2525
patterns: ["*"]
2626
update-types: ["minor", "patch"]
27-
28-
- package-ecosystem: "npm"
29-
directory: "/npm"
30-
schedule:
31-
interval: "weekly"
32-
cooldown:
33-
default-days: 7
34-
open-pull-requests-limit: 5
35-
groups:
36-
npm-weekly:
37-
applies-to: "version-updates"
38-
patterns: ["*"]
39-
update-types: ["minor", "patch"]

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ permissions: {}
55
on:
66
workflow_dispatch:
77
inputs:
8-
pr_number:
9-
description: "PR number to comment on (optional)"
10-
required: false
11-
type: string
128
versions:
139
description: "Comma-separated list of Foundry versions to benchmark (optional, defaults to 'v1.5.1,v1.7.0')"
1410
required: false
@@ -88,11 +84,6 @@ jobs:
8884
- name: Build benchmark binary
8985
run: cargo build --locked --release --bin foundry-bench
9086

91-
- name: Setup Node.js
92-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
93-
with:
94-
node-version: "24"
95-
9687
- name: Install hyperfine
9788
run: |
9889
curl -L https://github.com/sharkdp/hyperfine/releases/download/v1.19.0/hyperfine-v1.19.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
@@ -118,7 +109,7 @@ jobs:
118109
VERSIONS: ${{ github.event.inputs.versions || env.DEFAULT_VERSIONS }}
119110
REPOS: ${{ github.event.inputs.repos || env.ISOLATE_TEST_REPOS }}
120111
run: |
121-
./target/release/foundry-bench --output-dir ./benches --force-install \
112+
./target/release/foundry-bench --output-dir ./benches \
122113
--versions "$VERSIONS" \
123114
--repos "$REPOS" \
124115
--benchmarks forge_isolate_test \
@@ -131,7 +122,7 @@ jobs:
131122
VERSIONS: ${{ github.event.inputs.versions || env.DEFAULT_VERSIONS }}
132123
REPOS: ${{ github.event.inputs.repos || env.BUILD_REPOS }}
133124
run: |
134-
./target/release/foundry-bench --output-dir ./benches --force-install \
125+
./target/release/foundry-bench --output-dir ./benches \
135126
--versions "$VERSIONS" \
136127
--repos "$REPOS" \
137128
--benchmarks forge_build_no_cache,forge_build_with_cache \
@@ -144,7 +135,7 @@ jobs:
144135
VERSIONS: ${{ github.event.inputs.versions || env.DEFAULT_VERSIONS }}
145136
REPOS: ${{ github.event.inputs.repos || env.COVERAGE_REPOS }}
146137
run: |
147-
./target/release/foundry-bench --output-dir ./benches --force-install \
138+
./target/release/foundry-bench --output-dir ./benches \
148139
--versions "$VERSIONS" \
149140
--repos "$REPOS" \
150141
--benchmarks forge_coverage \
@@ -154,10 +145,6 @@ jobs:
154145
- name: Combine benchmark results
155146
run: ./.github/scripts/combine-benchmarks.sh benches
156147

157-
- name: Read benchmark results
158-
id: benchmark_results
159-
run: ./.github/scripts/read-benchmark-results.sh benches
160-
161148
- name: Upload benchmark results as artifacts
162149
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
163150
with:
@@ -169,9 +156,6 @@ jobs:
169156
benches/forge_coverage_bench.md
170157
benches/LATEST.md
171158
172-
outputs:
173-
pr_comment: ${{ steps.benchmark_results.outputs.pr_comment }}
174-
175159
publish-results:
176160
name: Publish Results
177161
needs: run-benchmarks
@@ -181,6 +165,7 @@ jobs:
181165
permissions:
182166
contents: write
183167
pull-requests: write
168+
184169
steps:
185170
- name: Checkout repository
186171
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -203,13 +188,10 @@ jobs:
203188
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
204189
env:
205190
BRANCH_NAME: ${{ steps.commit_results.outputs.branch_name }}
206-
PR_COMMENT: ${{ needs.run-benchmarks.outputs.pr_comment }}
207191
with:
208192
script: |
209193
const branchName = process.env.BRANCH_NAME;
210-
const prComment = process.env.PR_COMMENT;
211194
212-
// Create the pull request
213195
const { data: pr } = await github.rest.pulls.create({
214196
owner: context.repo.owner,
215197
repo: context.repo.repo,
@@ -220,36 +202,9 @@ jobs:
220202
221203
This PR contains the latest benchmark results from a manual workflow run.
222204
223-
${prComment}
224-
225205
---
226206
227207
🤖 This PR was automatically generated by the [Foundry Benchmarks workflow](https://github.com/${{ github.repository }}/actions).`
228208
});
229209
230210
console.log(`Created PR #${pr.number}: ${pr.html_url}`);
231-
232-
- name: Comment on PR
233-
if: github.event.inputs.pr_number != '' || github.event_name == 'pull_request'
234-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
235-
env:
236-
PR_COMMENT: ${{ needs.run-benchmarks.outputs.pr_comment }}
237-
with:
238-
script: |
239-
const prNumber = ${{ github.event.inputs.pr_number || github.event.pull_request.number }};
240-
const prComment = process.env.PR_COMMENT;
241-
242-
const comment = `${prComment}
243-
244-
---
245-
246-
🤖 This comment was automatically generated by the [Foundry Benchmarks workflow](https://github.com/${{ github.repository }}/actions).
247-
248-
To run benchmarks manually: Go to [Actions](https://github.com/${{ github.repository }}/actions/workflows/benchmarks.yml) → "Run workflow"`;
249-
250-
github.rest.issues.createComment({
251-
issue_number: prNumber,
252-
owner: context.repo.owner,
253-
repo: context.repo.repo,
254-
body: comment
255-
});

.github/workflows/ci-mpp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ env:
1818

1919
jobs:
2020
mpp-check:
21+
# Skip on PRs from forks (only run for branches in foundry-rs/foundry, i.e. maintainer PRs).
22+
if: |
23+
github.event_name != 'pull_request' ||
24+
github.event.pull_request.head.repo.full_name == github.repository
2125
runs-on: depot-ubuntu-latest
2226
timeout-minutes: 60
2327
permissions:

.github/workflows/ci-tempo.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ env:
3939

4040
jobs:
4141
tempo-check:
42+
# Skip on PRs from forks (only run for branches in foundry-rs/foundry, i.e. maintainer PRs).
43+
if: |
44+
github.event_name != 'pull_request' ||
45+
github.event.pull_request.head.repo.full_name == github.repository
4246
runs-on: depot-ubuntu-latest
4347
timeout-minutes: 60
4448
permissions:
@@ -71,7 +75,6 @@ jobs:
7175
7276
- name: Run Tempo check on mainnet
7377
if: |
74-
github.event_name == 'schedule' ||
7578
github.event.inputs.network == 'mainnet' ||
7679
github.event.inputs.network == 'all'
7780
env:

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7979
with:
8080
persist-credentials: false
81-
- uses: crate-ci/typos@bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0
81+
- uses: crate-ci/typos@5374cbf686e897b15713110e233094e2874de7ef # v1.46.1
8282

8383
shellcheck:
8484
runs-on: depot-ubuntu-latest
@@ -171,12 +171,12 @@ jobs:
171171
with:
172172
persist-credentials: false
173173
- name: Initialize CodeQL
174-
uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
174+
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
175175
with:
176176
languages: ${{ matrix.language }}
177177
build-mode: ${{ matrix.build-mode }}
178178
- name: Perform CodeQL Analysis
179-
uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
179+
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
180180
with:
181181
category: "/language:${{matrix.language}}"
182182

.github/workflows/crate-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
toolchain: stable
3131
- uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 # v1
32-
- uses: taiki-e/install-action@cca35edeb1d01366c2843b68fc3ca441446d73d3 # v2.77.1
32+
- uses: taiki-e/install-action@c070f87102a1c75b3183910f391c1cb887fe13c8 # v2.77.6
3333
with:
3434
tool: cargo-hack
3535
- uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10

.github/workflows/nix.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)