forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Resolve CI and test errors (#34) * Remove depguard from golangci-lint * Remove cachix/cachix-action step in integration_tests job * Remove cachix/cachix-action step from gomod2nix * Remove cachix/cachix-action step from python-lint * Remove cache upload job * Trigger ci tests * Use go 1.20 for iavl v1 * Use go 1.20 in ci * Fix yaml parsing 1.20 * Resolve lint issues * Update ibc-go to v6.1.1, [email protected] Matches kava, suppresses vuln errors * Exclude .pb.go from lll linter * Resolve unused lint errors * Add get-diff-action step to integration tests * Update integration_tests nix setup * Add nix-community/cache-nix-action for integration tests * test: Fix tracing tests mock error * ci: Remove codecov upload * Add goleveldb replace directive to fix version not found errors in test-rpc * Use json string instead of byte array for tests data clarity * Ignore lint lll error on server.FlagAPISwagger * Resolve lint errors * fix: tx trace gasUsed camel case instead of snake * Prevent modifying trace response if missing fail or non gas error * Add note for tracing test * Revert tracing changes with minimum fix Avoid large diff and keep it the same for now * gofumpt * test: Update test_pruned_node expected error integration test * Handle connection refused error in integration test * Restore jose2go version in gomod2nix.toml * Resolve flake8 lint errors on integration tests * Add -I nixpkgs=./nix to integration Makefile * Fix integration-tests CI job * Update ethermint dependency in upgrade-test-package.nix * Fix golang linter errors * Fix python linter errors * Fix gomod2nix CI job * Temporary disable Dependency Review job --------- Co-authored-by: drklee3 <[email protected]>
- Loading branch information
1 parent
2939a4d
commit 81c3333
Showing
64 changed files
with
1,895 additions
and
1,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
go-version: '1.21' | ||
check-latest: true | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
# Required: setup-go, for all versions v3.0.0+ of golangci-lint | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
go-version: '1.21' | ||
check-latest: true | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
|
@@ -58,9 +58,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ethermint | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -72,11 +69,13 @@ jobs: | |
name: Check gomod2nix.toml file is up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/cachix-action@v12 | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v26 | ||
with: | ||
name: ethermint | ||
nix_path: nixpkgs=channel:nixos-23.11 | ||
- uses: cachix/cachix-action@v14 | ||
with: | ||
name: crypto-ethermint | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -85,4 +84,5 @@ jobs: | |
run: | | ||
nix run -f ./nix gomod2nix | ||
git diff --no-ext-diff --exit-code | ||
if: env.GIT_DIFF | ||
# Run gomod2nix job every time, until we're sure it's stable | ||
# if: env.GIT_DIFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
go-version: "1.21" | ||
check-latest: true | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
|
@@ -34,20 +34,15 @@ jobs: | |
run: | | ||
make test-unit-cover | ||
if: env.GIT_DIFF | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.txt | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
if: env.GIT_DIFF | ||
# Coverage at ./coverage.txt is not used for now | ||
|
||
test-importer: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
go-version: "1.21" | ||
check-latest: true | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
|
@@ -68,7 +63,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
go-version: "1.21" | ||
check-latest: true | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
|
@@ -87,23 +82,33 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ethermint | ||
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.sol | ||
**/**.go | ||
go.mod | ||
go.sum | ||
tests/integration_tests/** | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.21" | ||
check-latest: true | ||
|
||
- uses: nixbuild/nix-quick-install-action@v26 | ||
- name: Restore and cache Nix store | ||
uses: nix-community/cache-nix-action@v5 | ||
with: | ||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }} | ||
# restore a cache by this prefix | ||
restore-prefixes-first-match: nix-${{ runner.os }}- | ||
# collect garbage until Nix store size (in bytes) is at most this number | ||
# before trying to save a new cache | ||
gc-max-store-size-linux: 1073741824 | ||
|
||
- name: Run integration tests | ||
run: make run-integration-tests | ||
if: env.GIT_DIFF | ||
- name: 'Tar debug files' | ||
- name: "Tar debug files" | ||
if: failure() | ||
run: tar cfz debug_files.tar.gz -C /tmp/pytest-of-runner . | ||
- uses: actions/upload-artifact@v3 | ||
|
@@ -112,20 +117,3 @@ jobs: | |
name: debug-files | ||
path: debug_files.tar.gz | ||
if-no-files-found: ignore | ||
|
||
upload-cache: | ||
if: github.event_name == 'push' | ||
needs: ["integration_tests"] | ||
strategy: | ||
matrix: | ||
os: [macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ethermint | ||
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | ||
- name: 'instantiate integration test env' | ||
run: nix-store -r "$(nix-instantiate tests/integration_tests/shell.nix)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.