Skip to content

Commit

Permalink
run "Last N Failed" for nm/ps/emb/emb-ps/view test types
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Dec 29, 2023
1 parent a7618fc commit cfdb995
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions common_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
# * uses N=50 now, this could be increased to catch more failures or decreased
# to run faster
# * more branch protection builders should use it
# * run for debug and sanitizers
# * gcov builder
# * how to do it for install/upgrade tests?
#
class FetchTestData(MTR):
def __init__(self, mtrDbPool, test_type, **kwargs):
Expand Down Expand Up @@ -308,8 +310,16 @@ def getTests(props):
return mtr_additional_args

f = getBuildFactoryPreTest()
f.addStep(FetchTestData(name="Get last N failed tests", mtrDbPool=mtrDbPool, test_type='nm'))
addTests(f, 'nm', mtrDbPool, getTests)

def add_tests_for_type(typ):
f.addStep(FetchTestData(name=f"Get last N failed {typ} tests", mtrDbPool=mtrDbPool, test_type=typ))
addTests(f, typ, mtrDbPool, getTests)

add_tests_for_type('nm')
add_tests_for_type('ps')
add_tests_for_type('emb')
add_tests_for_type('emb-ps')
add_tests_for_type('view')
return addPostTests(f)

def getRpmAutobakeFactory(mtrDbPool):
Expand Down

0 comments on commit cfdb995

Please sign in to comment.