From dc36f1436ba37bfdef7a4c74e21e8c1e55b5dcec Mon Sep 17 00:00:00 2001 From: Masonmason Date: Wed, 23 Jul 2025 22:39:57 +0800 Subject: [PATCH] debug: Add comprehensive debug output and test signals - Add time import for test result generation - Add test signal emissions to verify GUI connection works - Add debug prints for signal establishment - Test both result_updated and terminal_output signals - This will help identify if the issue is signal connection or data flow --- cluster4npu_ui/ui/dialogs/deployment.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cluster4npu_ui/ui/dialogs/deployment.py b/cluster4npu_ui/ui/dialogs/deployment.py index 42039f9..ad19db8 100644 --- a/cluster4npu_ui/ui/dialogs/deployment.py +++ b/cluster4npu_ui/ui/dialogs/deployment.py @@ -23,6 +23,7 @@ import sys import json import threading import traceback +import time from typing import Dict, Any, List, Optional from PyQt5.QtWidgets import ( QDialog, QVBoxLayout, QHBoxLayout, QLabel, QTextEdit, QPushButton, @@ -147,6 +148,20 @@ class DeploymentWorker(QThread): self.result_updated.emit(result_dict) self.orchestrator.set_result_callback(combined_result_callback) + + # Test emit a sample result to verify GUI connection + test_result = { + 'pipeline_id': 'test_pipeline', + 'timestamp': time.time(), + 'stage_results': { + 'test_stage': (-0.5, 'Test Result') + }, + 'metadata': {} + } + print("๐Ÿ” DEBUG: Emitting test result to verify GUI connection") + self.result_updated.emit(test_result) + self.terminal_output.emit("๐Ÿงช TEST: This is a test terminal message") + self.orchestrator.start() self.progress_updated.emit(100, "Pipeline deployed successfully!") @@ -660,6 +675,9 @@ Stage Configurations: self.deployment_worker.result_updated.connect(self.update_inference_results) self.deployment_worker.terminal_output.connect(self.update_terminal_output) + # Test the signal connections + print("๐Ÿ” DEBUG: Signal connections established") + self.deployment_worker.start() def stop_deployment(self):