flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uce <...@git.apache.org>
Subject [GitHub] flink pull request: [tests] Add RetryOnFailure annotation
Date Tue, 22 Sep 2015 14:07:54 GMT
GitHub user uce opened a pull request:

    https://github.com/apache/flink/pull/1167

    [tests] Add RetryOnFailure annotation

    Yesterday I was looking into ways to automatically retry selective tests, which are known
to be unstable on the CI service. This PR adds a small utility for this.
    
    ```java
    public class YourTest {
    
        @Rule
        public RetryRule retryRule = new RetryRule();
    
        @Test
        @RetryOnFailure(times=1)
        public void yourTest() {
            // This will be retried 1 time (total runs 2) before failing the test.
            throw new Exception("Failing test");
        }
    }
    ```
    
    @tillrohrmann and @rmetzger have worked on build stability lately. Do you think this is
useful? Is there a test for which you would use this? If you don't think so, close this. I
don't think we should add unused "utilities".

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/uce/flink retry

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1167.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1167
    
----
commit 9a5ea66dd75214de602b6121719fe722c922fa3a
Author: Ufuk Celebi <uce@apache.org>
Date:   2015-09-21T19:23:04Z

    [tests] Add RetryOnFailure annotation

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message