Skip to content

[BEAM-5845] Split Dataflow run of examples precommit to its own job - #6802

Merged
kennknowles merged 1 commit into
apache:masterfrom
kennknowles:dataflow-precommit
Oct 24, 2018
Merged

kennknowles merged 1 commit into
apache:masterfrom
kennknowles:dataflow-precommit

Conversation

@kennknowles

Copy link
Copy Markdown
Member

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:

  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

@kennknowles

Copy link
Copy Markdown
Member Author

R: @swegner @alanmyrvold any pitfalls?

@swegner swegner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with feedback

PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java Examples Dataflow',
gradleTask: ':beam-runners-google-cloud-dataflow-java-examples:preCommit',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:

  1. 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.
  2. Better discoverability, and easier to type than the super-long project name

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the streaming pre-commit target missing from your new job?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@kennknowles kennknowles left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@kennknowles

Copy link
Copy Markdown
Member Author

Confirmed that the target works and the jobs succeeded.

@kennknowles

Copy link
Copy Markdown
Member Author

run seed job

1 similar comment
@kennknowles

Copy link
Copy Markdown
Member Author

run seed job


PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java Examples Dataflow',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
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 alanmyrvold left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but job name should not have spaces?

@alanmyrvold

Copy link
Copy Markdown
Member

Seed job maybe failing due to @swegner's #6805 ?

@swegner

swegner commented Oct 24, 2018

Copy link
Copy Markdown
Contributor

Sorry for the SeedJob break; I have a fix here: #6814

@kennknowles

Copy link
Copy Markdown
Member Author

run seed job

1 similar comment
@kennknowles

Copy link
Copy Markdown
Member Author

run seed job

@kennknowles

Copy link
Copy Markdown
Member Author

Looks like the seed is happy and the job exists. Thanks for the review!

@kennknowles

Copy link
Copy Markdown
Member Author

Ah, I will remove the spaces. I don't believe it actually causes a problem as it happens.

@kennknowles
kennknowles merged commit 6dcabbf into apache:master Oct 24, 2018
@kennknowles
kennknowles deleted the dataflow-precommit branch October 26, 2018 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants