forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): test related backport (#214)
* nix-action fail in CI * fix: build test on mac by updating to python3.10 (evmos#1437) * fix: unstable tx_priority test (evmos#1440) * fix unstable tx_priority test * Update tests/integration_tests/test_priority.py Co-authored-by: yihuang <[email protected]> * Update tests/integration_tests/test_priority.py Co-authored-by: yihuang <[email protected]> Co-authored-by: yihuang <[email protected]> Co-authored-by: Adi Saravanan <[email protected]> Co-authored-by: Federico Kunze Küllmer <[email protected]> * fix: enable `fixIssue172` flag for non-deterministic keyring test (evmos#1447) * enable fixIssue172 flag for test for more info, https://github.com/btcsuite/btcutil/pull/182/files * fix import * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> Co-authored-by: Adi Saravanan <[email protected]> Co-authored-by: Freddy Caceres <[email protected]> * fix(tests): avoid error when run benchmark (evmos#1573) * avoid error when run benchmark * fix rest benchmark test Co-authored-by: Federico Kunze Küllmer <[email protected]> * fix resolve --------- Co-authored-by: yihuang <[email protected]> Co-authored-by: Adi Saravanan <[email protected]> Co-authored-by: Federico Kunze Küllmer <[email protected]> Co-authored-by: Freddy Caceres <[email protected]>
- Loading branch information
1 parent
837d0b0
commit 9b24b9b
Showing
17 changed files
with
989 additions
and
682 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 |
---|---|---|
|
@@ -57,7 +57,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/install-nix-action@v19 | ||
with: | ||
# pin to nix-2.13 to workaround compability issue of 2.14, | ||
# see: https://github.com/cachix/install-nix-action/issues/161 | ||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ethermint | ||
|
@@ -73,7 +77,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v18 | ||
- uses: cachix/install-nix-action@v19 | ||
with: | ||
# pin to nix-2.13 to workaround compability issue of 2.14, | ||
# see: https://github.com/cachix/install-nix-action/issues/161 | ||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ethermint | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,38 @@ | ||
{ pkgs }: | ||
pkgs.poetry2nix.mkPoetryEnv { | ||
{ poetry2nix, lib, python310 }: | ||
poetry2nix.mkPoetryEnv { | ||
projectDir = ../tests/integration_tests; | ||
python = pkgs.python39; | ||
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: { | ||
eth-bloom = super.eth-bloom.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
}; | ||
|
||
pystarport = super.pystarport.overridePythonAttrs ( | ||
old: { | ||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.poetry ]; | ||
} | ||
); | ||
}); | ||
python = python310; | ||
overrides = poetry2nix.overrides.withDefaults (lib.composeManyExtensions [ | ||
(self: super: | ||
let | ||
buildSystems = { | ||
eth-bloom = [ "setuptools" ]; | ||
pystarport = [ "poetry" ]; | ||
durations = [ "setuptools" ]; | ||
multitail2 = [ "setuptools" ]; | ||
pytest-github-actions-annotate-failures = [ "setuptools" ]; | ||
flake8-black = [ "setuptools" ]; | ||
multiaddr = [ "setuptools" ]; | ||
}; | ||
in | ||
lib.mapAttrs | ||
(attr: systems: super.${attr}.overridePythonAttrs | ||
(old: { | ||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ map (a: self.${a}) systems; | ||
})) | ||
buildSystems | ||
) | ||
(self: super: { | ||
eth-bloom = super.eth-bloom.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
}; | ||
pyyaml-include = super.pyyaml-include.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace "setup()" "setup(version=\"1.3\")" | ||
''; | ||
}; | ||
}) | ||
]); | ||
} |
Oops, something went wrong.