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 PR jobs for kube-deploy #6761

Merged
merged 3 commits into from
Feb 9, 2018
Merged

Conversation

krousey
Copy link
Contributor

@krousey krousey commented Feb 9, 2018

cc @kubernetes/kube-deploy-maintainers

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 9, 2018
@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

/hold

It should be noted I have no idea what I'm doing. 😄. Is there a way to have the test job run, but not block merge? We need to fix tests.

@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 Feb 9, 2018
prow/config.yaml Outdated
trigger: "/test( all| pull-kube-deploy-build)"
spec:
containers:
- image: gcr.io/k8s-testimages/gcloud-in-go:v20171113-192bec25
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just picked an image that seemed like it might work. I don't know how to test this. The only thing these jobs depend on is go 1.9+

Copy link
Member

Choose a reason for hiding this comment

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

@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

/test pull-test-infra-verify-spelling

@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

Needed to rebase to pick up the spelling test script.

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

/skip

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

wanna add them to testgrid as well? (add your repo here)

@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

@krzyzacy Sure I can add test-grid as well. I assume that I would have to create periodic jobs as well? Also, is there a way to run the tests on PRs but not have them block? (we have failures we need to fix right now)

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

@krousey how does merge work in your repo?

@BenTheElder
Copy link
Member

Also, is there a way to run the tests on PRs but not have them block?

Guessing you are using tide, in which case you can but you set the jobs to skip_report: true so they show up on gubernator / prow.k8s.io / testgrid but not as a github status.

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

@krzyzacy Done. Should I add periodic CI jobs too? and what about alerting? I'm unsure what that does.

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

@krousey up to you if you want to add a CI job or not.

alert will send you email alerts when your job fails x times in a row

@krousey krousey force-pushed the kube-deploy branch 2 times, most recently from ab9c183 to c479b8f Compare February 9, 2018 21:46
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 9, 2018
@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

Fixed latest test errors and added CI jobs too.

prow/config.yaml Outdated
@@ -4935,6 +4965,29 @@ postsubmits:
- name: docker-graph
hostPath:
path: /mnt/disks/ssd0/docker-graph

kubernetes/kube-deploy:
Copy link
Member

Choose a reason for hiding this comment

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

I would add them as periodic jobs rather than postsubmits?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. What is the purpose of post-submits? Just stuff you don't want to run on every commit in every PR?

Copy link
Member

Choose a reason for hiding this comment

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

It's the opposite right? Postsubmits are the stuff you do want to run on every commit in every PR :-)

there are jobs like config updater, need to run right after a push event...

Copy link
Member

Choose a reason for hiding this comment

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

What does this job do exactly? post-submits are best used for things like uploading a new config after the config change is merged, IE some post-merge publish step.

Continuous tests are probably best as periodics and/or presubmits.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. It's just CI builds... periodic it is.

@krousey
Copy link
Contributor Author

krousey commented Feb 9, 2018

/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 Feb 9, 2018
prow/config.yaml Outdated
containers:
- image: gcr.io/k8s-testimages/gcloud-in-go:v20171113-192bec25
args:
- "--repo=k8s.io/$(REPO_NAME)"
Copy link
Member

Choose a reason for hiding this comment

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

periodics don't have $(REPO_NAME), so specify your checkout path :-)

and also add labels: preset-service-account: true for log/aftifacts upload stuff

@krousey krousey force-pushed the kube-deploy branch 2 times, most recently from fbbc3e2 to 65d9e26 Compare February 9, 2018 22:31
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Feb 9, 2018

@krousey: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-test-infra-verify-spelling 32c4fac link /test pull-test-infra-verify-spelling

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.

@@ -156,6 +156,10 @@ test_groups:
gcs_prefix: kubernetes-jenkins/logs/ci-ingress-gce-upgrade-e2e
- name: ci-ingress-gce-downgrade-e2e
gcs_prefix: kubernetes-jenkins/logs/ci-ingress-gce-downgrade-e2e
- name: ci-kube-deploy-build
gcs_prefix: kubernetes-jenkins/logs/ci-kube-deploy-build
- name: ci-kube-deploy-build
Copy link
Member

Choose a reason for hiding this comment

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

s/build/test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

I think you'll also need to enable trigger in https://github.com/kubernetes/test-infra/blob/master/prow/plugins.yaml#L188-L190

cc @cjwagner sounds like we want a unit-test to ensure all repo has prow presubmits has trigger enabled?

otherwise lgtm

@krzyzacy
Copy link
Member

krzyzacy commented Feb 9, 2018

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: krousey, krzyzacy

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 OWNERS 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 Feb 9, 2018
@k8s-ci-robot k8s-ci-robot merged commit b500734 into kubernetes:master Feb 9, 2018
@k8s-ci-robot
Copy link
Contributor

@krousey: Updated the following 2 configmaps:

  • config
  • plugins

In response to this:

cc @kubernetes/kube-deploy-maintainers

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.

@krousey
Copy link
Contributor Author

krousey commented Feb 12, 2018

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. 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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants