Skip to content
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
merged 8 commits into from
Apr 11, 2024
Merged

Conversation

evgeniy-scherbina
Copy link

@evgeniy-scherbina evgeniy-scherbina commented Apr 1, 2024

Changes:

  • update go version to 1.21 in Github Actions jobs
  • fix v47 bug:
    • using genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator) instead of genutil.AppModuleBasic{}
  • set legacy router for gov module:
    • govKeeper.SetLegacyRouter(govRouter)
  • Set chainID:
    • baseapp.SetChainID(chainID)
  • Downgrade golang in go.mod:
    • go1.21.6 -> go1.21.0 to avoid nix-related errors
  • Regenerate gomod2nix.toml
    • it fails to do it in regular way:
      • nix-shell -I nixpkgs=./nix ./tests/integration_tests/shell.nix
      • gomod2nix generate (inside nix-shell)
      • error: panic: error generating pkgs: go.mod:5: unknown directive: toolchain;
      • gomod2nix doesn't work with go1.21 out of the box - need some additional investigations
    • so I used alternative approach from here: How to use this with go 1.21? nix-community/gomod2nix#134 (comment)
    • but it worth spending time to fix error above
  • looks like testenv.nix ignores version of poetry2nix which specified in sources.json, so I had to explicitly pass it to testenv.nix:
    • (_: pkgs: { test-env = pkgs.callPackage ./testenv.nix { poetry2nix = import sources.poetry2nix {}; }; })
  • change buildGo120Module -> buildGo121Module
  • Updated sources.json:
  • Change ethermint version in tests/integration_tests/configs/upgrade-test-package.nix which affects test_cosmovisor_upgrade
  • Fix tests/integration_tests/test_grpc_only.py, partially copy-pasted from cronos's ethermint.
  • Fix tests/integration_tests/test_upgrade.py

NOTE:
Steps to reproduce regenerating of gomod2nix.toml:

UPD:

  • Issue with regeneration of gomod2nix.toml was resolved

* 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
@evgeniy-scherbina evgeniy-scherbina force-pushed the yevhenii/ci-improvements-nix-v2 branch from 7319f9d to 8c395ac Compare April 8, 2024 21:05
@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review April 8, 2024 21:05
@evgeniy-scherbina evgeniy-scherbina force-pushed the yevhenii/ci-improvements-nix-v2 branch from e23cd48 to 5a17ea8 Compare April 9, 2024 15:46
@evgeniy-scherbina evgeniy-scherbina changed the title Nix CI Improvements V2 Fix CI jobs Apr 9, 2024
.github/workflows/lint.yml Outdated Show resolved Hide resolved
tests/integration_tests/test_grpc_only.py Show resolved Hide resolved
Copy link
Member

@nddeluca nddeluca left a 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

@nddeluca nddeluca merged commit 81c3333 into kava/release/v0.26.x Apr 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants