[ 
https://issues.apache.org/jira/browse/HIVE-24607?focusedWorklogId=533688&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-533688
 ]

ASF GitHub Bot logged work on HIVE-24607:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Jan/21 04:09
            Start Date: 10/Jan/21 04:09
    Worklog Time Spent: 10m 
      Work Description: zabetak opened a new pull request #1843:
URL: https://github.com/apache/hive/pull/1843


   ### What changes were proposed in this pull request?
   New JUnit annotation for running/skipping tests when ports are 
available/taken
   
   ### Why are the changes needed?
   Avoid unexpected failures in tests when ports required in tests are taken.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   `mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition`
   [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 1
   ```
   nc -l 2001 &
   mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition
   ```
   [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 2
   ```
   nc -l 5050 &
   mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition
   ```
   [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 3
   ```
   nc -l 2000 &
   mvn test -pl testutils -Dtest=TestEnabledIfPortsAvailableCondition
   ```
   [WARNING] Tests run: 3, Failures: 0, Errors: 0, Skipped: 3


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 533688)
    Time Spent: 50m  (was: 40m)

> Add JUnit annotation for running tests only if ports are available
> ------------------------------------------------------------------
>
>                 Key: HIVE-24607
>                 URL: https://issues.apache.org/jira/browse/HIVE-24607
>             Project: Hive
>          Issue Type: Improvement
>          Components: Testing Infrastructure
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Some unit tests tend to rely on some specific ports assuming that they are 
> available. Moreover, in some cases it is necessary to create explicitly a 
> socket bound to some specific port. 
> The goal of this Jira is to add a JUnit annotation that will run a test only 
> if the requested ports are available (skip it otherwise).
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to