-
Notifications
You must be signed in to change notification settings - Fork 911
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
make: always generate proto files sans rust #6861
make: always generate proto files sans rust #6861
Conversation
b7e2a13
to
4982f95
Compare
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.
#10 ERROR: process "/bin/sh -c git clone /source /repo --recursive && cd /repo && ./configure --enable-static --prefix=/usr && make -j $(nproc) && make install" did not complete successfully: exit code: 2
------
> [builder 5/5] RUN git clone /source /repo --recursive && cd /repo && ./configure --enable-static --prefix=/usr && make -j $(nproc) && make install:
79.85 printgen wire/channel_type_printgen.h
79.94 wiregen wire/onion_wiregen.c
80.03 wiregen wire/peer_wiregen.c
80.23 wiregen gossipd/gossip_store_wiregen.c
80.35 xgettext wallet/statements_gettextgen.po
80.40 python3 -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/node.proto --python_out=contrib/pyln-grpc-proto/pyln/grpc/ --grpc_python_out=contrib/pyln-grpc-proto/pyln/grpc/ --experimental_allow_proto3_optional
80.43 /usr/bin/python3: Error while finding module specification for 'grpc_tools.protoc' (ModuleNotFoundError: No module named 'grpc_tools')
80.44 make: *** [Makefile:386: contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py] Error 1
80.44 make: *** Waiting for unfinished jobs....
80.52 rm external/build-x86_64-alpine-linux-musl/libwally-core-build/src/secp256k1/libsecp256k1.la
------
Dockerfile.alpine:30
--------------------
29 |
30 | >>> RUN git clone /source /repo --recursive && \
31 | >>> cd /repo && \
32 | >>> ./configure --enable-static --prefix=/usr && \
33 | >>> make -j $(nproc) && \
34 | >>> make install
35 |
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone /source /repo --recursive && cd /repo && ./configure --enable-static --prefix=/usr && make -j $(nproc) && make install" did not complete successfully: exit code: 2
This approach might not work, need to rethink it 🤔 |
That's a python module import error. |
4982f95
to
f949457
Compare
Generating the msggen proto files doesn’t require rust (even though it generates rust files). Changelog-None
f949457
to
cf13d8c
Compare
Not really all that surprising, since the Alpine compiler test does not have the grpc tooling. |
Do we really want to require grpc tools just for a task that is not always required? |
I added an installation step for the python build dependencies. |
To install the poetry dependencies we should add more dependencies inside the alpine, but I do not think it is worth due that we are just testing the compilation, maybe just |
So it just breaks again the next time we change the dependencies? Let's not hack things together, and actually install dependencies if we declare them as necessary to build. |
e5b896d
to
2f424d4
Compare
2f424d4
to
43937aa
Compare
Not sure, I think that the If some gen file are not generated when changed this is a |
Generating the msggen proto files doesn’t require rust (even though it generates rust files).
Keep getting in this loop where my docs don't match CI and it's because the doc scripts were never running on my machine and I didn't enable rust.
Other's will probably run into this problem and it's quite hard to figure out.
Spotted by @niftynei and @chrisguida