-
Notifications
You must be signed in to change notification settings - Fork 962
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
ci: install protoc
from repositories where possible
#3258
Conversation
I’ve not looked closely, but let’s make sure this installs an up to date version. (Not something a year old) |
It is only meant to be a temporary fix until we ship #3066. I just ran the command in a |
On my phone, but this has some context: libp2p/specs#465 (comment)
|
Thanks for linking this. At the moment, I'd just like to ease us from the burden of having constantly red CI jobs, PRs being dequeued from the merge queue and having to baby-sit and restart them constantly until we finally get a window where we don't hit the API limit upon installing protoc. Long-term ,we are moving away from requiring protoc. I'd assume that by the time this decision is made and enforced across all libp2p implementations, we will have long merged #3066. @libp2p/rust-libp2p-maintainers Do you agree with this? |
Funnily enough, our interoperability tests install I'd say that is an argument for doing it the same way here as well because it guarantees us that what we test interoperability on is actually the same thing as we write our unit tests etc for. |
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.
I am fine moving forward here. Issues due to the protoc version should be detected at compile time, e.g. the proto3 optional issue would result in a compile time failure as our Rust code would expect an Option
. libp2p/specs#465 (comment)
@Mergifyio refresh |
✅ Pull request refreshed |
I am backporting this to v0.49 because the actual backport is otherwise super painful. |
@Mergifyio backport rust-v0490-testplan |
With the addition of more CI jobs, we are constantly running into API limits on setting up protoc. For all jobs that run on ubuntu, we can install it from `apt` instead. On ubuntu 22.04, which is what `ubuntu-latest` points to, this installs `protoc v3.12.4`. (cherry picked from commit 68d0f88) # Conflicts: # .github/workflows/cache-factory.yml # .github/workflows/ci.yml
✅ Backports have been created
|
Description
With the addition of more CI jobs, we are constantly running into API limits on setting up protoc. For all jobs that run on ubuntu, we can install it from
apt
instead.On ubuntu 22.04, which is what
ubuntu-latest
points to, this installsprotoc v3.12.4
.Notes
Links to any relevant issues
Open Questions
Change checklist