forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Resolve CI and test errors #34
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d4d7ccd
Remove depguard from golangci-lint
drklee3 1a6d9d0
Remove cachix/cachix-action step in integration_tests job
drklee3 fe97798
Remove cachix/cachix-action step from gomod2nix
drklee3 603f67c
Remove cachix/cachix-action step from python-lint
drklee3 afa610b
Remove cache upload job
drklee3 f8323d9
Trigger ci tests
drklee3 461ce01
Use go 1.20 for iavl v1
drklee3 ad77ef4
Use go 1.20 in ci
drklee3 340cfa7
Fix yaml parsing 1.20
drklee3 51061ce
Resolve lint issues
drklee3 2e95a62
Update ibc-go to v6.1.1, [email protected]
drklee3 72f3cb9
Exclude .pb.go from lll linter
drklee3 189dfa9
Resolve unused lint errors
drklee3 a8f1f6b
Add get-diff-action step to integration tests
drklee3 86e098f
Update integration_tests nix setup
drklee3 1fd7052
Add nix-community/cache-nix-action for integration tests
drklee3 793a176
test: Fix tracing tests mock error
drklee3 58fc906
ci: Remove codecov upload
drklee3 3c84f46
Add goleveldb replace directive to fix version not found errors in te…
drklee3 ccf630b
Use json string instead of byte array for tests data clarity
drklee3 66670f0
Ignore lint lll error on server.FlagAPISwagger
drklee3 bc969af
Resolve lint errors
drklee3 c52671d
fix: tx trace gasUsed camel case instead of snake
drklee3 a4f8db9
Prevent modifying trace response if missing fail or non gas error
drklee3 c5df89f
Add note for tracing test
drklee3 6874996
Revert tracing changes with minimum fix
drklee3 9c5e59b
gofumpt
drklee3 9564d88
test: Update test_pruned_node expected error integration test
drklee3 8e787bb
Handle connection refused error in integration test
drklee3 2730283
Restore jose2go version in gomod2nix.toml
drklee3 1494668
Resolve flake8 lint errors on integration tests
drklee3 5fe38f6
Add -I nixpkgs=./nix to integration Makefile
drklee3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.20' | ||
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.20' | ||
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: | | ||
|
@@ -74,9 +71,6 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ethermint | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
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.20" | ||
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.20" | ||
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.20" | ||
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.20" | ||
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
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / gosec
Returned error is not propagated up the stack. Warning