From 45bebd9c50ee98e356c2aef852511c39ae1176da Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 12:27:19 +0800 Subject: [PATCH 01/15] Update CI --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- go.sum | 8 -------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7b8364..dba7d30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: name: Build Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' @@ -20,6 +20,26 @@ jobs: with: go-version: '1.22' + - name: Cache cargo registry + uses: actions/cache@v2 + with: + path: juno/vm/rust/target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') } + - name: Try make run: | make build + + testing: + name: Build Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: 'reddio-com/itachi-testing' + submodules: 'recursive' + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt \ No newline at end of file diff --git a/go.sum b/go.sum index 7b7b2fc..ebc775a 100644 --- a/go.sum +++ b/go.sum @@ -713,14 +713,6 @@ github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= -github.com/yu-org/yu v0.0.0-20240304032425-96f322155c80 h1:kjLnfYWcbxz1r6zSbAZvaaPPvnqhMWOpM6P4mXBbaZM= -github.com/yu-org/yu v0.0.0-20240304032425-96f322155c80/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= -github.com/yu-org/yu v0.0.0-20240313145627-f19c30d5b5ba h1:28BKXCi77oSEGc3gxkHxA0KvEo+PlArOWuqkxquXUDw= -github.com/yu-org/yu v0.0.0-20240313145627-f19c30d5b5ba/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= -github.com/yu-org/yu v0.0.0-20240315043453-1f8f3092c6fd h1:Bb4n+5jIc+WsJvk7BntTR5wIu01fHe+BasAFUSbz8eY= -github.com/yu-org/yu v0.0.0-20240315043453-1f8f3092c6fd/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= -github.com/yu-org/yu v0.0.0-20240320054640-156a6118f08b h1:eqXeQDuE26N/BGkPbgtfdhVs1Y6iO/beedAPy49rOgk= -github.com/yu-org/yu v0.0.0-20240320054640-156a6118f08b/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999 h1:S+phH6kSI3Opbhr2AvJMu38SAbUqOlV3ayI0U9Ak54o= github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= From e501eb560e7b2868aae2b04cafb33f3afebf17ef Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 12:28:53 +0800 Subject: [PATCH 02/15] Update CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dba7d30..8c414d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: uses: actions/cache@v2 with: path: juno/vm/rust/target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') } + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') }} - name: Try make run: | From 548f7e395ddf56593ac922fa78caee866c54ed3e Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 12:36:17 +0800 Subject: [PATCH 03/15] Update CI --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c414d3..8615578 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,13 +31,14 @@ jobs: make build testing: - name: Build Test + name: Integration Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: repository: 'reddio-com/itachi-testing' submodules: 'recursive' + token: ${{ secrets.REDDIO_PAT }} - name: Install Python dependencies run: | From 63d426a12e49f6f5bdfe25d0fcfa1f7873234b93 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 12:43:26 +0800 Subject: [PATCH 04/15] Update CI --- .github/workflows/ci.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8615578..3591b76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,9 +29,18 @@ jobs: - name: Try make run: | make build + + - uses: actions/upload-artifact@v4 + with: + name: itachi-${{ github.sha }} + path: | + itachi + conf + retention-days: 1 testing: name: Integration Test + depends-on: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -43,4 +52,16 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt \ No newline at end of file + pip install -r requirements.txt + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: itachi-${{ github.sha }} + path: | + itachi + conf + + - name: Run tests + run: | + pwd && ls \ No newline at end of file From aa83c0f03abb652f1215db3d79942d06b17c4053 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 13:29:57 +0800 Subject: [PATCH 05/15] Update CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3591b76..105fdd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: testing: name: Integration Test - depends-on: build + needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 0baaa5902e81b809eb3a85f3371bc915e24a2a36 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 13:35:09 +0800 Subject: [PATCH 06/15] Cache more --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 105fdd7..77c711e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,9 +21,16 @@ jobs: go-version: '1.22' - name: Cache cargo registry - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: juno/vm/rust/target + path: | + juno/vm/rust/target + juno/core/rust/target + juno/starknet/rust/target + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') }} - name: Try make From 229c816b04d598a704217a9f414bdf59c8759db2 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:03:41 +0800 Subject: [PATCH 07/15] Update CI --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77c711e..f79cb03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,12 @@ jobs: itachi conf + - name: Run tests + run: | + pwd && ls + # Run itachi in the background + ./itachi & + - name: Run tests run: | pwd && ls \ No newline at end of file From 47036ffbb945affc24c3ce2a6f8eb6b86660fd68 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:11:34 +0800 Subject: [PATCH 08/15] Update CI --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f79cb03..5cd8240 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,16 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') }} + + - name: Cache go mods + uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Try make run: | @@ -71,7 +81,7 @@ jobs: - name: Run tests run: | - pwd && ls + pwd && ls -lh && file ./itachi # Run itachi in the background ./itachi & From cb0946741b69fa596cbaddf857341e28d30e60e5 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:28:22 +0800 Subject: [PATCH 09/15] Disable go cache --- .github/workflows/ci.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cd8240..c3de7c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,16 +32,6 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') }} - - - name: Cache go mods - uses: actions/cache@v3 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - name: Try make run: | From 18ef2f443db1fe63ff63281a1d859a27d83c1029 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:38:18 +0800 Subject: [PATCH 10/15] Disable go cache --- .github/workflows/ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3de7c8..9ec7881 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,10 +71,5 @@ jobs: - name: Run tests run: | - pwd && ls -lh && file ./itachi + pwd && ls -lh && ls ./itachi # Run itachi in the background - ./itachi & - - - name: Run tests - run: | - pwd && ls \ No newline at end of file From e6154fc71a62d1c65c97c3accca858b20718be84 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:43:18 +0800 Subject: [PATCH 11/15] Disable go cache --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ec7881..1553876 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,6 @@ jobs: name: itachi-${{ github.sha }} path: | itachi - conf retention-days: 1 testing: From 80ec88c043ea8989378b35b093503e373860e5f4 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:49:40 +0800 Subject: [PATCH 12/15] Disable go cache --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1553876..af23ebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Try make run: | - make build + make build && ls -lh - uses: actions/upload-artifact@v4 with: From d0a0265ced22bcc35d6b5011ed41400f19e394b7 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 14:57:03 +0800 Subject: [PATCH 13/15] Disable go cache --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af23ebe..7ade62d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: with: name: itachi-${{ github.sha }} path: | - itachi + ./itachi retention-days: 1 testing: @@ -64,9 +64,6 @@ jobs: uses: actions/download-artifact@v4 with: name: itachi-${{ github.sha }} - path: | - itachi - conf - name: Run tests run: | From 9f1ce03262c5ab225adb72331c9ec0a83c969868 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 15:03:01 +0800 Subject: [PATCH 14/15] Disable go cache --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ade62d..4aa4544 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,3 +69,9 @@ jobs: run: | pwd && ls -lh && ls ./itachi # Run itachi in the background + ./itachi & + + - name: Run tests + run: | + cd python + python3 transfer_100_eth.py \ No newline at end of file From 94f3696f93e9c004b0bebc83ff65d9ac82e705e0 Mon Sep 17 00:00:00 2001 From: nordschesasa Date: Sun, 7 Apr 2024 15:08:24 +0800 Subject: [PATCH 15/15] Disable go cache --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4aa4544..49eb654 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,7 @@ jobs: name: itachi-${{ github.sha }} path: | ./itachi + ./conf retention-days: 1 testing: @@ -67,7 +68,7 @@ jobs: - name: Run tests run: | - pwd && ls -lh && ls ./itachi + pwd && ls -lh && ls ./itachi && chmod +x ./itachi # Run itachi in the background ./itachi &