From 5444fdd9bbf09aac10d98a02a651067486ee0160 Mon Sep 17 00:00:00 2001 From: mahee96 <47920326+mahee96@users.noreply.github.com> Date: Wed, 25 Feb 2026 03:14:50 +0530 Subject: [PATCH] CI: handle zipping irrespective of encryption is possible or not --- scripts/ci/workflow.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/ci/workflow.py b/scripts/ci/workflow.py index 835a2cdf..2c3c41ec 100644 --- a/scripts/ci/workflow.py +++ b/scripts/ci/workflow.py @@ -216,12 +216,11 @@ def tests_run(model): def encrypt_logs(name): pwd = getenv("BUILD_LOG_ZIP_PASSWORD") - - # skip encryption entirely if no password provided - if not pwd or not pwd.strip(): - print("BUILD_LOG_ZIP_PASSWORD not set — skipping encryption", file=sys.stderr) - return cwd = getcwd() + if not pwd or not pwd.strip(): + print("BUILD_LOG_ZIP_PASSWORD not set — logs will be uploaded UNENCRYPTED", file=sys.stderr) + run(f'cd {cwd}/build/logs && zip -r {cwd}/{name}.zip *') + return run(f'cd {cwd}/build/logs && zip -e -P "{pwd}" {cwd}/{name}.zip *') # ----------------------------------------------------------