From 61cc013f0e5ff775ea3f2ad9560c570860b360f3 Mon Sep 17 00:00:00 2001 From: Jan Patrick Lehr Date: Tue, 7 Jul 2026 16:24:35 +0200 Subject: [PATCH 1/2] [CK] Check git validity instead of dir existence (#2321) --- bin/run_composable-kernels.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/run_composable-kernels.sh b/bin/run_composable-kernels.sh index 0184330f2..574d17077 100755 --- a/bin/run_composable-kernels.sh +++ b/bin/run_composable-kernels.sh @@ -282,7 +282,14 @@ if [ ! -d "${CK_TOP}" ]; then mkdir -p "${CK_TOP}" || exit 1 fi -if [ ! -d "${CK_REPO}" ]; then +# Validate that CK_REPO is an actual git checkout, not just an existing +# directory. Alola periodically wipes the *contents* of old node-local dirs +# while leaving the directory shells behind, which yields a CK_REPO that +# exists but has no .git (and no CMakeLists.txt), breaking the build. A plain +# "-d" test would skip the clone and then fail. Re-clone when the tree is +# missing or not a valid repo; only pull when it is a healthy checkout. +if ! git -C "${CK_REPO}" rev-parse --is-inside-work-tree >/dev/null 2>&1; then + rm -rf "${CK_REPO}" git clone --single-branch --depth 1 ${CKRepoURL} "${CK_REPO}" elif [ "${ShouldUpdateCKRepo}" == 'yes' ]; then pushd "${CK_REPO}" || exit 1 From 82e63e1c13c83e946c1a7f0a9270a90d974105fa Mon Sep 17 00:00:00 2001 From: Greg Rodgers Date: Tue, 7 Jul 2026 13:18:50 -0400 Subject: [PATCH 2/2] [SMOKE] turn on -fuse-emissary-print so printf n format works (#2322) --- test/smoke/helloworld%n/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/smoke/helloworld%n/Makefile b/test/smoke/helloworld%n/Makefile index a1a819858..51d5ebc57 100644 --- a/test/smoke/helloworld%n/Makefile +++ b/test/smoke/helloworld%n/Makefile @@ -5,6 +5,11 @@ TESTSRC_MAIN = helloworld.c TESTSRC_AUX = TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX) +# The %n printf format does not work with libc printf so force emissary printf +ifeq ($(shell echo 'int main() { return 0; }' | $(CC) -fuse-emissary-print -xc - 2>/dev/null && echo true), true) + EXTRA_CFLAGS=-fuse-emissary-print +endif + CLANG ?= clang OMP_BIN = $(AOMP)/bin/$(CLANG) CC = $(OMP_BIN) $(VERBOSE)