[LU-13169] Allow test-framework to repeat subtests Created: 24/Jan/20  Updated: 05/Jun/20  Resolved: 14/Feb/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0, Lustre 2.12.5

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Related
is related to LU-13352 Test duration not reset when using ON... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

When running with ONLY=X it would be useful to allow the subtest(s) to be run multiple times in order to more efficiently reproduce intermittent test failures, or ensure that they are fixed.

I think something like ONLY_REPEAT=N to cause tests specified with ONLY= to be run N times would be useful. This is not as useful for cases when the whole test script is run, since that can just be run multiple times in a row (possibly in parallel) as each run would take a long time to complete anyway.

It looks like the right place to add this logic would be in run_test() or run_one_logged() (which would need to log the output from each repetition separately).



 Comments   
Comment by Gerrit Updater [ 24/Jan/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37321
Subject: LU-13169 tests: add ONLY_REPEAT parameter to repeat subtests
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: da9541634fd7a91877ae20532113b57103782dd2

Comment by Gerrit Updater [ 28/Jan/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37338
Subject: LU-13169 tests: quiet debug messages during tests
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 74b3a5630f590c7fa70381abc4d909c058ed23bf

Comment by Gerrit Updater [ 14/Feb/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37321/
Subject: LU-13169 tests: add ONLY_REPEAT parameter to repeat subtests
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e16e3d46ee8c44e691c5cd3d25161f2f297fa0fd

Comment by Peter Jones [ 14/Feb/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 14/Feb/20 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37586
Subject: LU-13169 tests: add ONLY_REPEAT parameter to repeat subtests
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 897e0b42007f1a3124cd33992f930c5d637dffd7

Comment by Gerrit Updater [ 25/Mar/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37586/
Subject: LU-13169 tests: add ONLY_REPEAT parameter to repeat subtests
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 39b5fba0249f9483dd88526e70d94cc0f1fcfd8d

Comment by Gerrit Updater [ 14/Apr/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37338/
Subject: LU-13169 tests: quiet debug messages during tests
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 56dab2cd0de9677461df977e046c5eaae68251b6

Generated at Sat Feb 10 02:58:58 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.