From be85fe8eae7fc01d0cadf030761543311d3bf84d Mon Sep 17 00:00:00 2001 From: Robo Date: Thu, 15 Jan 2026 04:59:35 +0900 Subject: [PATCH] ci: check for valid compilation artifacts in alpine stage (#284096) * ci: check for valid compilation artifacts in alpine stage * chore: address review feedback * chore: improve logging --- build/azure-pipelines/product-compile.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build/azure-pipelines/product-compile.yml b/build/azure-pipelines/product-compile.yml index 2aba62deea2..bc13d980df2 100644 --- a/build/azure-pipelines/product-compile.yml +++ b/build/azure-pipelines/product-compile.yml @@ -100,6 +100,23 @@ jobs: GITHUB_TOKEN: "$(github-distro-mixin-password)" displayName: Compile & Hygiene + - script: | + set -e + + [ -d "out-build" ] || { echo "ERROR: out-build folder is missing" >&2; exit 1; } + [ -n "$(find out-build -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: out-build folder is empty" >&2; exit 1; } + echo "out-build exists and is not empty" + + ls -d out-vscode-* >/dev/null 2>&1 || { echo "ERROR: No out-vscode-* folders found" >&2; exit 1; } + for folder in out-vscode-*; do + [ -d "$folder" ] || { echo "ERROR: $folder is missing" >&2; exit 1; } + [ -n "$(find "$folder" -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: $folder is empty" >&2; exit 1; } + echo "$folder exists and is not empty" + done + + echo "All required compilation folders checked." + displayName: Validate compilation folders + - script: | set -e npm run compile