From b68bd380dd4b6e3f34f17318845933b29862043d Mon Sep 17 00:00:00 2001 From: Pawan Pinjarkar Date: Thu, 25 Jun 2026 10:46:46 -0400 Subject: [PATCH] NO-ISSUE: Debug UI. Reduce logging when deleting files --- agent/iso_no_registry.sh | 6 ++-- .../ui_driven_cluster_installation/main.go | 33 ++++++++++++++++++- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/agent/iso_no_registry.sh b/agent/iso_no_registry.sh index ef3000872..6427e96bc 100755 --- a/agent/iso_no_registry.sh +++ b/agent/iso_no_registry.sh @@ -122,12 +122,10 @@ function cleanup_diskspace_agent_iso_noregistry() { for dir in "$asset_dir"/[0-9]*.[0-9]*.*; do [ -d "$dir" ] || continue - echo "Cleaning up directory: $dir" - # Delete all files and symlinks except the agent-ove ISO - sudo find "$dir" \( -type f -o -type l \) ! -name "agent-ove.${ARCH}.iso" -print -delete + sudo find "$dir" \( -type f -o -type l \) ! -name "agent-ove.${ARCH}.iso" -delete # Remove any empty directories left behind - sudo find "$dir" -type d -empty -print -delete + sudo find "$dir" -type d -empty -delete done } diff --git a/agent/isobuilder/ui_driven_cluster_installation/main.go b/agent/isobuilder/ui_driven_cluster_installation/main.go index 3a7fe7256..114fb87f2 100644 --- a/agent/isobuilder/ui_driven_cluster_installation/main.go +++ b/agent/isobuilder/ui_driven_cluster_installation/main.go @@ -496,7 +496,38 @@ func virtualizationBundle(page *rod.Page, path string) error { } wait(5 * time.Second) - page.MustElement("button[name='next']").MustWaitEnabled().MustScrollIntoView().MustWaitEnabled() + + logrus.Info("Looking for next button") + nextButton := page.MustElement("button[name='next']") + logrus.Info("Found next button") + err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-found")) + if err != nil { + return err + } + + logrus.Info("Waiting for the next button to be enabled") + wait(5 * time.Second) + nextButton.MustWaitEnabled() + err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-enabled-1")) + if err != nil { + return err + } + + logrus.Info("Waiting for the next button to be available in scrollable page") + wait(5 * time.Second) + nextButton.MustScrollIntoView() + err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-scrollable")) + if err != nil { + return err + } + + logrus.Info("Waiting for the next button to be enabled") + wait(5 * time.Second) + nextButton.MustWaitEnabled() + err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-enabled-2")) + if err != nil { + return err + } err = saveFullPageScreenshot(page, timestampedPath(path, "end")) if err != nil {