-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create module file CDashAnalyzeReportRandomFailures and example script (
#600) Create driver class CDashAnalyzeReportRandomFailuresDriver inside module file CDashAnalyzeReportRandomFailures.py that will contain the main general functionality of the random test failure tool. The driver class accepts two strategy classes passed from the example script. These strategy classes ExampleVersionInfoStrategy and ExampleBuildNameStrategy contain the project specific implementation that is generically used inside of the driver class.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
import os | ||
import argparse | ||
|
||
from FindGeneralScriptSupport import * | ||
import CDashQueryAnalyzeReport as CDQAR | ||
|
||
class CDashAnalyzeReportRandomFailuresDriver: | ||
|
||
def __init__(self, versionInfoStrategy, extractBuildNameStrategy): | ||
self.getTargetTopicSha1Strategy = versionInfoStrategy | ||
self.getextractBuildNameStrategy = extractBuildNameStrategy | ||
self.args = None | ||
|
||
def runDriver(self): | ||
pass |
33 changes: 33 additions & 0 deletions
33
tribits/ci_support/example_cdash_analyze_and_report_random_failures.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
|
||
import sys | ||
import argparse | ||
import re as regex | ||
|
||
import CDashAnalyzeReportRandomFailures as CDARRF | ||
|
||
|
||
def main(): | ||
|
||
cdashAnalyzeAndReportRandomFailures = \ | ||
CDARRF.CDashAnalyzeReportRandomFailuresDriver( | ||
ExampleVersionInfoStrategy(), | ||
ExtractBuildNameStrategy()) | ||
|
||
cdashAnalyzeAndReportRandomFailures.runDriver() | ||
|
||
class ExampleVersionInfoStrategy: | ||
|
||
def getTopicTargetSha1s(buildData): | ||
pass | ||
|
||
def checkTargetTopicRandomFailure(targetTopic, knownTargetTopics): | ||
pass | ||
|
||
class ExtractBuildNameStrategy: | ||
pass | ||
|
||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |