Skip to content

Commit

Permalink
Renamed ExampleVersionInfoStrategy member function to be consistent (#…
Browse files Browse the repository at this point in the history
…600)

There were mixed use cases of 'targetTopic' or 'topicTarget', this renames
all cases to use 'targetTopic' approach.
  • Loading branch information
achauphan committed Feb 13, 2024
1 parent eb6f87e commit f56356a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tribits/ci_support/CDashAnalyzeReportRandomFailures.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def runDriver(self):
alwaysUseCacheFileIfExists=True)['configure']['output']

nonpassingSha1Pairs.add(
self.versionInfoStrategy.getTopicTargetSha1s(buildConfigOutput))
# nonpassingSha1Pairs.add(getTopicTargetSha1s(buildConfigOutput))
self.versionInfoStrategy.getTargetTopicSha1s(buildConfigOutput))

print("\n Test history failing sha1s: "+str(nonpassingSha1Pairs))

Expand All @@ -191,7 +190,7 @@ def runDriver(self):
alwaysUseCacheFileIfExists=True)['configure']['output']

passingSha1Pair = \
self.versionInfoStrategy.getTopicTargetSha1s(buildConfigOutput)
self.versionInfoStrategy.getTargetTopicSha1s(buildConfigOutput)

if self.versionInfoStrategy.checkTargetTopicRandomFailure(passingSha1Pair, nonpassingSha1Pairs):
print("\n Found passing sha1 pair, " + str(passingSha1Pair)+\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def main():

class ExampleVersionInfoStrategy:

def getTopicTargetSha1s(self, buildData):
def getTargetTopicSha1s(self, buildData):
pattern = r"Parent [12]:\n\s+(\w+)"
matchedList = regex.findall(pattern, buildData)

Expand Down

0 comments on commit f56356a

Please sign in to comment.