Skip to content
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

build-checks: Install protoc in the ci environments #9142

Merged
merged 1 commit into from Feb 26, 2024

Conversation

ChengyuZhu6
Copy link
Member

Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

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

I wonder if it is worth mentioning in the commit message that it's image-rs that specifically has pulled in this requirement? I'll be interest to see if we need clang in make test now as well

Copy link
Member

@BbolroC BbolroC left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @ChengyuZhu6 !

@ChengyuZhu6
Copy link
Member Author

I wonder if it is worth mentioning in the commit message that it's image-rs that specifically has pulled in this requirement? I'll be interest to see if we need clang in make test now as well

Sure. Let me try.

@ChengyuZhu6
Copy link
Member Author

I wonder if it is worth mentioning in the commit message that it's image-rs that specifically has pulled in this requirement?

Done.

@ChengyuZhu6
Copy link
Member Author

@stevenhorsman
Copy link
Member

we could remove clang in the ci: https://github.com/kata-containers/kata-containers/actions/runs/8017296177/job/21900866856?pr=8484

Just to check I understand - we can remove it in the static build checks, but it's still needed in the agent component build?

@ChengyuZhu6
Copy link
Member Author

we could remove clang in the ci: https://github.com/kata-containers/kata-containers/actions/runs/8017296177/job/21900866856?pr=8484

Just to check I understand - we can remove it in the static build checks, but it's still needed in the agent component build?

yes. We still need clang:

$ make agent-tarball
   Compiling rustls-webpki v0.102.2
   Compiling cgroups-rs v0.3.3
   Compiling webbrowser v0.8.12
   Compiling serde_with v3.6.1
   Compiling crypto_secretbox v0.1.1
   Compiling rsa v0.9.6
   Compiling tonic v0.9.2
   Compiling ed25519-dalek v2.1.1
   Compiling image-rs v0.1.0 (https://github.com/confidential-containers/guest-components?rev=4eb69cf#4eb69cf1)
   Compiling derive_builder v0.20.0
error: failed to run custom build command for `loopdev v0.5.0 (https://github.com/mdaffin/loopdev?rev=c9f91e8f0326ce8a3364ac911e81eb32328a5f27#c9f91e8f)`

Caused by:
  process didn't exit successfully: `/home/zcy/go/src/github.com/kata-containers/kata-containers/src/agent/target/release/build/loopdev-b6e640d1801884cc/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /root/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/bindgen-0.63.0/./lib.rs:2338:31

@ChengyuZhu6
Copy link
Member Author

/test

Copy link
Member

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @ChengyuZhu6!

@stevenhorsman stevenhorsman merged commit 483ecba into kata-containers:main Feb 26, 2024
756 of 809 checks passed
@ChengyuZhu6 ChengyuZhu6 deleted the protoc branch March 20, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/tiny Smallest and simplest task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

static-checks: Install protoc in the ci environments
7 participants