-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-254] Add apache-rat-plugin execution and fix files with missing… #297
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
Conversation
|
R: @davorbonaci |
| @@ -1,3 +1,22 @@ | |||
| <!-- | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these comments show up in the github pull request description field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's hidden in github (markdown).
|
According to this example:
Should we have this in a separate profile used by pre/post-commit tests? /cc @kennknowles who was been doing work to optimize build. |
|
Yes, I can create a dedicated profile for rat. But, I think it makes sense to enable it during the maven-release-plugin execution. |
|
In #286 I created a |
|
Sure, it makes sense. |
|
Rebased and updated according to the comments. |
|
Any comment regarding the latest update ? |
|
|
||
| The functions are generic so it supports join of any types supported by | ||
| Dataflow. Input to the join functions are PCollections of Key/Values. Both the | ||
| Beam. Input to the join functions are PCollections of Key/Values. Both the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
|
I'm updating according to @dhalperi comments. Thanks Dan ! |
|
Rebased and updated. |
|
Triage: 0.1.0-incubating, release blocking. |
|
As per in-person discussion, let's remove header enforcement from checkstyle, and run it exclusively through rat on all files, including java. |
5d67cd3 to
cadc8f9
Compare
|
Updated to use rat for java license header check (and disable checkstyle for that). |
pom.xml
Outdated
| <excludeSubProjects>false</excludeSubProjects> | ||
| <useDefaultExcludes>true</useDefaultExcludes> | ||
| <excludes> | ||
| <!-- exclude target --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace all comments with one that says to keep in sync with .gitignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, this should be super-set of gitignore.
|
Updated. |
|
Updated fixing test_wordcount.sh comment. |
|
Rat check fails on Jenkins whereas it works on my local copy. I'm checking the Jenkins workspace to identify invalid files. |
|
@jbonofre, let me know when you get a chance to fix this -- we'd like to take this asap. |
|
I'm on it, Thanks ! |
|
Rebased, and testing rat configuration. |
|
Still failing with: Caused by: org.apache.rat.mp.RatCheckException: Too many files with unapproved license: 3796 See RAT report in: /home/jenkins/jenkins-slave/workspace/beam_PreCommit_MavenVerify/target/parent-0.1.0-incubating-SNAPSHOT.rat I'm checking the content of the rat file. |
|
Updated RAT configuration for Jenkins (as it uses "local" .repository). |
|
Same issue with Kafka on Jenkins, it's not related to the PR. |
|
Do you need to rebase on master? I pushed the fix to Kafka yesterday.
|
|
Sorry, the issue is not on Kafka: it's the javadoc on Flink runner. |
|
By the way, I reproduce the issue locally with: mvn clean install -Prelease |
|
Kenn is looking at the build break. Thanks for the repro jb. On Tue, May 24, 2016 at 08:32 Jean-Baptiste Onofré notifications@github.com
|
|
There are multiple issues:
I actually think the easiest way to solve 2 would be to roll forwards by fixing the errors and silencing the warnings. There are very few actual errors. For now, I will just try to sort out why things are building when they should not be (both 1 & 2). |
|
On Tue, May 24, 2016 at 10:19 AM, Kenn Knowles notifications@github.com
|
|
It makes sense. On the other hand, I fixed javadoc issue in PR #382. FYI, the java8 examples javadoc has to be fixed too (I'm working on it). |
|
On pre vs post testing, I agree that ideally we'd test everything that matters for release in presubmit, but our build is already problematically slow. I think |
|
Looks like this needs a rebase to re-run the tests, and then I can merge. LGTM |
|
Jenkins failed due to timeout (not related directly to the PR): |
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull requestmvn clean verify. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.
Add apache-rat-plugin execution and fix files with missing license header.