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

adding optional presubmit verify-shellcheck.sh job #13125

Merged
merged 1 commit into from
Jun 28, 2019

Conversation

pswica
Copy link
Contributor

@pswica pswica commented Jun 21, 2019

/sig release
/cc @justaugustus

Continues this PR: kubernetes/release#740

Which addresses this issue: kubernetes/release#726

Specifically, this will run a job that links the shell scripts in kubernetes/release. I will use this test to clean up the shell scripts, and then make it an always-run job

@k8s-ci-robot k8s-ci-robot added sig/release Categorizes an issue or PR as relevant to SIG Release. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 21, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @pswica. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. area/config Issues or PRs related to code in /config area/release-eng Issues or PRs related to the Release Engineering subproject sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 21, 2019
Copy link
Member

@justaugustus justaugustus left a comment

Choose a reason for hiding this comment

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

Made some suggestions.
Would much prefer a Makefile, with a verify target which runs a set of verify scripts instead.
See here for an example.

This allows us to change the underlying implementation in k/release without having to also issue an update to the test-infra job definition.

config/jobs/kubernetes/release/release-config.yaml Outdated Show resolved Hide resolved
config/jobs/kubernetes/release/release-config.yaml Outdated Show resolved Hide resolved
@pswica
Copy link
Contributor Author

pswica commented Jun 26, 2019

@justaugustus thanks a lot for guiding me through this. Your suggestions definitely improve this test. I will try to implement this

Copy link
Member

@justaugustus justaugustus left a comment

Choose a reason for hiding this comment

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

Sorry, one more change (because I was spacing out on the job name).

config/jobs/kubernetes/release/release-config.yaml Outdated Show resolved Hide resolved
@justaugustus
Copy link
Member

/ok-to-test
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 26, 2019
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c839393a12237e917098de336086046abede28b5

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2019
@pswica
Copy link
Contributor Author

pswica commented Jun 26, 2019

/retest

@fejta-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@k8s-ci-robot k8s-ci-robot added area/testgrid size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 26, 2019
@justaugustus
Copy link
Member

@pswica -- Add this block under

- name: release-unit
test_group_name: pull-release-unit
alert_options:
alert_mail_to_addresses: [email protected]

  - name: release-verify
    test_group_name: pull-release-verify
    alert_options:
      alert_mail_to_addresses: [email protected]

@pswica
Copy link
Contributor Author

pswica commented Jun 27, 2019

@justaugustus
Thank you--I added. Thanks for being patient with me as I learn about test-infra jobs

@justaugustus
Copy link
Member

For sure, anytime @pswica!
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 27, 2019
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: be4590276fbb554b8243a56f4cbb4244afa4373a

@justaugustus
Copy link
Member

/assign @spiffxp

@spiffxp
Copy link
Member

spiffxp commented Jun 27, 2019

/hold
depends on kubernetes/release#740

@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 Jun 27, 2019
@justaugustus
Copy link
Member

Removing the hold on this as kubernetes/release#740 has been merged! 🎉
@spiffxp -- please approve when you have a chance.

/hold cancel

@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 Jun 28, 2019
@BenTheElder
Copy link
Member

this needs docker in docker enabled, the kubekins image does not have shellcheck (and it probably shouldn't)

to do that:

  • put runner.sh as the first entry in command (this will boot docker)
  • add this to the prowjob spec:
  labels:
      preset-dind-enabled: "true"
  • add this to the pod spec:
securityContext:
          privileged: true

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2019
@pswica
Copy link
Contributor Author

pswica commented Jun 28, 2019

@BenTheElder
Thanks a lot for your help. I saw your really cool shellcheck update, and I'm really glad to have another experienced set of eyes looking at my stuff. I really appreciate it :)

@spiffxp
Copy link
Member

spiffxp commented Jun 28, 2019

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 28, 2019
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: abade9b194cbb47e388305f7dbac0bcd19b6cfeb

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justaugustus, pswica, spiffxp

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2019
@k8s-ci-robot k8s-ci-robot merged commit 4fcd52d into kubernetes:master Jun 28, 2019
@k8s-ci-robot
Copy link
Contributor

@pswica: Updated the job-config configmap in namespace default using the following files:

  • key release-config.yaml using file config/jobs/kubernetes/release/release-config.yaml

In response to this:

/sig release
/cc @justaugustus

Continues this PR: kubernetes/release#740

Which addresses this issue: kubernetes/release#726

Specifically, this will run a job that links the shell scripts in kubernetes/release. I will use this test to clean up the shell scripts, and then make it an always-run job

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.

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/config Issues or PRs related to code in /config area/release-eng Issues or PRs related to the Release Engineering subproject area/testgrid 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. sig/release Categorizes an issue or PR as relevant to SIG Release. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants