Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Testing framework for bootloader #14

Merged
merged 30 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
66899a6
added missing file to mirror de404a390af2aa37ad (#12)
mm-zk Sep 5, 2023
4a7ada0
POC - works
mm-zk Sep 14, 2023
f819e3a
test infra creation
mm-zk Sep 15, 2023
6c4df46
splitting tracers to separate files
mm-zk Sep 15, 2023
e09a6eb
moved hooks to separate file
mm-zk Sep 15, 2023
c262337
larger refactor - nicer error messages
mm-zk Sep 15, 2023
aa9b543
syncing with newest version
mm-zk Sep 15, 2023
0960c75
more bootloader tests and small error fixes
mm-zk Sep 15, 2023
e9a1688
more tests
mm-zk Sep 18, 2023
4d9a466
Example with transaction
mm-zk Sep 18, 2023
16dfcba
small fixes
mm-zk Sep 18, 2023
f6a0542
small rename
mm-zk Sep 18, 2023
6d9cbf7
review and removed dependency on ZKSYNC_HOME
mm-zk Sep 20, 2023
b1145b0
cargo lock
mm-zk Sep 22, 2023
bc1aa86
updated to public zksync-era
mm-zk Sep 22, 2023
a334fb6
moved the placeholder so that the generated bootloader code doesn't c…
mm-zk Sep 23, 2023
67d9597
review
mm-zk Oct 6, 2023
417cf0e
Merge branch 'dev' into 0914_poc_bootloader_tests
mm-zk Oct 6, 2023
6d1145f
fix yarn lock
mm-zk Oct 6, 2023
53213be
compiles (currently depending on a local branch)
mm-zk Oct 6, 2023
5d039c4
remove vscode config
mm-zk Oct 6, 2023
4afde47
Merge branch 'dev' into 0914_poc_bootloader_tests
mm-zk Oct 6, 2023
f1efc15
added bootloader test to CI
mm-zk Oct 6, 2023
d18910b
changing CI
mm-zk Oct 6, 2023
999a4a2
experimenting
mm-zk Oct 6, 2023
8c8c98f
fix
mm-zk Oct 6, 2023
2c8ff54
Merge branch 'dev' into 0914_poc_bootloader_tests
mm-zk Oct 10, 2023
799a8e1
review feedback
mm-zk Oct 10, 2023
e5bcf36
ci typo
mm-zk Oct 10, 2023
3de8c4c
added bootloader build to cache
mm-zk Oct 10, 2023
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
35 changes: 34 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.18.0
cache: yarn

- name: Install dependencies
run: yarn
Expand All @@ -35,6 +34,7 @@ jobs:
typechain-types
contracts/artifacts
contracts/precompiles/artifacts
bootloader/build

test:
needs: [build]
Expand Down Expand Up @@ -67,6 +67,39 @@ jobs:
typechain-types
contracts/artifacts
contracts/precompiles/artifacts
bootloader/build


- name: Run tests
run: yarn test


test_bootloader:
needs: [build]
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-04-17

- name: Restore artifacts cache
uses: actions/cache/restore@v3
with:
fail-on-cache-miss: true
key: artifacts-${{ github.sha }}
path: |
artifacts-zk
cache-zk
typechain-types
contracts/artifacts
contracts/precompiles/artifacts
bootloader/build


- name: Run bootloader tests
run: "cd bootloader/test_infra && cargo run"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ typechain
build
yarn-debug.log*
yarn-error.log*

# Yarn files
.yarn/
.yarnrc.yml

.vscode
target/
2 changes: 2 additions & 0 deletions bootloader/bootloader.yul
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ object "Bootloader" {
}
object "Bootloader_deployed" {
code {
{{CODE_START_PLACEHOLDER}}
mm-zk marked this conversation as resolved.
Show resolved Hide resolved

////////////////////////////////////////////////////////////////////////////
// Function Declarations
////////////////////////////////////////////////////////////////////////////
Expand Down
Loading