From 5473a1d64b97d6ae3d0d5c9567723b607a3410e4 Mon Sep 17 00:00:00 2001 From: Cheng Zhou Date: Mon, 20 May 2024 17:41:09 +0800 Subject: [PATCH] wip --- .github/scripts/hypo/s3_op.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/hypo/s3_op.py b/.github/scripts/hypo/s3_op.py index 864396ae5bec..464d2a2d3346 100644 --- a/.github/scripts/hypo/s3_op.py +++ b/.github/scripts/hypo/s3_op.py @@ -1,6 +1,7 @@ import hashlib import json import os +import re import subprocess try: __import__('xattr') @@ -66,7 +67,9 @@ def handleException(self, e, action, **kwargs): message = output.get('error', {}).get('message', 'error message not found') return Exception(f'returncode:{e.returncode} {message}') except ValueError as ve: - return Exception(f'returncode:{e.returncode} output:{e.output.decode()}') + output = e.output.decode() + output = re.sub(r'\b\d+\.\d+\b|\b\d+\b', '***', output) + return Exception(f'returncode:{e.returncode} output:{output}') else: self.logger.info(f'{action} {kwargs} failed: {e}') return e