Skip to content

Commit

Permalink
Create module file CDashAnalyzeReportRandomFailures and example script (
Browse files Browse the repository at this point in the history
#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
achauphan committed Feb 13, 2024
1 parent 1b2601b commit d84a085
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tribits/ci_support/CDashAnalyzeReportRandomFailures.py
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
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())

0 comments on commit d84a085

Please sign in to comment.