-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bump [email protected]
#2065
Bump [email protected]
#2065
Conversation
- Include install and build scripts in the base image - Remove unwanted layers - Remove unwanted data files
Release `v0.13.0`
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip | ||
unzip protoc-3.19.4-linux-x86_64.zip -d protoc | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v24.3/protoc-24.3-linux-x86_64.zip | ||
unzip protoc-24.3-linux-x86_64.zip -d protoc |
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.
Bumped because of the protobuf bump
.PHONY: build-proto | ||
build-proto: | ||
@protoc -I $$INCLUDE \ | ||
--proto_path=packages/valory/connections/abci/protos/ \ | ||
--python_out=packages/valory/connections/abci/ \ | ||
packages/valory/connections/abci/protos/gogoproto/gogo.proto \ | ||
packages/valory/connections/abci/protos/tendermint/crypto/proof.proto \ | ||
packages/valory/connections/abci/protos/tendermint/crypto/keys.proto \ | ||
packages/valory/connections/abci/protos/tendermint/abci/types.proto \ | ||
packages/valory/connections/abci/protos/tendermint/types/types.proto \ | ||
packages/valory/connections/abci/protos/tendermint/types/validator.proto \ | ||
packages/valory/connections/abci/protos/tendermint/types/params.proto \ | ||
packages/valory/connections/abci/protos/tendermint/version/types.proto |
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.
To build the abci connection protos
def load_hwi_plugin() -> Type[LedgerApi]: # pragma: nocover | ||
"""Load HWI Plugin.""" | ||
try: | ||
from aea_ledger_ethereum_hwi.hwi import ( # pylint: disable=import-outside-toplevel | ||
EthereumHWIApi, | ||
) | ||
|
||
return EthereumHWIApi | ||
except ImportError as e: | ||
raise click.ClickException( | ||
"Hardware wallet plugin not installed, " | ||
"Run `pip3 install open-aea-ledger-ethereum-hwi` to install the plugin" | ||
) from e | ||
except TypeError as e: | ||
raise click.ClickException( | ||
'Protobuf compatibility error; Please export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python" ' | ||
"to use the hardware wallet without any issues" | ||
) from e |
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.
Lazy loading to avoid the protobuf incompatibility issue valory-xyz/open-aea#671
from packages.valory.connections.abci.tendermint.abci.types_pb2 import ( # type: ignore | ||
LastCommitInfo as LastCommitInfoPb, | ||
) | ||
from packages.valory.connections.abci.tendermint.abci.types_pb2 import Request | ||
from packages.valory.connections.abci.tendermint.abci.types_pb2 import ( | ||
from packages.valory.connections.abci.tendermint.abci.types_pb2 import Request # type: ignore | ||
from packages.valory.connections.abci.tendermint.abci.types_pb2 import ( # type: ignore |
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.
What has changed that we need so many type ignores now?
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.
The new version of protobufs does not define these objects explicitly, rather they are built at the compile time so the *_pb.py
files don't contain any explicitly defined objects so the type checks fail there
Optimise images
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2065 +/- ##
==========================================
- Coverage 94.27% 94.23% -0.04%
==========================================
Files 263 263
Lines 15955 15956 +1
==========================================
- Hits 15041 15036 -5
- Misses 914 920 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Proposed changes
protobuf<5.0.0,>=4.21.6
andweb3<7,>=6.0.0
v24.3
Fixes
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an
x
in the box that appliesChecklist
Put an
x
in the boxes that apply.main
branch (left side). Also you should start your branch off ourmain
.