Pull request failing Travis IO test for unknown reason

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Pull request failing Travis IO test for unknown reason

jpcarterara@gmail.com
I am new to committing code to a git repo, so I apologize if I ask anything really obvious.

So I have submitted a pull request for Flink and the TravisIO tests all pass except ones where TEST=“misc”. Looking through the output of the tests I can’t figure out what is wrong. There were tests that failed before because of improper formatting and the like, but I fixed those and the relevant tests passed. So I am at a bit of a loss with what I am missing now.

Here is the TravisIO link: https://travis-ci.org/Jicaar/flink/builds/374488723 .

Thanks for any help in advance!
Reply | Threaded
Open this post in threaded view
|

Re: Pull request failing Travis IO test for unknown reason

dwysakowicz
Hi,

The interesting line is:

17:43:48.333 [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with unapproved license: 1 See RAT report in: /home/travis/build/Jicaar/flink/target/rat.txt -> [Help 1]

It basically means that you've added a new file without ASF header. If
you run this command locally:

mvn -DskipTests verify

you can check in the rat report file, which file violated that rule.

Best,
Dawid

On 29/05/18 14:18, [hidden email] wrote:
> I am new to committing code to a git repo, so I apologize if I ask anything really obvious.
>
> So I have submitted a pull request for Flink and the TravisIO tests all pass except ones where TEST=“misc”. Looking through the output of the tests I can’t figure out what is wrong. There were tests that failed before because of improper formatting and the like, but I fixed those and the relevant tests passed. So I am at a bit of a loss with what I am missing now.
>
> Here is the TravisIO link: https://travis-ci.org/Jicaar/flink/builds/374488723 .
>
> Thanks for any help in advance!



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Pull request failing Travis IO test for unknown reason

Chesnay Schepler-3
In reply to this post by jpcarterara@gmail.com
There are some tests that are unstable. Committers will evaluate whether
the failure is related to the PR.
Please do not push commits for the sake of getting that perfect green build.

In your particular case you've added files that do not have an apache
license header:

17:43:48.333 [ERROR] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.12:check (default) on project
flink-parent: Too many files with unapproved license: 1 See RAT report
in: /home/travis/build/Jicaar/flink/target/rat.txt -> [Help 1]

You can run mvn validate locally which will look for missing license
headers.

On 29.05.2018 14:18, [hidden email] wrote:
> I am new to committing code to a git repo, so I apologize if I ask anything really obvious.
>
> So I have submitted a pull request for Flink and the TravisIO tests all pass except ones where TEST=“misc”. Looking through the output of the tests I can’t figure out what is wrong. There were tests that failed before because of improper formatting and the like, but I fixed those and the relevant tests passed. So I am at a bit of a loss with what I am missing now.
>
> Here is the TravisIO link: https://travis-ci.org/Jicaar/flink/builds/374488723 .
>
> Thanks for any help in advance!
>

Reply | Threaded
Open this post in threaded view
|

Re: Pull request failing Travis IO test for unknown reason

Rong Rong
+1. you can also run `mvn clean verify` locally before a PR, or `mvn verify
-o` against the module you modified (this will speed up the build)

On Tue, May 29, 2018 at 5:34 AM, Chesnay Schepler <[hidden email]>
wrote:

> There are some tests that are unstable. Committers will evaluate whether
> the failure is related to the PR.
> Please do not push commits for the sake of getting that perfect green
> build.
>
> In your particular case you've added files that do not have an apache
> license header:
>
> 17:43:48.333 [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check
> (default) on project flink-parent: Too many files with unapproved license:
> 1 See RAT report in: /home/travis/build/Jicaar/flink/target/rat.txt ->
> [Help 1]
>
> You can run mvn validate locally which will look for missing license
> headers.
>
>
> On 29.05.2018 14:18, [hidden email] wrote:
>
>> I am new to committing code to a git repo, so I apologize if I ask
>> anything really obvious.
>>
>> So I have submitted a pull request for Flink and the TravisIO tests all
>> pass except ones where TEST=“misc”. Looking through the output of the tests
>> I can’t figure out what is wrong. There were tests that failed before
>> because of improper formatting and the like, but I fixed those and the
>> relevant tests passed. So I am at a bit of a loss with what I am missing
>> now.
>>
>> Here is the TravisIO link: https://travis-ci.org/Jicaar/f
>> link/builds/374488723 .
>>
>> Thanks for any help in advance!
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Pull request failing Travis IO test for unknown reason

jpcarterara@gmail.com
In reply to this post by dwysakowicz


On 2018/05/29 12:30:21, Dawid Wysakowicz <[hidden email]> wrote:

> Hi,
>
> The interesting line is:
>
> 17:43:48.333 [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with unapproved license: 1 See RAT report in: /home/travis/build/Jicaar/flink/target/rat.txt -> [Help 1]
>
> It basically means that you've added a new file without ASF header. If
> you run this command locally:
>
> mvn -DskipTests verify
>
> you can check in the rat report file, which file violated that rule.
>
> Best,
> Dawid
>
> On 29/05/18 14:18, [hidden email] wrote:
> > I am new to committing code to a git repo, so I apologize if I ask anything really obvious.
> >
> > So I have submitted a pull request for Flink and the TravisIO tests all pass except ones where TEST=“misc”. Looking through the output of the tests I can’t figure out what is wrong. There were tests that failed before because of improper formatting and the like, but I fixed those and the relevant tests passed. So I am at a bit of a loss with what I am missing now.
> >
> > Here is the TravisIO link: https://travis-ci.org/Jicaar/flink/builds/374488723 .
> >
> > Thanks for any help in advance!
>
>
> Thanks! That resolved it.