Skip to content

chore(ci): remove custom install-protoc.sh script#24900

Draft
pront wants to merge 2 commits intomasterfrom
pront-protoc-installation-linux-unify
Draft

chore(ci): remove custom install-protoc.sh script#24900
pront wants to merge 2 commits intomasterfrom
pront-protoc-installation-linux-unify

Conversation

@pront
Copy link
Member

@pront pront commented Mar 11, 2026

Summary

Add a protoc module to prepare.sh (which already manages versioned installs of all other tools) and delete custom install-protoc.sh (which frequently fails and requires the workflow to be retried).

Vector configuration

How did you test this PR?

Change Type

  • Bug fix
  • New feature
  • Dependencies
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Notes

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Some CI checks run only after we manually approve them.
    • We recommend adding a pre-push hook, please see this template.
    • Alternatively, we recommend running the following locally before pushing to the remote branch:
      • make fmt
      • make check-clippy (if there are failures it's possible some of them can be fixed with make clippy-fix)
      • make test
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run make build-licenses to regenerate the license inventory and commit the changes (if any). More details here.

@github-actions github-actions bot added the domain: ci Anything related to Vector's CI environment label Mar 11, 2026
@pront pront changed the title Pront protoc installation linux unify chore(ci): remove custom install-protoc.sh script Mar 11, 2026
@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Mar 11, 2026
@pront pront force-pushed the pront-protoc-installation-linux-unify branch 2 times, most recently from 7796c4c to 71bb389 Compare March 12, 2026 20:10
Copy link
Member Author

@pront pront left a comment

Choose a reason for hiding this comment

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

/ci-run-cross

Adds protoc as a selectable module in prepare.sh, consolidating protoc
installation alongside other dev tools. Installs via apt-get on Linux
and brew on macOS, replacing the separate install-protoc.sh script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pront pront force-pushed the pront-protoc-installation-linux-unify branch from 71bb389 to 1338dc6 Compare March 12, 2026 20:36
Copy link
Member Author

@pront pront left a comment

Choose a reason for hiding this comment

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

/ci-run-cross

@pront
Copy link
Member Author

pront commented Mar 13, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1338dc6215

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if contains_module protoc; then
if ! command -v protoc &>/dev/null; then
if [[ "$(uname)" == "Linux" ]]; then
$SUDO apt-get install -y protobuf-compiler

Choose a reason for hiding this comment

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

P1 Badge Refresh package lists before installing protoc on Linux

The new Linux branch installs protobuf-compiler with apt-get install but never runs apt-get update, which can fail in environments that clear /var/lib/apt/lists (for example, tests/e2e/Dockerfile does this before invoking prepare.sh). In that case, the protoc module fails with Unable to locate package protobuf-compiler when protoc is not already present. apt-get --help explicitly describes update as the command that “Retrieve[s] new lists of packages,” so this path needs an index refresh before install.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: ci Anything related to Vector's CI environment no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant