Skip to content

Commit 26968fe

Browse files
committed
Merge branch 'master' into yipu3/clearer-error
2 parents 66273b6 + c700851 commit 26968fe

File tree

479 files changed

+29211
-15374
lines changed

Some content is hidden

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

479 files changed

+29211
-15374
lines changed

.config/nextest.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
[test-groups]
2+
chisel-serial = { max-threads = 1 }
3+
14
[profile.default]
2-
retries = { backoff = "exponential", count = 2, delay = "2s", jitter = true }
5+
retries = { backoff = "exponential", count = 2, delay = "3s", jitter = true }
36
slow-timeout = { period = "1m", terminate-after = 3 }
47

58
[[profile.default.overrides]]
@@ -9,3 +12,7 @@ slow-timeout = { period = "5m", terminate-after = 4 }
912
[[profile.default.overrides]]
1013
filter = "package(foundry-cheatcodes-spec)"
1114
retries = 0
15+
16+
[[profile.default.overrides]]
17+
filter = "package(chisel)"
18+
test-group = "chisel-serial"

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
crates/cheatcodes/assets/*.json linguist-generated
22
testdata/cheats/Vm.sol linguist-generated
3+
4+
# See <https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header>
5+
*.rs diff=rust

.github/ISSUE_TEMPLATE/BUG-FORM.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ body:
3232
attributes:
3333
label: What version of Foundry are you on?
3434
placeholder: "Run forge --version and paste the output here"
35+
- type: input
36+
attributes:
37+
label: What version of Foundryup are you on?
38+
placeholder: "Run foundryup --version and paste the output here"
3539
- type: input
3640
attributes:
3741
label: What command(s) is the bug in?
@@ -51,4 +55,4 @@ body:
5155
label: Describe the bug
5256
description: Please include relevant Solidity snippets as well if relevant.
5357
validations:
54-
required: true
58+
required: true

.github/PULL_REQUEST_TEMPLATE.md

+13
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ Thank you for your Pull Request. Please provide a description above and review
33
the requirements below.
44
55
Bug fixes and new features should include tests.
6+
7+
Contributors guide: https://github.com/foundry-rs/foundry/blob/master/CONTRIBUTING.md
8+
9+
The contributors guide includes instructions for running rustfmt and building the
10+
documentation.
611
-->
712

13+
<!-- ** Please select "Allow edits from maintainers" in the PR Options ** -->
14+
815
## Motivation
916

1017
<!--
@@ -19,3 +26,9 @@ thought of as being the motivation for your change.
1926
Summarize the solution and provide any necessary context needed to understand
2027
the code change.
2128
-->
29+
30+
## PR Checklist
31+
32+
- [ ] Added Tests
33+
- [ ] Added Documentation
34+
- [ ] Breaking changes

.github/assets/banner.png

546 KB
Loading
Loading
Loading
70.7 KB
Loading
70.4 KB
Loading

.github/assets/demo.gif

1.63 MB
Loading

.github/changelog.json

+57-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,66 @@
11
{
22
"categories": [
33
{
4-
"title": "## Features",
5-
"labels": ["T-feature"]
4+
"title": "## Breaking changes",
5+
"labels": ["T-likely-breaking "]
66
},
77
{
8-
"title": "## Fixes",
9-
"labels": ["T-bug", "T-fix"]
8+
"title": "## Anvil Features",
9+
"labels": ["C-anvil", "T-feature"],
10+
"exhaustive": true,
11+
"exhaustive_rules": false
12+
},
13+
{
14+
"title": "## Anvil Fixes",
15+
"labels": ["C-anvil", "T-bug"],
16+
"exhaustive": true,
17+
"exhaustive_rules": false
18+
},
19+
{
20+
"title": "## Cast Features",
21+
"labels": ["C-cast", "T-feature"],
22+
"exhaustive": true,
23+
"exhaustive_rules": false
24+
},
25+
{
26+
"title": "## Cast Fixes",
27+
"labels": ["C-cast", "T-bug"],
28+
"exhaustive": true,
29+
"exhaustive_rules": false
30+
},
31+
{
32+
"title": "## Chisel Features",
33+
"labels": ["C-chisel", "T-feature"],
34+
"exhaustive": true,
35+
"exhaustive_rules": false
36+
},
37+
{
38+
"title": "## Chisel Fixes",
39+
"labels": ["C-chisel", "T-bug"],
40+
"exhaustive": true,
41+
"exhaustive_rules": false
42+
},
43+
{
44+
"title": "## Forge Features",
45+
"labels": ["C-forge", "T-feature"],
46+
"exhaustive": true,
47+
"exhaustive_rules": false
48+
},
49+
{
50+
"title": "## Forge Fixes",
51+
"labels": ["C-forge", "T-bug"],
52+
"exhaustive": true,
53+
"exhaustive_rules": false
54+
},
55+
{
56+
"title": "## Performance improvements",
57+
"labels": ["T-perf"]
1058
}
1159
],
1260
"ignore_labels": ["L-ignore"],
13-
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}",
14-
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
15-
"empty_template": "- No changes"
61+
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}\n## Full Changelog:\n ${{RELEASE_DIFF}}",
62+
"pr_template": "- ${{TITLE}} (#${{NUMBER}}) by @${{AUTHOR}}",
63+
"empty_template": "- No changes",
64+
"max_pull_requests": 500,
65+
"max_back_track_time_days": 120
1666
}

.github/demo.gif

-974 KB
Binary file not shown.

.github/logo.png

-14.2 KB
Binary file not shown.

.github/scripts/format.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ set -eo pipefail
33

44
# We have to ignore at shell level because testdata/ is not a valid Foundry project,
55
# so running `forge fmt` with `--root testdata` won't actually check anything
6-
shopt -s extglob
7-
cargo run --bin forge -- fmt "$@" $(find testdata -name '*.sol' ! -name Vm.sol)
6+
cargo run --bin forge -- fmt "$@" \
7+
$(find testdata -name '*.sol' ! -name Vm.sol ! -name console.sol)

.github/scripts/matrices.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ def __init__(
8383
),
8484
Case(
8585
name="integration",
86-
filter="kind(test) & !test(/issue|forge_std|ext_integration/)",
86+
filter="kind(test) & !test(/\\b(issue|ext_integration)/)",
8787
n_partitions=3,
8888
pr_cross_platform=True,
8989
),
9090
Case(
9191
name="integration / issue-repros",
92-
filter="package(=forge) & test(~issue)",
92+
filter="package(=forge) & test(/\\bissue/)",
9393
n_partitions=2,
9494
pr_cross_platform=False,
9595
),
9696
Case(
9797
name="integration / external",
98-
filter="package(=forge) & test(~ext_integration)",
98+
filter="package(=forge) & test(/\\bext_integration/)",
9999
n_partitions=2,
100100
pr_cross_platform=False,
101101
),

.github/workflows/deny.yml

-26
This file was deleted.

.github/workflows/dependencies.yml

+6-47
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,12 @@ on:
99
workflow_dispatch:
1010
# Needed so we can run it manually
1111

12-
env:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14-
BRANCH: cargo-update
15-
TITLE: "chore(deps): weekly `cargo update`"
16-
BODY: |
17-
Automation to keep dependencies in `Cargo.lock` current.
18-
19-
<details><summary><strong>cargo update log</strong></summary>
20-
<p>
21-
22-
```log
23-
$cargo_update_log
24-
```
25-
26-
</p>
27-
</details>
12+
permissions:
13+
contents: write
14+
pull-requests: write
2815

2916
jobs:
3017
update:
31-
name: Update
32-
runs-on: ubuntu-latest
33-
steps:
34-
- uses: actions/checkout@v4
35-
- uses: dtolnay/rust-toolchain@nightly
36-
37-
- name: cargo update
38-
# Remove first line that always just says "Updating crates.io index"
39-
run: cargo update --color never 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
40-
41-
- name: craft commit message and PR body
42-
id: msg
43-
run: |
44-
export cargo_update_log="$(cat cargo_update.log)"
45-
46-
echo "commit_message<<EOF" >> $GITHUB_OUTPUT
47-
printf "$TITLE\n\n$cargo_update_log\n" >> $GITHUB_OUTPUT
48-
echo "EOF" >> $GITHUB_OUTPUT
49-
50-
echo "body<<EOF" >> $GITHUB_OUTPUT
51-
echo "$BODY" | envsubst >> $GITHUB_OUTPUT
52-
echo "EOF" >> $GITHUB_OUTPUT
53-
54-
- name: Create Pull Request
55-
uses: peter-evans/create-pull-request@v6
56-
with:
57-
add-paths: ./Cargo.lock
58-
commit-message: ${{ steps.msg.outputs.commit_message }}
59-
title: ${{ env.TITLE }}
60-
body: ${{ steps.msg.outputs.body }}
61-
branch: ${{ env.BRANCH }}
18+
uses: ithacaxyz/ci/.github/workflows/cargo-update-pr.yml@main
19+
secrets:
20+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)