Skip to content

Commit

Permalink
chore: sync with upstream fef2098 (#769)
Browse files Browse the repository at this point in the history
* fix(forge): fix stack overflow when the lib path is absolute. (#9190)

* fix(forge): fix stack overflow when the lib path is absolute.

* format

* add test for setting absolute lib path.

* remove useless code:

* fix(remappings): ignore remappings of root proj dirs when merging (#9258)

* fix(remappings): ignore remappings of root proj dir when merging

* Remove unused code

* Add test

* Update

* Load project paths from figment

---------

Co-authored-by: zerosnacks <[email protected]>

* feat(`cheatcodes`): mockCall with bytes4 data (#9267)

* feat(`cheatcodes`): mockCall with bytes4

* fix

* fix

* feat: update to Soldeer v0.5.0 (#9281)

Release 0.5.0

* fix(`forge test`): record only test fns in test failures (#9286)

* fix(coverage): do not report empty constructors, enable reports for `receive` (#9288)

fix(coverage): do not report empty constructors, enable reports for receive fn

* Make fs read cheatcodes views (#9289)

* chore: fix clippy (#9291)

* feat(anvil): add `anvil_getIntervalMining` API (#9290)

* feat: add anvil_get_interval_mine method

* refactor: keep consistent naming

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: grandizzy <[email protected]>

* chore(`common::shell`): finish implementation + enforce  in `clippy` (#9268)

* enforce for script and verify crates

* complete and enforce common shell

* permit eprintln! due to circular dependency outside of common path

* avoid code duplication

* chore: typo anvil_getIntervalMing -> anvil_getIntervalMining (#9292)

chore: typo anvil_getIntervalMining

* chore(deps): weekly `cargo update` (#9293)

Locking 61 packages to latest compatible versions
    Updating allocator-api2 v0.2.18 -> v0.2.19
    Updating alloy-chains v0.1.46 -> v0.1.47
    Updating anyhow v1.0.92 -> v1.0.93
    Updating arbitrary v1.3.2 -> v1.4.1
    Updating aws-config v1.5.9 -> v1.5.10
    Updating aws-sdk-kms v1.49.0 -> v1.50.0
    Updating aws-sdk-sso v1.48.0 -> v1.49.0
    Updating aws-sdk-ssooidc v1.49.0 -> v1.50.0
    Updating aws-sdk-sts v1.48.0 -> v1.49.0
    Updating aws-smithy-runtime-api v1.7.2 -> v1.7.3
    Updating aws-smithy-types v1.2.8 -> v1.2.9
    Updating cc v1.1.36 -> v1.1.37
    Updating clap_complete v4.5.36 -> v4.5.37
    Updating derive_arbitrary v1.3.2 -> v1.4.1
    Updating fastrand v2.1.1 -> v2.2.0
 Downgrading fs4 v0.10.0 -> v0.9.1
    Updating gcloud-sdk v0.25.7 -> v0.25.8
    Updating handlebars v5.1.2 -> v6.2.0
    Updating hyper-timeout v0.5.1 -> v0.5.2
      Adding icu_collections v1.5.0
      Adding icu_locid v1.5.0
      Adding icu_locid_transform v1.5.0
      Adding icu_locid_transform_data v1.5.0
      Adding icu_normalizer v1.5.0
      Adding icu_normalizer_data v1.5.0
      Adding icu_properties v1.5.1
      Adding icu_properties_data v1.5.0
      Adding icu_provider v1.5.0
      Adding icu_provider_macros v1.5.0
    Updating idna v0.5.0 -> v1.0.3
      Adding idna_adapter v1.2.0
    Updating libc v0.2.161 -> v0.2.162
      Adding litemap v0.7.3
    Updating mdbook v0.4.40 -> v0.4.42
    Updating newtype-uuid v1.1.2 -> v1.1.3
      Adding num-modular v0.6.1
      Adding num-order v1.2.0
    Updating quinn-udp v0.5.6 -> v0.5.7
    Updating security-framework-sys v2.12.0 -> v2.12.1
    Updating serial_test v3.1.1 -> v3.2.0
    Updating serial_test_derive v3.1.1 -> v3.2.0
    Updating snapbox v0.6.19 -> v0.6.20
      Adding stable_deref_trait v1.2.0
 Downgrading svm-rs v0.5.8 -> v0.5.7 (available: v0.5.8)
 Downgrading svm-rs-builds v0.5.8 -> v0.5.7 (available: v0.5.8)
      Adding synstructure v0.13.1
    Updating tempfile v3.13.0 -> v3.14.0
      Adding tinystr v0.7.6
    Updating tokio v1.41.0 -> v1.41.1
    Updating tracy-client-sys v0.24.1 -> v0.24.2
    Removing unicode-bidi v0.3.17
    Updating url v2.5.2 -> v2.5.3
      Adding utf16_iter v1.0.5
      Adding utf8_iter v1.0.4
      Adding write16 v1.0.0
      Adding writeable v0.5.5
      Adding yoke v0.7.4
      Adding yoke-derive v0.7.4
      Adding zerofrom v0.1.4
      Adding zerofrom-derive v0.1.4
      Adding zerovec v0.10.4
      Adding zerovec-derive v0.10.3
note: pass `--verbose` to see 42 unchanged dependencies behind latest

Co-authored-by: mattsse <[email protected]>

* fix(trace): check fn sigs for contract with fallbacks (#9287)

* fix(trace): check fn sigs for contract with fallbacks

* Add Json test

* Execute test with traces

* Simplify, check only for decoded function

* fix: use regular `println` in internal test utils to avoid interfering with `cargo test` runner (#9296)

* use regular println to avoid interfering with cargo test runner

* revert test change

* feat(`cast run`): add `--etherscan-api-key`  to resolve contract names (#9295)

* fix(cast run): decode traces for non mainnet

* Add test

* Changes after review: use EtherscanOpts, remove short -e from evm_version
Simplify test to avoid rate limiting.

* feat(cast): add artifact method (#9249)

* feat(cast): add artifact method

* Remove unneeded clone

* Get chain info from provider

* Rebase fix

* fix(fork): set block blob_excess_gas_and_price only if `excess_blob_gas header` is Some (#9298)

fix(fork): set block blob_excess_gas_and_price only if excess_blob_gas header is Some

* feat(`common::shell`): add global verbosity level (`-vvv`) flag replacing `--verbose` (#9273)

* remove --verbose, prefer output mode, introduce verbosity level (-vvv)

* remove leftover

* fix arg

* add ability to set verbosity level

* fix tests

* remove evm args specific verbosity arg in favor of global arg due to Clap limitation

* revert test modifications from foundry-rs/foundry#9244 for TestArgs, simply pass + flatten ShellOpts in args

* in lieu of a context specific help document the verbosity levels of the EVM as an example

* format comment, update tests

* fix clippy

* chore: do not trim decoded generic custom error (#9309)

chore: do not trim generic custom error trace

* fix(forge): always report deployment size in gas reports (#9308)

* fix(`ci`): update cargo deny (#9314)

fix cargo deny

* feat: Update to soldeer 0.5.1 (#9315)

Update to soldeer 0.5.1

Co-authored-by: zerosnacks <[email protected]>

* chore: update soldeer-core dependency (#9316)

* fix(`forge eip712`): handle recursive types (#9319)

fix(forge eip712): handle recursive types

* feat(forge): allow `--verifier custom` option (#9311)

* feat(forge): allow `--verifier custom` option

* Changes after review: add description of custom verifier, reorg err message, add custom verifier api key

* Fix descriptions

* Update crates/verify/src/provider.rs

Co-authored-by: zerosnacks <[email protected]>

---------

Co-authored-by: zerosnacks <[email protected]>

* feat(`cheatcodes`): add `delegatecall` to `prank`ing (#8863)

* begin api and rough comments

* impl cheatcode

* add check for eoa

* fix eoa check on each prank call

* add to assets

* prank compiling

* delegate call working, storage not upating

* delegate call working, some tidy up

* add prank2 calls

* impl remaining tests

* formatting

* forge fmt

* add pranks to cheatcodes.json

* run cargo cheats

* If verbosity level is 1 or higher, it shows dirty files.

* Fix, add EOA prank test

* Revert "If verbosity level is 1 or higher, it shows dirty files."

This reverts commit d03ac1d59acb8096b12f46dfb5a397bcc4d28ce9.

* Fix test

* apply on extdelegatecall

---------

Co-authored-by: mgiagante <[email protected]>
Co-authored-by: grandizzy <[email protected]>

* feat(forge build): err if no source file in specified paths (#9329)

* feat(`forge build`): add `--sizes` and `--names` JSON compatibility (#9321)

* add --sizes and --names JSON compatibility + generalize report kind

* add additional json output tests

* fix feedback nit

* chore: fix clippy (#9333)

* test: enhance tests (#9334)

* test: enhance tests

* update ws url

* Assert json unordered

* Update crates/test-utils/src/util.rs

Co-authored-by: DaniPopes <[email protected]>

* Changes after review

* Fix rpc url test

---------

Co-authored-by: grandizzy <[email protected]>
Co-authored-by: grandizzy <[email protected]>
Co-authored-by: DaniPopes <[email protected]>

* chore(deps): weekly `cargo update` (#9336)

Locking 40 packages to latest compatible versions
    Updating allocator-api2 v0.2.19 -> v0.2.20
    Updating alloy-dyn-abi v0.8.11 -> v0.8.12
    Updating alloy-json-abi v0.8.11 -> v0.8.12
    Updating alloy-primitives v0.8.11 -> v0.8.12
    Updating alloy-sol-macro v0.8.11 -> v0.8.12
    Updating alloy-sol-macro-expander v0.8.11 -> v0.8.12
    Updating alloy-sol-macro-input v0.8.11 -> v0.8.12
    Updating alloy-sol-type-parser v0.8.11 -> v0.8.12
    Updating alloy-sol-types v0.8.11 -> v0.8.12
    Updating aws-sdk-sts v1.49.0 -> v1.50.0
    Updating axum v0.7.7 -> v0.7.9
    Updating bstr v1.10.0 -> v1.11.0
    Updating cc v1.1.37 -> v1.2.1
    Updating clap v4.5.20 -> v4.5.21
    Updating clap_builder v4.5.20 -> v4.5.21
    Updating clap_complete v4.5.37 -> v4.5.38
    Updating clap_lex v0.7.2 -> v0.7.3
    Updating comfy-table v7.1.1 -> v7.1.3
    Updating cpufeatures v0.2.14 -> v0.2.15
    Removing crossterm v0.27.0
      Adding diff v0.1.13
    Updating flate2 v1.0.34 -> v1.0.35
    Updating indicatif v0.17.8 -> v0.17.9
      Adding indoc v2.0.5
    Updating instability v0.3.2 -> v0.3.3
    Removing instant v0.1.13
    Updating libc v0.2.162 -> v0.2.164
      Adding pretty_assertions v1.4.1
    Updating quinn v0.11.5 -> v0.11.6
    Updating quinn-proto v0.11.8 -> v0.11.9
    Updating regex-automata v0.4.8 -> v0.4.9
    Updating rustix v0.38.39 -> v0.38.40
    Updating rustls v0.23.16 -> v0.23.17
    Updating scc v2.2.4 -> v2.2.5
    Updating serde v1.0.214 -> v1.0.215
    Updating serde_derive v1.0.214 -> v1.0.215
    Updating syn-solidity v0.8.11 -> v0.8.12
    Removing thiserror v1.0.68
      Adding thiserror v1.0.69 (available: v2.0.3)
      Adding thiserror v2.0.3
    Removing thiserror-impl v1.0.68
      Adding thiserror-impl v1.0.69
      Adding thiserror-impl v2.0.3
      Adding web-time v1.1.0
note: pass `--verbose` to see 44 unchanged dependencies behind latest

Co-authored-by: mattsse <[email protected]>

* chore: fix getArtifactPath flaky test (#9339)

* fix(cast storage): respect `--json` for layout (#9332)

* feat(cast storage): allow ugly printing of layout

Prior to this change, `cast storage $ADDRESS --rpc-url $RPC_URL
--etherscan-api-key $ETHERSCAN_API_KEY` always provided a prettified
output.

This change adds a `--pretty` flag to `cast storage` which defaults to
`true` thus retaining backwards compatibility. Passing `--pretty=false`
to `cast storage` results in the json output of the storage layout being
produced instead.

* fix: remove default value from help text

The default value is accessible via `cast storage --help`

* fix(cast storage): provide output json path

* test(cast): add storage_layout_simple_json test

* fix(cast storage): use `--json` flag to ugly print

* fix(cast storage): include values in json mode

* fix(cast-storage): quiet compilation in all cases

* chore: cargo clippy

* use fixtures, assert JSON

* only quiet if JSON mode, avoid unnecessary warning (if you pass an API key you already expect to fetch remote, very likely default)

---------

Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: zerosnacks <[email protected]>

* feat(`config`): set default evm version to cancun (#9131)

* chore: Update to Cancun

* cancun to TEST_DATA_DEFAULT, add TEST_DATA_PARIS

* Shanghai compat test

* Redact gaswaster address

* chore: update test values to cancun (#9344)

* feat(`forge build -vvvvv`): If verbosity level is 5 or higher show files to compile (#9325)

* If verbosity level is 1 or higher, it shows dirty files.

* Adds verbose message variant for compilation.

* Removing `if..else` statement to always display `self.send_msg`.

* Changes order of messages.

* Removes semicolons and adds comment on message order.

* Removes verbose variant in favor of the already existing variant.

* nits, sort the dirty files list and prefix with -

* Raises verbosity level to 5+

* Update crates/common/src/term.rs

Co-authored-by: DaniPopes <[email protected]>

---------

Co-authored-by: mgiagante <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: DaniPopes <[email protected]>

* chore: add some more debugging to forge bind (#9345)

* feat: compilation restrictions (#8668)

* [wip] feat: compilation restrictions

* Cargo.lock

* update patch

* fixes

* update patch

* update patch

* wip

* deps

* bytecode hash

* fixes

* rm patches

* pub

* fix: identification of contracts in scripts (#9346)

* fix: identification of contracts in scripts

* clippy

* fix(`coverage`): allow `ir-minimum` for versions < 0.8.5 (#9341)

* fix(coverage): allow ir-minimum for versions < 0.8.5

* Fix

* Remove 0.8.13 restriction, update message and sanitize for 0.8.4 if version cannot be detected

* Update crates/forge/bin/cmd/coverage.rs

Co-authored-by: DaniPopes <[email protected]>

---------

Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: DaniPopes <[email protected]>

* chore: don't color error message in red (#9352)

* chore: don't color error message in red

* Update crates/cli/src/handler.rs

Co-authored-by: zerosnacks <[email protected]>

---------

Co-authored-by: zerosnacks <[email protected]>

* chore: remove redundant 'setup failed' in setup errors (#9354)

* chore: make environment variable error nicer (#9353)

* test: update external forge-std (#9356)

* chore(ci): archive endpoints config (#9348)

* chore: move archive endpoints to different provider

* Make archive endpoints configurable in env vars

* Truncate fork url in err

* Include only provider in failed fork message

* Add env vars from secrets

* Fix tests

---------

Co-authored-by: Matthias Seitz <[email protected]>

* chore: pick provider urls by next index (#9359)

* fix: correct shell substitution in installer (#9351)

Fix typographical error in default value assignment for FOUNDRY_DIR

* chore: TestSetup cleanup (#9355)

Co-authored-by: Matthias Seitz <[email protected]>

* chore(ci): proper read of archive nodes (#9362)

inherit secrets, use alchemy as default for external PRs, comment out infura

* chore(test-utils): simplify next calls (#9361)

Co-authored-by: grandizzy <[email protected]>

* Support EIP-7702 Delegations in Forge (#9236)

* add EIP-7702 cheatcodes: createDelegation, signDelegation, attachDelegation

* add cheatcode implementations for EIP-7702: createDelegationCall, signDelegationCall, attachDelegationCall; modify broadcast to check if sender has a delegation

* add delegations hashmap to Cheatcodes struct

* add revm crate

* create AttachDelegationTest for EIP-7702 transactions

* regen cheatcodes.json

* cargo fmt

* move broadcast under attachDelegation

* combine createDelegationCall logic with signDelegationCall in order to create and sign delegation in a single call; remove delegation logic from broadcast() - no need to track delegations here

* remove revm import from workspace

* combine createDelegation logic inton signDelegation for simplicity

* remove revm from forge script deps

* combine createDelegation with signDelegation

* WIP - refactor test to use SimpleDelegateContract and ERC20 - test currently failing bc 7702 implementation.execute not executed as Alice EOA

* add logic to include authorization_list for EIP 7702 in TransactionRequest by searching delegations hash map by active_delegation

* add address authority param to attachDelegation; remove nonce param from signDelegation, as it can be constructed in cheatcode.

* remove 7702 tx request construction logic - now handled in attachDelegation cheatcode implementation

* refactor attachDelegation cheatcode implementation to handle verifying signature and setting bytecode on EOA; refactor signDelegation cheatcode implementation to get nonce from signer

* remove nonce param from attachDelegation cheatcode in favor of loading from authority account

* refactor test to check for code on alice account and call execute on alice account through SimpleDelegateContract

* revert refactor on TransactionRequest

* format

* cargo fmt

* fix clippy errors

* remove faulty logic comparing nonce to itself - nonce still checked by recovered signature

* add more tests to cover revert cases on attachDelegation and multiple calls via delegation contract

* cargo fmt

* restore logic to check if there's an active delegation when building TransactionRequest; add fixed values for gas and max_priority_fee_per_gas to ensure tx success, with TODO comment to explain what's left

* remove obsolete comment

* add comments explaining delegations and active_delegation

* cargo fmt

* add logic to increase gas limit by PER_EMPTY_ACCOUNT_COST(25k) if tx includes authorization list for EIP 7702 tx, which is seemingly not accounted for in gas estimation; remove hardcoded gas values from call_with_executor

* revert logic to add PER_EMPTY_ACCOUNT_COST for EIP 7702 txs - handled inside of revm now

* remove manually setting transaction type to 4 if auth list is present - handled in revm

* add method set_delegation to Executor for setting EIP-7702 authorization list in the transaction environment; call set_delegation from simulate_and_fill if auth list is not empty

* remove redundancy with TransactionMaybeSigned var tx

* cargo fmt

* refactor: use authorization_list() helper to return authorization_list and set delegation

* refactor: change Cheatcodes::active_delegation to Option<SignedAuthorization> and remove delegations hashmap - tx will only use one active delegation at a time, so no need for mapping

* replace verbose logic to set bytecode on EOA with journaled_state.set_code helper

* cargo fmt

* increment nonce of authority account

* add logic to set authorization_list to None if active_delegation is None

* add test testSwitchDelegation to assert that attaching an additional delegation switches the implementation on the EOA

* remove set_delegation logic in favor of adding call_raw_with_authorization - previous approach kept the delegation in the TxEnv, resulting in higher gas cost for all subsequent calls after the delegation was applied

* refactor signDelegation to return struct SignedDelegation and for attachDelegation to accept SignedDelegation

* update delegation tests to reflect change in cheatcode interface for signDelegation and attachDelegation

* add cheatcode signAndAttachDelegation

* add signAndAttachDelegationCall cheatcode logic; refactor helper methods for shared logic used in 7702 delegation cheatcodes

* add test testCallSingleSignAndAttachDelegation for new cheatcode signAndAttachDelegation

* add comments to SignedDelegation struct and cargo fmt

* cargo fmt

* fix ci

* fix spec

---------

Co-authored-by: Arsenii Kulikov <[email protected]>
Co-authored-by: grandizzy <[email protected]>

* chore(deps): bump foundry-compilers 0.12.2 (#9364)

* feat: rename `ShellOtps` to `GlobalOpts` (#9313)

* rename ShellOpts to GlobalOpts

* prefer arg / command over clap

* add global opts

* remove redundant GlobalOpts injection, only use where access to the global variables is required

* add global thread pool

* add try_jobs method for global rayon pool

* limit unnecessary globalopts injection where shell::* is preferred

* fix tests

* port custom threads iterator to use global rayon thread pool

* remove redundant ignores

* remove leftover from merge conflict, fix clashing args with inlined global in nodeargs / anvil top level args

* leftovers

* add back global args in script args

* fix unused global opts

* ignore attempted multiple initializations of the global thread pool

* add init, default spawn with default rayon settings on forge test

* make test thread number configurable

* add back max threads back test to reduce pressure

* remove global --jobs rayon pool, revert to current implementation

* fix import

* chore(deps): bump foundry-compilers 0.12.3 (#9368)

* chore(deps): bump alloy 0.6.4 (#9280)

* bump alloy to 0.6.1

* fix: ui - use AnyRpcBlock
* fix: wallets - use PrimitveSig

* bump 0.6.2

* replace: AnyNetworkBlock with AnyRpcBlock + HeaderResponse with BlockHeader

* fix: configure_tx_env

* fix: crypto cheatcodes

* fix: anvil_core tx

* fix

* fix: verify-bytecode

* fix cast + get_pretty_tx_attr

* fix(`anvil`): core TypedTx + BlockListener task

* fix

* fix: anvil tests

* fix: test_deser_block

* fix: transaction_build

* fix: test load state files

* fix: deny.toml

* fix: try_from AnyRpcTx to DepositTx + bump op-alloy types

* bump

* fix: configure_tx_env

* fix: UiFmt

* fix: vb

* fix: common-fmt tests

* nit

* fix: sig encoding

* fix: process deposit tx in transaction_build

* fix: common-fmt tests

* fix

* Update deny.toml

Co-authored-by: zerosnacks <[email protected]>

* fixes

* fix: use alloy impls for conversions

* nit

* fix: transaction_build

* nit

* fix: eip155 check and rm anvil core utils

* clippy

* nits

* fix

* nit

* fix: impl UIfmt for TxEnvelope and AnyTxEnvelope

* make header in pretty_block_basics exhaustive

* clippy

* fix

* fix: txpool_content

* fix

* fix

* fix overriding hashes

* fix

---------

Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: grandizzy <[email protected]>

* feat(`anvil`): `--cache-path` (#9343)

* feat(`anvil`): --cache-path

* nits

* test

* nit

* run with tempdir

* nit

* chore: rm flaky cache-path test (#9372)

* feat: add global -j, --threads (#9367)

* feat: add global -j, --threads

* Update crates/cli/src/opts/global.rs

* fix tests after comment update

---------

Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: zerosnacks <[email protected]>

* chore: fix build for upstream-fef2098 (#754)

* deps: update zksync forks

chore: remove obsolete alloy patches

* fix: missing closing delimiter

* fix(eip712): implement missing `Transaction` fns

* fix: outdated import

* fix: respect borrowing rules

* fix(verify): specify "default" as comp profile

* refactor(eip712): use `PrimitiveSignature`

deps: remove unused `alloy_signer`

* fix(script): swapped `simulate` args

* chore: note over clippy lint

* fix(create:zk): pass `ArtifactId`

refactor(create:zk): `remove_zk_contract` more similar to upstream

* fix(eip712): retrieve proper v value

* fix(create:zk): use source path

* feat(ci): run ci on upstream merge PRs

* chore: fmt

* chore: switch to `sh_println`

* chore: fmt

* fix(test:zk): avoid initializing empty project

* feat(ci): switch to hosted runner

* fix(ci:zk): setup git config

* fix(ci): run test on all "upstream" branches

* fix(build): move empty files check in paths ext

* fix(ci): pin to ubuntu-22.04

* chore: revert inconsistent change

* chore: comment why `ecx_inner`

* feat: upgrade to alloy-zksync 0.6.1

fix(cast:send): use ETH wallet for eth provider

* chore: deprecation lints

* fix: lints

* chore: update `Vm.sol`

* fix(ci): hosted runner for crate-checks job

* chore(ci): ignore `net2` advisory

---------

Co-authored-by: Yu Zeng <[email protected]>
Co-authored-by: grandizzy <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: Yash Atreya <[email protected]>
Co-authored-by: m4rio <[email protected]>
Co-authored-by: Iain Nash <[email protected]>
Co-authored-by: feynman <[email protected]>
Co-authored-by: Your Name <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mattsse <[email protected]>
Co-authored-by: Paweł Urbanek <[email protected]>
Co-authored-by: Valentin B. <[email protected]>
Co-authored-by: Arsenii Kulikov <[email protected]>
Co-authored-by: James <[email protected]>
Co-authored-by: mgiagante <[email protected]>
Co-authored-by: grandizzy <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: Max <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: mgiagante <[email protected]>
Co-authored-by: Dmitry <[email protected]>
Co-authored-by: Evan Chipman <[email protected]>
  • Loading branch information
24 people authored Dec 9, 2024
1 parent 2a54657 commit 85f68fd
Show file tree
Hide file tree
Showing 197 changed files with 6,164 additions and 2,907 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nextest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,6 @@ jobs:
- name: Test
env:
SVM_TARGET_PLATFORM: ${{ matrix.svm_target_platform }}
HTTP_ARCHIVE_URLS: ${{ secrets.HTTP_ARCHIVE_URLS }}
WS_ARCHIVE_URLS: ${{ secrets.WS_ARCHIVE_URLS }}
run: cargo nextest run ${{ matrix.flags }}
24 changes: 15 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- "*upstream*"
pull_request:
branches:
- main
- "*upstream*"

concurrency:
cancel-in-progress: true
Expand All @@ -24,7 +26,7 @@ jobs:
secrets: inherit

doctest:
runs-on: ubuntu-22.04-github-hosted-16core
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +41,7 @@ jobs:

clippy:
name: clippy
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -52,7 +54,7 @@ jobs:
RUSTFLAGS: -Dwarnings

rustfmt:
runs-on: ubuntu-22.04-github-hosted-16core
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -63,7 +65,7 @@ jobs:
- run: cargo fmt --all --check

forge-fmt:
runs-on: ubuntu-22.04-github-hosted-16core
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -78,7 +80,7 @@ jobs:
run: ./.github/scripts/format.sh --check

codespell:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand All @@ -87,6 +89,7 @@ jobs:
skip: "*.json"

crate-checks:
# ubuntu-22.04 runs out of disk space
runs-on: ubuntu-22.04-github-hosted-16core
timeout-minutes: 60
steps:
Expand All @@ -102,7 +105,7 @@ jobs:
run: cargo hack check

zk-cargo-test:
runs-on: ubuntu-22.04-github-hosted-16core
runs-on: ubuntu-22.04

steps:
- name: Checkout code
Expand All @@ -128,18 +131,21 @@ jobs:
logFilePath: era_test_node.log
target: x86_64-unknown-linux-gnu
releaseTag: v0.1.0-alpha.29

- name: Setup Git config
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
git config --global url."https://github.com/".insteadOf "[email protected]:"
- name: Run zk tests
env:
RUST_BACKTRACE: full
TEST_MAINNET_URL: http://localhost:8011
run: |
git config --global user.name "test-runner"
ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~zk)'
check-ci-install:
name: CI install
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install foundry-zksync
Expand Down
Loading

0 comments on commit 85f68fd

Please sign in to comment.