Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change runall to only run rundler test #5

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ jobs:
with:
path: bundler-spec-tests
key: ${{ runner.os }}-${{ hashFiles('bundler-spec-tests/pdm.lock', 'bundler-spec-tests/@account-abstraction/contracts/**/*.sol') }}


- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- run: cd bundler-spec-tests; git checkout
name: "re-checkout bundler-spec-tests (on top of cache)"

Expand Down
2 changes: 1 addition & 1 deletion bundler-spec-tests
Submodule bundler-spec-tests updated 63 files
+112 −20 .circleci/config.yml
+1 −0 .gitignore
+3 −0 .gitmodules
+1 −1 @account-abstraction
+1 −0 @rip7560
+19 −6 README.md
+23 −0 docker/Dockerfile
+866 −651 pdm.lock
+5 −3 pyproject.toml
+13 −0 scripts/clone-helper
+1 −1 spec
+35 −13 tests/conftest.py
+1 −1 tests/contracts/Helper.sol
+3 −1 tests/contracts/ITestAccount.sol
+7 −0 tests/contracts/SimpleWallet.sol
+1 −1 tests/contracts/Stakable.sol
+1 −1 tests/contracts/TestCodeHashFactory.sol
+1 −1 tests/contracts/TestCoin.sol
+4 −0 tests/contracts/TestReputationAccount.sol
+29 −0 tests/contracts/TestReputationAccountFactory.sol
+1 −1 tests/contracts/TestRulesAccount.sol
+1 −1 tests/contracts/TestRulesAccountFactory.sol
+1 −1 tests/contracts/TestRulesAggregator.sol
+1 −1 tests/contracts/TestRulesFactory.sol
+2 −2 tests/contracts/TestRulesPaymaster.sol
+52 −4 tests/contracts/ValidationRules.sol
+57 −0 tests/contracts/rip7560/RIP7560Deployer.sol
+29 −0 tests/contracts/rip7560/RIP7560NonceManager.sol
+57 −0 tests/contracts/rip7560/RIP7560Paymaster.sol
+50 −0 tests/contracts/rip7560/RIP7560TestRulesAccount.sol
+27 −0 tests/contracts/rip7560/RIP7560TestRulesAccountDeployer.sol
+20 −0 tests/contracts/rip7560/RIP7560TransactionType4.sol
+72 −0 tests/contracts/rip7560/TestAccount.sol
+20 −0 tests/contracts/rip7560/TestAccountEnvInfo.sol
+12 −0 tests/contracts/rip7560/TestAccountFactory.sol
+10 −0 tests/contracts/rip7560/TestCounter.sol
+27 −0 tests/contracts/rip7560/TestPaymaster.sol
+39 −0 tests/contracts/rip7560/TestPostOpPaymaster.sol
+29 −0 tests/contracts/rip7560/gaswaste/GasWasteAccount.sol
+33 −0 tests/contracts/rip7560/gaswaste/GasWastePaymaster.sol
+138 −0 tests/contracts/rip7560/utils/TestUtils.sol
+2 −0 tests/p2p/test_p2p.py
+3 −0 tests/rip7560/__init__.py
+92 −0 tests/rip7560/conftest.py
+55 −0 tests/rip7560/test_env_opcodes.py
+370 −0 tests/rip7560/test_rip7560.py
+55 −0 tests/rip7560/test_rip7712.py
+208 −0 tests/rip7560/test_send_failed.py
+150 −0 tests/rip7560/test_validation_rules.py
+68 −0 tests/rip7560/types.py
+35 −30 tests/single/bundle/test_bundle.py
+5 −2 tests/single/bundle/test_codehash.py
+47 −0 tests/single/bundle/test_paymaster.py
+186 −110 tests/single/bundle/test_storage_rules.py
+43 −1 tests/single/opbanning/test_op_banning.py
+115 −0 tests/single/reputation/test_erep.py
+8 −6 tests/single/reputation/test_reputation.py
+6 −4 tests/single/rpc/test_eth_estimateUserOperationGas.py
+1 −2 tests/single/rpc/test_eth_getUserOperationByHash.py
+2 −3 tests/single/rpc/test_eth_getUserOperationReceipt.py
+6 −5 tests/single/rpc/test_eth_sendUserOperation.py
+29 −3 tests/types.py
+85 −42 tests/utils.py
11 changes: 10 additions & 1 deletion runall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ OUT=$BUILD/out
#by default, run all single-bundler configs
BUNDLERS=`ls $root/bundlers/*/*yml|grep -v p2p`

START_COMMAND="pull-start"

#if first command is local, read docker image from local manifest
if [ "$1" = "local" ]; then
START_COMMAND="start"
shift
fi


#if parameter is given, use it as single-bundler yml, or as testenv file
if [ -n "$1" -a -r "$1" ]; then
BUNDLERS=`realpath $1`
Expand Down Expand Up @@ -59,7 +68,7 @@ name=`sed -ne 's/ *NAME=[ "]*\([^"]*\)"*/\1/p' $bundler`
test -z $name && name=$basename

echo "`date`: starting bundler $bundler, name=$name" | tee -a $outraw
if $root/runbundler/runbundler.sh $bundler pull-start; then
if $root/runbundler/runbundler.sh $bundler $START_COMMAND; then

echo "`date`: started bundler $bundler, name=$name" | tee -a $outraw

Expand Down
Loading