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 <huang@crypto.com> * Update tests/integration_tests/test_priority.py Co-authored-by: yihuang <huang@crypto.com> Co-authored-by: yihuang <huang@crypto.com> Co-authored-by: Adi Saravanan <59209660+adisaran64@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> * 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 <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Adi Saravanan <59209660+adisaran64@users.noreply.github.com> Co-authored-by: Freddy Caceres <facs95@gmail.com> * 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 <31522760+fedekunze@users.noreply.github.com> * fix resolve --------- Co-authored-by: yihuang <huang@crypto.com> Co-authored-by: Adi Saravanan <59209660+adisaran64@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Freddy Caceres <facs95@gmail.com>
- 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
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.