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
Fix CI jobs #43
Merged
nddeluca
merged 8 commits into
kava/release/v0.26.x
from
yevhenii/ci-improvements-nix-v2
Apr 11, 2024
Merged
Fix CI jobs #43
nddeluca
merged 8 commits into
kava/release/v0.26.x
from
yevhenii/ci-improvements-nix-v2
Apr 11, 2024
Conversation
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
* 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
This was referenced Apr 1, 2024
evgeniy-scherbina
force-pushed
the
yevhenii/ci-improvements-nix-v2
branch
from
April 8, 2024 16:56
1a90160
to
088661b
Compare
evgeniy-scherbina
force-pushed
the
yevhenii/ci-improvements-nix-v2
branch
from
April 8, 2024 21:05
7319f9d
to
8c395ac
Compare
evgeniy-scherbina
force-pushed
the
yevhenii/ci-improvements-nix-v2
branch
from
April 9, 2024 15:46
e23cd48
to
5a17ea8
Compare
drklee3
reviewed
Apr 9, 2024
drklee3
approved these changes
Apr 10, 2024
nddeluca
approved these changes
Apr 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, changes look good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes:
genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator)
instead ofgenutil.AppModuleBasic{}
govKeeper.SetLegacyRouter(govRouter)
baseapp.SetChainID(chainID)
go1.21.6
->go1.21.0
to avoid nix-related errorsgomod2nix.toml
nix-shell -I nixpkgs=./nix ./tests/integration_tests/shell.nix
gomod2nix generate
(inside nix-shell)panic: error generating pkgs: go.mod:5: unknown directive: toolchain
;testenv.nix
ignores version ofpoetry2nix
which specified insources.json
, so I had to explicitly pass it totestenv.nix
:(_: pkgs: { test-env = pkgs.callPackage ./testenv.nix { poetry2nix = import sources.poetry2nix {}; }; })
buildGo120Module -> buildGo121Module
sources.json
:tests/integration_tests/configs/upgrade-test-package.nix
which affectstest_cosmovisor_upgrade
tests/integration_tests/test_grpc_only.py
, partially copy-pasted from cronos's ethermint.tests/integration_tests/test_upgrade.py
NOTE
:Steps to reproduce regenerating of
gomod2nix.toml
:flake.nix
in root of ethermint, source code: How to use this with go 1.21? nix-community/gomod2nix#134 (comment)nix develop --extra-experimental-features nix-command --extra-experimental-features flakes
gomod2nix
inside develop shellnix flake
UPD
:gomod2nix.toml
was resolved