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

image-rs: improve AA build and output #274

Merged
merged 1 commit into from
Jul 13, 2023
Merged

image-rs: improve AA build and output #274

merged 1 commit into from
Jul 13, 2023

Conversation

katexochen
Copy link
Contributor

Improving output when building and starting AA.
Placing gRPC and ttRPC binaries in different directories, so both can be cached and it is clear what feature the binary supports.

Test itself was already fixed in #271.

Improving output when building and starting AA.
Placing gRPC and ttRPC binaries in different directories,
so both can be cached and it is clear what feature the binary
supports.

Signed-off-by: Paul Meyer <[email protected]>
parameters+=("ttrpc=true")
dest_dir_suffix="ttrpc"
else
dest_dir_suffix="grpc"
Copy link
Member

Choose a reason for hiding this comment

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

Will we also need changes to the kata initrd building scripts and peer pods tooling to account for the new location?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I understand that question. I think this build script is only ever called by the image-rs tests. Everything else should use the attestation-agents Makefile. The small modification to the attestation-agent Makefile should only change behavior in edge cases.

.kill_on_drop(true)
.args(&[
"--keyprovider_sock",
"unix:///run/confidential-containers/attestation-agent/keyprovider.sock",
"--getresource_sock",
"unix:///run/confidential-containers/attestation-agent/getresource.sock"
])
.spawn()?;
.spawn()
.expect("Failed to start ttrpc attestation-agent");
Copy link
Member

Choose a reason for hiding this comment

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

Nothing against this more verbose error but note that currently the --help flag will tell you if the AA was built with grpc or ttrpc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That can be helpful for local development, but won't help for debugging CI runs.

Copy link
Member

@arronwy arronwy left a comment

Choose a reason for hiding this comment

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

Thanks @katexochen LGTM!

@arronwy arronwy merged commit 5f1b738 into confidential-containers:main Jul 13, 2023
@katexochen katexochen deleted the feat/test-build-aa-script branch July 13, 2023 07:56
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