Andrew Kyle Purtell created PHOENIX-8104:
--------------------------------------------

             Summary: ParallelStatsDisabledTest execution runs 
NeedsOwnMiniClusterTest cases twice
                 Key: PHOENIX-8104
                 URL: https://issues.apache.org/jira/browse/PHOENIX-8104
             Project: Phoenix
          Issue Type: Test
          Components: test
    Affects Versions: 5.3.2
            Reporter: Andrew Kyle Purtell
            Assignee: Andrew Kyle Purtell
             Fix For: 5.4.0, 5.3.3


The precommit "Test coverage" job checks that each test class runs in exactly 
one CI job. It fails on PR runs on master, 5.3 and 5.2. The CI failure cache 
has 29 such runs. The log of run 45131582694 is representative and shows:

 
{noformat}
ERROR: these test classes ran in more than one job:
  org.apache.phoenix.end2end.SortOrderWithRegionMoves2IT 
(NeedsOwnMiniClusterTest-Q-Z.txt, ParallelStatsDisabledTest-S-Z.txt)
  org.apache.phoenix.end2end.SortOrderWithRegionMovesIT 
(NeedsOwnMiniClusterTest-Q-Z.txt, ParallelStatsDisabledTest-S-Z.txt)
  {noformat}
 

The root {{pom.xml}} has three failsafe executions: 
{{{}ParallelStatsEnabledTest{}}}, {{ParallelStatsDisabledTest}} and 
{{{}NeedTheirOwnClusterTests{}}}. Each execution sets only {{{}<groups>{}}}. 
None sets {{{}<excludedGroups>{}}}.

{{SortOrderIT}} has {{{}@Category(ParallelStatsDisabledTest.class){}}}. 
{{SortOrderWithRegionMovesIT}} and {{SortOrderWithRegionMoves2IT}} extend 
{{SortOrderIT}} and have {{{}@Category(NeedsOwnMiniClusterTest.class){}}}. The 
failsafe category filter also matches the category of a parent class. Thus both 
subclasses match two groups. They run in the {{ParallelStatsDisabledTest}} S-Z 
job on a shared cluster, and again in the {{NeedsOwnMiniClusterTest}} Q-Z job 
on their own cluster.

A scan of every runnable IT on asf/master found one more class with this 
layout: {{join.SortMergeJoinNoSpoolingIT}} ({{{}NeedsOwnMiniClusterTest{}}}) 
extends {{SortMergeJoinNoIndexIT}} ({{{}ParallelStatsDisabledTest{}}}). The 
cached CI logs show that it runs only in the {{NeedsOwnMiniClusterTest}} Q-Z 
job. 

No other class matches more than one group.

No class has a method-level {{{}@Category{}}}. 

No NeedsOwnMiniClusterTest class extends a ParallelStatsEnabledTest class.

This is a CI configuration issue.
h2.  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to