-
Notifications
You must be signed in to change notification settings - Fork 53
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
[YUNIKORN-2135] Add integration test code coverage #164
Conversation
Signed-off-by: PoAn Yang <[email protected]>
bc26a58
to
cdd2d90
Compare
volumes: | ||
- name: go-cover-dir | ||
hostPath: | ||
path: /go-cover-dir/ | ||
type: DirectoryOrCreate | ||
{{- end }} |
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.
If follow this approach, I believe we'll need extra code somewhere which fetches the results from the Docker containers if we want to automate this, correct? Because we won't have it right away on the host filesystem. I guess we need a docker cp
somewhere.
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.
Yes, like copy_go_cover_dir
function in https://github.com/apache/yunikorn-k8shim/pull/733/files#diff-6d485e1346af49aeb05caeb7af55511940214789cd6976f03afa05e56b82d639R156-R177.
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.
+1 looks good. Internally we'll need PVC support other than HostPath but I believe it's good for a start.
cc @wilfred-s
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 -1 on this. I am really not a fan of polluting our helm charts with additional cruft that is completely useless for end users. This is just going to lead to confusion. If we're going to do this as part of e2e testing fine; there needs to be a way to dynamically add this from within the k8shim repo, not in the primary helm charts used here in yunikorn-release.
What is this PR for?
Add a new value
enableGoCoverDir
. If the value istrue
, we add an output folder and setGOCOVERDIR
for yunikorn deployment.What type of PR is it?
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2135