Skip to content

Avoid installing protoc for most CI workflows #3447

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

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

djc
Copy link
Contributor

@djc djc commented Aug 16, 2023

It seems like it should only be needed for the all-features workflow, which enables otel via --all-features.

Because we get rate-limited by something inside the setup-protoc Action, this is a fairly frequent source of spurious CI failures.

This was introduced in #3340 according to git blame.

It seems like it should only be needed for the all-features workflow,
which enables `otel` via `--all-features`.

Because we get rate-limited by something inside the setup-protoc Action,
this is a fairly frequent source of spurious CI failures.
@djc
Copy link
Contributor Author

djc commented Aug 16, 2023

Seems to pass CI (macOS still going right now) except for the previously failing Linux armv7-unknown-linux-gnueabihf workflows.

@rbtcollins
Copy link
Contributor

I hadn't noticed rate limiting being at the heart of the failures - do you have an example we can refer to?

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  with:
    repo-token: ${{ secrets.GITHUB_TOKEN }}

Seems like the canonical approach to avoid rate limiting, from the setup-protoc repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this in another commit to all-features.yaml.

@rami3l
Copy link
Member

rami3l commented Aug 17, 2023

I hadn't noticed rate limiting being at the heart of the failures - do you have an example we can refer to?

@rbtcollins At least I can confirm that this is not uncommon:
https://github.com/rust-lang/rustup/actions/runs/5851656996/job/15862744488

In order to avoid getting rate limited.
@rbtcollins rbtcollins merged commit 7fc79ef into rust-lang:master Aug 17, 2023
@rami3l rami3l mentioned this pull request Jan 29, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants