[diffusion] CI: fix generate mode and add cli test (#16174)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Mick
2025-12-31 09:51:48 +08:00
committed by GitHub
parent 75b72eb8b2
commit 5bf0d862dd
11 changed files with 132 additions and 961 deletions

View File

@@ -227,9 +227,9 @@ class PerformanceLogger:
os.makedirs(os.path.dirname(abs_path), exist_ok=True)
with open(abs_path, "w", encoding="utf-8") as f:
json.dump(report, f, indent=2)
logger.info(f"[Performance] Metrics dumped to: {abs_path}")
logger.info(f"Metrics dumped to: {abs_path}")
except IOError as e:
logger.error(f"[Performance] Failed to dump metrics to {abs_path}: {e}")
logger.error(f"Failed to dump metrics to {abs_path}: {e}")
@classmethod
def log_request_summary(