Skip to content

Commit

Permalink
Implemented Trilinos versions for Example driver (#600)
Browse files Browse the repository at this point in the history
This is for testing the CDashAnalyzeReportRandomFailures.py
runDriver().
  • Loading branch information
achauphan committed Feb 13, 2024
1 parent 6285f6c commit 40d2d28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ def checkTargetTopicRandomFailure(self, targetTopicPair, knownTargetTopicPairs):
return targetTopicPair in knownTargetTopicPairs

class ExampleExtractBuildNameStrategy:
pass

def getCoreBuildName(self, fullBuildName):
coreBuildName = fullBuildName.rsplit('-',1)[0]
return coreBuildName





Expand Down
5 changes: 1 addition & 4 deletions tribits/ci_support/CDashAnalyzeReportRandomFailures.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def runDriver(self):
for nonpassingTest in initialNonpassingTestsLOD:

# Remove unique jenkins run ID from build name
correctedBuildName = nonpassingTest['buildName'].rsplit('-', 1)[0]
# NOTE: This is project specific code. As Ross pointed out, buildName
# contains a lot of Trilinos specific prefix and suffix that should
# be processed by a Strategy class to be more project agnostic.
correctedBuildName = self.extractBuildNameStrategy.getCoreBuildName(nonpassingTest['buildName'])

buildNameMax = 80
shortenedBuildName = correctedBuildName[:buildNameMax]
Expand Down

0 comments on commit 40d2d28

Please sign in to comment.