From c37aab8b695481e459b7c2072c76fed29ecf1743 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 26 Sep 2023 20:12:19 -0500 Subject: [PATCH 1/5] Run compliance tests. --- .gitea/workflows/test.yml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 3b40968..245d90e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -89,3 +89,44 @@ jobs: pip install pytest pip install -r requirements.txt pytest -v -k test_basic_db + + compliance-test: + name: Run compliance tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + path: ./plugeth-statediff + - uses: actions/checkout@v3 + with: + repository: cerc-io/eth-statediff-compliance + ref: telackey/ci + path: ./eth-statediff-compliance + token: ${{ secrets.CICD_REPO_TOKEN }} + - uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' + check-latest: true + - name: Set up Gitea access token + env: + TOKEN: ${{ secrets.CICD_REPO_TOKEN }} + run: | + git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/ + - name: Update go.mod for dumpdiff-geth + working-directory: ./eth-statediff-compliance/ + run: ./scripts/update-mod.sh ../plugeth-statediff dumpdiff-geth/ + - name: Update go.mod for dumpdiff-plugeth + working-directory: ./eth-statediff-compliance/ + run: ./scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth/ + - name: Update go.mod for dumpdiff-plugeth-parallel + working-directory: ./eth-statediff-compliance/ + run: ./scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth-parallel/ + - name: Build tools + working-directory: ./eth-statediff-compliance/ + run: make all + - name: Compare output of geth and plugeth + working-directory: ./eth-statediff-compliance/ + run: ./scripts/compare-diffs.sh geth plugeth + - name: Compare output of geth and plugeth-parallel + working-directory: ./eth-statediff-compliance/ + run: ./scripts/compare-diffs.sh geth plugeth-parallel From dfa0660317e21181847f5b3bfe51de024b65beb9 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 26 Sep 2023 20:16:54 -0500 Subject: [PATCH 2/5] Tweak path --- .gitea/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 245d90e..eafef8c 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -105,7 +105,7 @@ jobs: token: ${{ secrets.CICD_REPO_TOKEN }} - uses: actions/setup-go@v4 with: - go-version-file: 'go.mod' + go-version-file: './eth-statediff-compliance/go.mod' check-latest: true - name: Set up Gitea access token env: From c8e7acaacd34717bb0233ad51c6d713be0e2cb24 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 26 Sep 2023 20:24:23 -0500 Subject: [PATCH 3/5] jq --- .gitea/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index eafef8c..5c068e1 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -107,6 +107,8 @@ jobs: with: go-version-file: './eth-statediff-compliance/go.mod' check-latest: true + - name: Install jq + run: apt-get update && apt-get install -yq jq - name: Set up Gitea access token env: TOKEN: ${{ secrets.CICD_REPO_TOKEN }} From 101654f30eff32fb3d24e8ef3478f0ce3b12d1ef Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 27 Sep 2023 15:50:17 +0800 Subject: [PATCH 4/5] Rm branch spec --- .gitea/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 5c068e1..dc1c606 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -100,7 +100,6 @@ jobs: - uses: actions/checkout@v3 with: repository: cerc-io/eth-statediff-compliance - ref: telackey/ci path: ./eth-statediff-compliance token: ${{ secrets.CICD_REPO_TOKEN }} - uses: actions/setup-go@v4 @@ -114,6 +113,7 @@ jobs: TOKEN: ${{ secrets.CICD_REPO_TOKEN }} run: | git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/ + - name: Update go.mod for dumpdiff-geth working-directory: ./eth-statediff-compliance/ run: ./scripts/update-mod.sh ../plugeth-statediff dumpdiff-geth/ From 935c2ce4b5f7cc9c5b349efbab7ae2ae729581ce Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 27 Sep 2023 15:54:19 +0800 Subject: [PATCH 5/5] Use v0.1.0 --- .gitea/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index dc1c606..dcd898a 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -100,6 +100,7 @@ jobs: - uses: actions/checkout@v3 with: repository: cerc-io/eth-statediff-compliance + ref: v0.1.0 path: ./eth-statediff-compliance token: ${{ secrets.CICD_REPO_TOKEN }} - uses: actions/setup-go@v4