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

kinder: add workflow for testing super-admin.conf #2949

Merged

Conversation

neolit123
Copy link
Member

@neolit123 neolit123 commented Oct 31, 2023

checks if the right files are generated, they have the correct certificates, that commands work without errors, etc. let me know if you think something else can be added.

tested locally with kinder test workflow...

xref #2414

test-infra PR:
kubernetes/test-infra#31161

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 31, 2023
@k8s-ci-robot k8s-ci-robot requested a review from chendave October 31, 2023 14:54
@k8s-ci-robot k8s-ci-robot added the area/kinder Issues to track work in the kinder tool label Oct 31, 2023
@k8s-ci-robot k8s-ci-robot requested a review from SataQiu October 31, 2023 14:54
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 31, 2023
@neolit123 neolit123 added area/test priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Oct 31, 2023
@neolit123 neolit123 added this to the v1.29 milestone Oct 31, 2023
Comment on lines +88 to +89
# Ensure exit status of 0
exit 0
Copy link
Member Author

@neolit123 neolit123 Oct 31, 2023

Choose a reason for hiding this comment

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

this was added last minute since sometimes passing a bash script to docker exec ... can result in random exit 1 statuses. even if e.g. the || exit 1 conditions are not met.

in some cases in the past we have seen docker exec ... mkdir ... failing randomly. it could be since we are calling docker exec a lot.

this forces an exit 0 status once the EOF for a script was reached,
i don't have a good explanation on what's going on.

Copy link
Member

Choose a reason for hiding this comment

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

seems good as it reached the end of the script here.

@neolit123
Copy link
Member Author

/skip

Copy link
Member

@SataQiu SataQiu left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/hold
feel free to cancel hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 1, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 1, 2023
Copy link
Member

@chendave chendave left a comment

Choose a reason for hiding this comment

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

/lgtm

I cannot see any problem from this new workflow.

Comment on lines +88 to +89
# Ensure exit status of 0
exit 0
Copy link
Member

Choose a reason for hiding this comment

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

seems good as it reached the end of the script here.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chendave, neolit123, SataQiu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@neolit123
Copy link
Member Author

/hold cancel
let's run this in CI and see how it goes, i will send fixes if needed.
thanks

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 1, 2023
@k8s-ci-robot k8s-ci-robot merged commit c6f2bc1 into kubernetes:main Nov 1, 2023
- -c
- |
set -x
CMD=docker exec {{ .vars.clusterName }}-control-plane-1
Copy link
Member Author

Choose a reason for hiding this comment

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

i forgot to add quotes here.
it causes these CMD commands to fail, must have happened when i synced the template and the real workflow in ci/workflows.

https://storage.googleapis.com/kubernetes-jenkins/logs/ci-kubernetes-e2e-kubeadm-kinder-super-admin-latest/1719602416766160896/build-log.txt

https://testgrid.k8s.io/sig-cluster-lifecycle-kubeadm#kubeadm-kinder-super-admin-latest

will send a PR and self LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/kinder Issues to track work in the kinder tool area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants