-
Notifications
You must be signed in to change notification settings - Fork 99
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
image-rs: improve AA build and output #274
Conversation
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @katexochen LGTM!
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.