-
Notifications
You must be signed in to change notification settings - Fork 680
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
WIP: add helm test step to gh-actions #895
Conversation
Hi @knelasevero. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cpanato you mentioned some improvements that could be done to this. If you prefer we can review in this PR, or I can merge this and wait for a follow up PR from you. Your call ❤️ |
/ok-to-test |
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.
This looks really great. I like how easy it is to read the workflow. Also https://github.com/kubernetes-sigs/descheduler/runs/7579750658?check_suite_focus=true looks great with all the events, pod spec and container logs.
Helm / lint-and-test (pull_request)
test is currently not required. We need to make sure it is.
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 do! |
a08c28d
to
183c857
Compare
|
||
# Force linting/test in debug runs with a change (this action only runs on chart and helm.yaml workflow diffs anyways) | ||
- name: Change Kind to deployment | ||
run: "sed -i \"s|kind: [^ ]*|kind: Deployment|g\" charts/descheduler/values.yaml" |
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.
this seems odd to do, when we can have a specific values file that can do this.
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.
This was only to force ct lint and ct install to show changes, it is unrelated to this value change itself. I want to remove this when the work is finished.
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.
Initially I was planning on leaving this, but now I see it is too ugly/confusing 😅
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 will wait for lgtms and approves, but /hold so I remember to remove this line when reviews are done
183c857
to
60262a0
Compare
and remove local helm testing in favor of ct in PRs
60262a0
to
afe1186
Compare
@knelasevero: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@@ -0,0 +1,3 @@ | |||
#!/bin/bash | |||
|
|||
docker run -it --rm --network host --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro --volume $(pwd):/data quay.io/helmpack/chart-testing:v3.7.0 /bin/bash -c "git config --global --add safe.directory /data; ct install --config=.github/ci/ct.yaml --helm-extra-set-args=\"--set=kind=Deployment --set=podSecurityPolicy.create=false\"" |
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.
For some reason when calling from make the helm-extra-set-args from .github/ci/ct.yaml are being ignored... had to set them manually here as arguments of ct.
/hold after reviews are done I will remove #895 (comment) and also need to wait for kubernetes/test-infra#26630 |
I'd prefer first to introduce a new test, merge this PR, merge kubernetes/test-infra#26630 and then change the In overall, this is quite awesome improvement :) |
New test? 🤔 You mean this PR itself as the replacement, or something else?
If we merge this PR first, all new PRs will fail because of inexistent scripts being called on k/test-infra steps.
I've introduced make ct-helm in this PR, and it runs locally against kind
🙌🙌 |
I would like to see the changes in the following order:
|
You are right, that makes sense. I will convert this PR in a draft/wip to keep it as reference, and open new PRs step by step then. Then we can actually just test if prow ignores or considers gh-actions workflows before merging right after the first merge :) |
@knelasevero: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Also, remove local helm testing in favor of ct in PRs.
Example successful run can be checked here (from my fork to my fork): https://github.com/knelasevero/descheduler/pull/2/checks
Example fail: https://github.com/knelasevero/descheduler/runs/7564334471?check_suite_focus=true
We already get events, describe, and logs of the deployed chart pod in the CI directly.
I am already removing the scripts and references to previous helm testing approach.
So /hold this one until I normalize and merge kubernetes/test-infra#26630