Skip to content

fix(ci): install protoc binary in ci-test-systemd workflow#2605

Merged
rksharma95 merged 1 commit into
kubearmor:mainfrom
Athang69:fix/ci-test-systemd-install-protoc
May 27, 2026
Merged

fix(ci): install protoc binary in ci-test-systemd workflow#2605
rksharma95 merged 1 commit into
kubearmor:mainfrom
Athang69:fix/ci-test-systemd-install-protoc

Conversation

@Athang69

Copy link
Copy Markdown
Contributor

Purpose of PR?:
Fixes #2604

The Install protoc step in ci-test-systemd.yml installs only the Go protoc plugins (protoc-gen-go, protoc-gen-go-grpc) via go install but does not install the protoc compiler binary itself. When make local-release runs and invokes protobuf/Makefile, it fails with protoc: No such file or directory (exit 127). This fix installs protobuf-compiler via apt and adds the Go bin directory to PATH so both protoc and the Go plugins are available on the runner.

Does this PR introduce a breaking change?
No.

If the changes in this PR are manually verified, list down the scenarios covered:

  • Confirmed the bug exists on main by running git show origin/main:.github/workflows/ci-test-systemd.yml and verifying the missing apt-get install protobuf-compiler
  • Confirmed the failure log shows protoc: No such file or directory at the make -C ../protobuf step
Screenshot from 2026-05-15 09-59-11

Additional information for reviewer?
This is a standalone bug fix unrelated to any other open PR. The failure is reproducible on any push to main touching KubeArmor/**, tests/**, or protobuf/**.

Checklist:

  • Bug fix. Fixes #
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

Copilot AI review requested due to automatic review settings May 15, 2026 04:33
@Athang69 Athang69 force-pushed the fix/ci-test-systemd-install-protoc branch from 180859d to e7d863b Compare May 15, 2026 04:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the ci-test-systemd GitHub Actions workflow by installing the protoc compiler binary (which the protobuf/Makefile invokes directly) and ensuring the Go bin directory is on PATH so the Go protoc plugins are discoverable during make local-release.

Changes:

  • Install protobuf-compiler via apt in the Install protoc step.
  • Append $(go env GOPATH)/bin to $GITHUB_PATH so protoc-gen-go and protoc-gen-go-grpc are on PATH.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Athang69

Copy link
Copy Markdown
Contributor Author

@rksharma95 @Aryan-sharma11 this PR adresses the failing CI test PTAL.
Thanks!!

@achrefbensaad achrefbensaad force-pushed the fix/ci-test-systemd-install-protoc branch from b33b634 to a87adc1 Compare May 22, 2026 06:08
@Athang69

Copy link
Copy Markdown
Contributor Author

@Aryan-sharma11 @AryanBakliwal PTAL whenever convenient.
Thankss!

@AryanBakliwal AryanBakliwal force-pushed the fix/ci-test-systemd-install-protoc branch from a87adc1 to 40afaf9 Compare May 27, 2026 01:49
@rksharma95 rksharma95 merged commit d1e7b37 into kubearmor:main May 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(ci): ci-test-systemd workflow fails with protoc: No such file or directory

4 participants