Skip to content

Commit

Permalink
[Commit Slider] Fix logs absence (#27941)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
  • Loading branch information
yury-intel authored Dec 11, 2024
1 parent 474c66c commit 06de644
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/plugins/intel_cpu/tools/commit_slider/commit_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@
if curCfgData['userLogPath']:
permLogPath = curCfgData['userLogPath']

safeClearDir(permLogPath, curCfgData)
if not curCfgData['clearLogsAposteriori']:
if curCfgData['clearLogsAposteriori']:
safeClearDir(permLogPath, curCfgData)
elif not tempLogPath == permLogPath:
safeClearDir(permLogPath, curCfgData)
copy_tree(tempLogPath, permLogPath)

safeClearDir(permCachePath, curCfgData)
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/intel_cpu/tools/commit_slider/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,14 @@ def requireBinarySearchData(td: TestData, rsc: map):
)
[setattr(td, key, td.commonRsc[key] \
if not key in td.testCfg or \
not isinstance(td.testCfg[key], str) \
not (isinstance(td.testCfg[key], str) or \
isinstance(td.testCfg[key], bool)) \
else td.testCfg[key]) for key in [
'repoStructure',
'userCachePath',
'userLogPath',
'clearLogsAposteriori', 'clearCache',
'clearLogsAposteriori',
'clearCache',
'mainFile', 'repoPath'
]]
td.patternPrefix = td.commonRsc['patchGeneratorPrefix']
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/intel_cpu/tools/commit_slider/utils/modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def preliminaryCheck(self, list, cfg):
if cfg["preliminaryCheckCfg"]["checkBenchmarkModelPath"]:
cmdStr = cfg["appCmd"]
matcher = re.search(
"benchmark.*-m[\s*]([^\S]*)",
r"benchmark.*-m[\s*]([^\S]*)",
cmdStr,
flags=re.MULTILINE
)
Expand Down Expand Up @@ -287,7 +287,7 @@ def getCommitInfo(self, commit):
class AccuracyCheckerMode(Mode):
def __init__(self, cfg):
super().__init__(cfg)
self.thresholdPattern = ":\s([0-9]*[.][0-9]*)%.*abs error"
self.thresholdPattern = r":\s([0-9]*[.][0-9]*)%.*abs error"
self.curMetric = None
self.createCash()

Expand Down

0 comments on commit 06de644

Please sign in to comment.