-
Notifications
You must be signed in to change notification settings - Fork 19
add push model subtest to keylime_agent_container-basic-attestation #915
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
Conversation
Reviewer's GuideAdds comprehensive support for push-model attestation by extending test helpers, parameterizing existing tests and container scripts, updating service drop-in configurations, and introducing a new push-attestation-on-localhost test suite. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey there - I've reviewed your changes - here's some feedback:
- The mapping in __limeGetLogName for push_model_agent to “agent” risks mixing push-agent logs with the standard agent logs—consider giving push_model_agent its own suffix to avoid collisions.
- There’s duplicated logic for TENANT_ARGS and AGENT_CMD across several test scripts; extracting that into a shared helper or small wrapper would reduce maintenance overhead.
- When truncating log files in lib.sh, using the built-in no-op ':' (e.g. ‘: > file’) is more idiomatic and slightly more portable than ‘true > file’.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The mapping in __limeGetLogName for push_model_agent to “agent” risks mixing push-agent logs with the standard agent logs—consider giving push_model_agent its own suffix to avoid collisions.
- There’s duplicated logic for TENANT_ARGS and AGENT_CMD across several test scripts; extracting that into a shared helper or small wrapper would reduce maintenance overhead.
- When truncating log files in lib.sh, using the built-in no-op ':' (e.g. ‘: > file’) is more idiomatic and slightly more portable than ‘true > file’.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
63756c1 to
ffc9ea7
Compare
|
/packit test |
ffc9ea7 to
10e5a07
Compare
|
/packit test |
10e5a07 to
1067b01
Compare
|
/packit test |
c94deff to
3aa47e6
Compare
| else | ||
| _MAJOR=$( rpm -q --qf '%{VERSION}' centos-stream-release | cut -d '.' -f 1 ) | ||
| _ARCH=$( arch ) | ||
| dnf -y copr enable packit/keylime-rust-keylime-master-centos centos-stream-${_MAJOR}-${_ARCH} |
Check warning
Code scanning / shellcheck
SC2086 Warning test
| else | ||
| _MAJOR=$( rpm -q --qf '%{VERSION}' centos-stream-release | cut -d '.' -f 1 ) | ||
| _ARCH=$( arch ) | ||
| dnf -y copr enable packit/keylime-rust-keylime-master-centos centos-stream-${_MAJOR}-${_ARCH} |
Check warning
Code scanning / shellcheck
SC2086 Warning test
| sleep 5 | ||
| rlRun "limeWaitForAgentStatus $AGENT_ID_FIRST 'Get Quote'" | ||
| rlRun "limeWaitForAgentStatus $AGENT_ID_SECOND 'Get Quote'" | ||
| sleep $limeTimeout |
Check warning
Code scanning / shellcheck
SC2154 Warning test
| sleep 5 | ||
| rlRun "limeWaitForAgentStatus $AGENT_ID_FIRST 'Get Quote'" | ||
| rlRun "limeWaitForAgentStatus $AGENT_ID_SECOND 'Get Quote'" | ||
| sleep $limeTimeout |
Check warning
Code scanning / shellcheck
SC2086 Warning test
15651b9 to
8426174
Compare
8426174 to
85e56bb
Compare
|
test failures are unrelated, probably due to wrong change in keylime/rust-keylime#1158 |
Summary by Sourcery
Enable and test the push-model attestation agent across the test infrastructure by adding helper functions, updating service configurations, parameterizing existing tests, and introducing a dedicated push-model functional test suite
New Features:
Enhancements:
Tests: