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

feat: Fix integration test #82

Closed

Conversation

toni-calvin
Copy link

@toni-calvin toni-calvin commented Jan 30, 2024

In roll-up mode:

image

In validium mode:

image

mationorato and others added 5 commits January 26, 2024 19:04
- Needs to fix errors in tests related to the new Generic Data Type
* Fix system tests

* Fix contracts tests for validium mode

* Update comment

* Fix custom-erc20-bridge test

* Revert "Fix custom-erc20-bridge test"

This reverts commit f2e9978.

* Fix web3 test

* Add check validium mode in system test

* Format
toni-calvin and others added 21 commits January 30, 2024 17:26
…ods from L1BatchWithMetadata as they're now part of the L1BatchCommitter trait and utils in the case of construct_pubdata
…mmitOperation construction and DatasizeCriterion::last_l1_batch_to_publish usage
…_publish parameter (only used by DataSizeCriterion)
…ter depending on the VALIDIUM_MODE env value
…class/zksync-era into feat_validium_pubdata_abstraction
* Fix System test for rollup mode

* Update core/tests/ts-integration/tests/system.test.ts senderNonce

Co-authored-by: Antonio Calvín García <[email protected]>

* Update core/tests/ts-integration/tests/system.test.ts nonce

Co-authored-by: Antonio Calvín García <[email protected]>

---------

Co-authored-by: Antonio Calvín García <[email protected]>
ilitteri and others added 4 commits February 3, 2024 00:15
* Fix eth_sender value

* Restore original config file and omit commented values

* Format
@ilitteri ilitteri self-requested a review February 5, 2024 15:51
Copy link
Collaborator

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job refactoring the code! One more thing that I missed last week and we can merge

core/tests/ts-integration/src/helpers.ts Show resolved Hide resolved
infrastructure/zk/src/init.ts Outdated Show resolved Hide resolved
etc/env/base/eth_sender.toml Outdated Show resolved Hide resolved
toni-calvin and others added 3 commits February 5, 2024 18:15
* Remove web3 error

* Optimize updateConfigFile

* Format

* update compute_overhead constants in chain.toml

---------

Co-authored-by: toni-calvin <[email protected]>
@jordibonet-lambdaclass
Copy link

We have changed the COMPUTE_OVERHEAD to be changeable because it was not passing the tests in Rollup, it was one of the first fixes we made (it fixes a bug in the web3 suite, from the gas difference).

We have also optimized the "updateConfigFile()" function to be of complexity O(n+m) instead of O(m·n), where "m" is the number of parameters and "n" is the number of lines in the configuration file.

@toni-calvin toni-calvin linked an issue Feb 7, 2024 that may be closed by this pull request
Oppen pushed a commit that referenced this pull request Feb 9, 2024
Oppen pushed a commit that referenced this pull request Feb 9, 2024
* System contracts test preprocessing mode

* Mock dependencies, event writer asm contract test, refactoring

* lint fix

* Small refactoring

* Change approach to use the test node

* Add docs, comments

* lint readme

* Fix hashes

* Regenerate yarn.lock to fix lints

* lint:fix

* Fix lints

* Restore lost tests

* Fix lints

* Restore yarn.lock from dev

* Update caches in workflows

* Try to disable lint cache

* Restore lint cache

* Cache contracts-preprocessed

* try to debug lint

* Regenerate yarn.lock from dev

* Restore correct deps

* Update lock

* Proposed improvements/fixes

* Use fast-glob instead glob

* Update bootloader_test artifact path

* Proposed improvements, update hashes

* Implement some fixes and improvements

* Fix lints

* Update zksync-era in bootloader tests

* Fix imports

Signed-off-by: Danil <[email protected]>

* Update contracts/test-contracts/MockContract.sol

Co-authored-by: Vlad Bochok <[email protected]>

* Fix test infra

* data -> input mock contract

* Update SC hashes

* Update zksync-era in bootloader/test_infra

* Update again

---------

Signed-off-by: Danil <[email protected]>
Co-authored-by: Danil <[email protected]>
Co-authored-by: Vlad Bochok <[email protected]>
@ilitteri ilitteri closed this Feb 22, 2024
@ilitteri ilitteri deleted the fix-integration-test branch February 22, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix server integration tests
6 participants