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

test(katana): messaging e2e test #1925

Merged
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6a11b1d
-Runner creation
fabrobles92 May 4, 2024
1a5f775
L2 -> L1 messaging
fabrobles92 May 5, 2024
fd99511
clippy and fmt
fabrobles92 May 5, 2024
438dced
style
kariy May 6, 2024
bd2d71b
apply kari's cool formatting
kariy May 6, 2024
f7e830c
fmt
kariy May 6, 2024
4dcb1b7
Applying more change from Code review
fabrobles92 May 15, 2024
20fb000
tests
kariy May 18, 2024
ed2bae1
Merge remote-tracking branch 'origin/main' into katana/Messaging-Intr…
fabrobles92 May 20, 2024
fe95f29
Merge remote-tracking branch 'origin/main' into katana/Messaging-Intr…
fabrobles92 May 24, 2024
122fa28
Delete debug from Sol! and not used B256
fabrobles92 May 26, 2024
2990cf9
Merge remote-tracking branch 'origin/main' into katana/Messaging-Intr…
fabrobles92 May 27, 2024
d51cb51
Cleaning cargo.lock
fabrobles92 May 29, 2024
e1766f9
Merge remote-tracking branch 'origin/main' into katana/Messaging-Intr…
fabrobles92 May 29, 2024
758ce41
Add new option to Katnna Runner Config
fabrobles92 Jun 2, 2024
6548532
Merge remote-tracking branch 'origin/main' into katana/Messaging-Intr…
fabrobles92 Jun 3, 2024
1da68bb
consume message and check msg fee
kariy Jun 10, 2024
a1641ee
clippy and fmt
kariy Jun 10, 2024
866aa6a
- Use alloy Anvil Binding Object to spawn an instance
fabrobles92 Jun 11, 2024
22cfff7
Add step to install anvil in Dockerfile
fabrobles92 Jun 11, 2024
a72ed8a
Remove profile local from Anvil installation command
fabrobles92 Jun 11, 2024
0ce7e88
Merge remote-tracking branch 'origin/main' into katana/Messaging-Intr…
fabrobles92 Jun 12, 2024
5d691f4
Delete step to install anvil
fabrobles92 Jun 12, 2024
7f64bb8
Point CI to devcontainer that has Anvil installed
fabrobles92 Jun 12, 2024
7187343
Update Alloy
fabrobles92 Jun 13, 2024
dcdebce
merge main + fix L1HandlerTxHash
glihm Jun 22, 2024
f71f05f
merge main
glihm Jun 22, 2024
9e1ed0d
fix: fix test with pre-computed tx hash
glihm Jun 22, 2024
c6bcd1d
ci: increment cores for clippy
glihm Jun 22, 2024
6785aa7
ci: pre-build latest sozo to re-use in jobs
glihm Jun 22, 2024
b4d3f65
ci: fix missing dependency
glihm Jun 22, 2024
e368c33
ci: fix missing x permission
glihm Jun 22, 2024
5fd834e
ci: remove unused cached to save time
glihm Jun 22, 2024
cb0e662
restore lockfile
kariy Jun 24, 2024
dbfe622
revert l1 handler tx hash computation changes
kariy Jun 24, 2024
28db6b4
revert some changes
kariy Jun 24, 2024
d1df5f5
revert test case
kariy Jun 24, 2024
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
44 changes: 29 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: |
cargo build -r --bin katana
cargo build -r --bin sozo
mkdir -p bins
cp ./target/release/katana bins/
cp ./target/release/sozo bins/
- uses: actions/upload-artifact@v4
with:
name: katana-binary
name: dojo-bins
path: bins

test:
Expand All @@ -35,7 +37,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: actions/download-artifact@v4
with:
name: katana-binary
name: dojo-bins
path: /tmp/bins
- run: |
chmod +x /tmp/bins/katana
Expand Down Expand Up @@ -83,7 +85,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: katana-binary
name: dojo-bins
- run: |
chmod +x ./katana
./katana &
Expand All @@ -107,22 +109,34 @@ jobs:
scarb --manifest-path crates/dojo-core/Scarb.toml fmt --check

dojo-core-test:
needs: build
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:v0.7.2
steps:
- uses: actions/download-artifact@v4
with:
name: dojo-bins
path: /tmp/bins
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo run --bin sozo -- --manifest-path crates/dojo-core/Scarb.toml test
- run: |
chmod +x /tmp/bins/sozo
/tmp/bins/sozo --manifest-path crates/dojo-core/Scarb.toml test

dojo-spawn-and-move-example-test:
needs: build
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:v0.7.2
steps:
- uses: actions/download-artifact@v4
with:
name: dojo-bins
path: /tmp/bins
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo run --bin sozo -- --manifest-path examples/spawn-and-move/Scarb.toml test
- run: |
chmod +x /tmp/bins/sozo
/tmp/bins/sozo --manifest-path examples/spawn-and-move/Scarb.toml test

dojo-world-bindings-check:
runs-on: ubuntu-latest
Expand All @@ -134,7 +148,7 @@ jobs:
- run: cargo run --bin dojo-world-abigen -- --check

clippy:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-4-cores
container:
image: ghcr.io/dojoengine/dojo-dev:v0.7.2
steps:
Expand Down Expand Up @@ -162,17 +176,17 @@ jobs:
scripts/docs.sh

test-hurl:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
- uses: actions/download-artifact@v4
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: Swatinem/rust-cache@v2
name: dojo-bins
path: /tmp/bins
- uses: actions/checkout@v3
- run: |
curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl_3.0.0_amd64.deb
sudo apt update && sudo apt install ./hurl_3.0.0_amd64.deb
- run: |
cargo build --bin katana
nohup target/debug/katana --accounts 2 --disable-fee &
chmod +x /tmp/bins/katana
nohup /tmp/bins/katana --accounts 2 --disable-fee &
- run: hurl --test examples/rpc/**/*.hurl
Loading
Loading