Repository navigation
[BEAM-5845] Split Dataflow run of examples precommit to its own job - #6802
Conversation
|
R: @swegner @alanmyrvold any pitfalls? |
| PrecommitJobBuilder builder = new PrecommitJobBuilder( | ||
| scope: this, | ||
| nameBase: 'Java Examples Dataflow', | ||
| gradleTask: ':beam-runners-google-cloud-dataflow-java-examples:preCommit', |
There was a problem hiding this comment.
For other jobs we create a top-level xyzPrecommit task in the root build script. I don't know how the pattern was established, but it has some benefits:
- Less logic in the Jenkins jobs, which aren't scoped to a commit and are more difficult to change. This way we can always refactor the project tree without messing with Jenkins.
- Better discoverability, and easier to type than the super-long project name
There was a problem hiding this comment.
Ah, will do. Conversely, I think we should remove precommit/postcommit naming from everywhere else, instead giving the suites meaningful names. That way mechanism and policy are separate, and there's one place to look (the root).
| dependsOn runner + "PreCommit" | ||
| } | ||
| dependsOn ":beam-runners-google-cloud-dataflow-java-examples:preCommit" | ||
| dependsOn ":beam-runners-google-cloud-dataflow-java-examples-streaming:preCommit" |
There was a problem hiding this comment.
Is the streaming pre-commit target missing from your new job?
588771a to
8077ec3
Compare
kennknowles
left a comment
There was a problem hiding this comment.
In the spirit of getting this done, I've left my other improvements to the build.gradle for a follow-up.
| dependsOn runner + "PreCommit" | ||
| } | ||
| dependsOn ":beam-runners-google-cloud-dataflow-java-examples:preCommit" | ||
| dependsOn ":beam-runners-google-cloud-dataflow-java-examples-streaming:preCommit" |
8077ec3 to
0845ab2
Compare
|
Confirmed that the target works and the jobs succeeded. |
|
run seed job |
1 similar comment
|
run seed job |
|
|
||
| PrecommitJobBuilder builder = new PrecommitJobBuilder( | ||
| scope: this, | ||
| nameBase: 'Java Examples Dataflow', |
There was a problem hiding this comment.
| nameBase: 'Java Examples Dataflow', | |
| nameBase: 'Java_Examples_Dataflow', |
From https://brentlavelle.wordpress.com/2015/09/24/dont-put-spaces-in-your-jenkins-job-names/
alanmyrvold
left a comment
There was a problem hiding this comment.
LGTM, but job name should not have spaces?
|
Sorry for the SeedJob break; I have a fix here: #6814 |
|
run seed job |
1 similar comment
|
run seed job |
|
Looks like the seed is happy and the job exists. Thanks for the review! |
|
Ah, I will remove the spaces. I don't believe it actually causes a problem as it happens. |
5ab6530 to
8db273f
Compare
This makes a separate Jenkins job for the most expensive pieces of the Java PreCommit uber job.
Follow this checklist to help us incorporate your contribution quickly and easily:
[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.It will help us expedite review of your Pull Request if you tag someone (e.g.
@username) to look at it.Post-Commit Tests Status (on master branch)