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

Set up a test-infra PR job. #484

Merged
merged 2 commits into from
Aug 31, 2016
Merged

Set up a test-infra PR job. #484

merged 2 commits into from
Aug 31, 2016

Conversation

spxtr
Copy link
Contributor

@spxtr spxtr commented Aug 31, 2016

This PR makes ciongke handle multiple repos properly and adds a gotest job to PR Jenkins for the test-infra repo. This new PR job won't add any "ok to test" messages since it isn't triggered by the usual plugin :).

The remaining multirepo problem that this doesn't solve is #476. Until that's fixed I'm not going to bother uploading logs.

After this goes in and I've made sure things look reasonable I'll make a tiny PR switching off dry-run. !!


This change is Reviewable

@spxtr spxtr added the area/prow Issues or PRs related to prow label Aug 31, 2016
@spxtr spxtr assigned rmmh and ixdy Aug 31, 2016
@rmmh
Copy link
Contributor

rmmh commented Aug 31, 2016

Reviewed 5 of 6 files at r1.
Review status: 5 of 6 files reviewed at latest revision, 4 unresolved discussions.


ciongke/cmd/hook/githubagent_test.go, line 315 [r1] (raw file):

          "@k8s-bot test this",
          []string{"cadveapster"},
      },

Add a case for org/randomrepo with an empty expectedjobs list.


ciongke/cmd/hook/main.go, line 48 [r1] (raw file):

// Repo FullName (eg "kubernetes/kubernetes") -> []JenkinsJob
var defaultJenkinsJobs = map[string][]JenkinsJob{

This should probably become a JSON/YAML file and live in a ConfigMap in the future. :-)


ciongke/cmd/hook/main.go, line 49 [r1] (raw file):

// Repo FullName (eg "kubernetes/kubernetes") -> []JenkinsJob
var defaultJenkinsJobs = map[string][]JenkinsJob{
  "kubernetes/test-infra": []JenkinsJob{

[]JenkinsJob is unnecessary here.


jenkins/job-configs/kubernetes-jenkins-pull/testinfra-pull.yaml, line 62 [r1] (raw file):

        - shell: |
            cd ${WORKSPACE}/go/src/github.com/kubernetes/test-infra
            go test $(go list ./... | grep -v vendor)

I assume this is basically a dummy test job -- if we want this to be more legit, it'll need log publishing to GCS. (it might be a good test-case for upload-to-gcs.sh changes)


Comments from Reviewable

@spxtr
Copy link
Contributor Author

spxtr commented Aug 31, 2016

Review status: 3 of 6 files reviewed at latest revision, 4 unresolved discussions.


ciongke/cmd/hook/githubagent_test.go, line 315 [r1] (raw file):

Previously, rmmh (Ryan Hitchman) wrote…

Add a case for org/randomrepo with an empty expectedjobs list.

Done.

ciongke/cmd/hook/main.go, line 48 [r1] (raw file):

Previously, rmmh (Ryan Hitchman) wrote…

This should probably become a JSON/YAML file and live in a ConfigMap in the future. :-)

Agreed.

ciongke/cmd/hook/main.go, line 49 [r1] (raw file):

Previously, rmmh (Ryan Hitchman) wrote…

[]JenkinsJob is unnecessary here.

Done.

jenkins/job-configs/kubernetes-jenkins-pull/testinfra-pull.yaml, line 62 [r1] (raw file):

Previously, rmmh (Ryan Hitchman) wrote…

I assume this is basically a dummy test job -- if we want this to be more legit, it'll need log publishing to GCS. (it might be a good test-case for upload-to-gcs.sh changes)

Yes, agreed.

Comments from Reviewable

@rmmh
Copy link
Contributor

rmmh commented Aug 31, 2016

:lgtm:


Reviewed 3 of 3 files at r2.
Review status: all files reviewed at latest revision, 4 unresolved discussions.


Comments from Reviewable

@spxtr
Copy link
Contributor Author

spxtr commented Aug 31, 2016

Thanks for the prompt review.

@spxtr spxtr merged commit abc50ac into kubernetes:master Aug 31, 2016
@spxtr spxtr deleted the tipr branch August 31, 2016 22:43
ostromart pushed a commit to ostromart/test-infra that referenced this pull request Jul 26, 2019
Automatic merge from submit-queue

Upload mungegithub config and create maintenance manual

**Release note**:

```release-note
none
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jenkins area/prow Issues or PRs related to prow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants