merge: reconcile UI updates with DSH audit fault isolation
This commit is contained in:
commit
e565f67b46
145 files changed
+3688
-112
No files matched your search
@@ -71,8 +71,16 @@ def phase(args):
|
||||
from dx_productivity.trial_task_center.ui.main_window import TrialTaskCenterWindow
|
||||
from dx_productivity.trial_task_center.ui.dsh_task_lifecycle import DshLifecycleDialog
|
||||
from dx_productivity.trial_task_center.ui.dsh_operations import DshScheduleDialog
|
||||
from dx_productivity.trial_task_center.ui import dsh_automation
|
||||
from dx_productivity.dsh.run_journal import RunJournal
|
||||
report = {'phase': args.phase, 'executor': 'controlled_no_match', 'realCadStarted': False, 'checks': [], 'dialogs': []}
|
||||
def read_only_publisher(_config_path):
|
||||
def publish(record, _archive):
|
||||
report.setdefault('blockedIssueSubmissions', []).append(record['incident_id'])
|
||||
return {'status': 'unavailable', 'reason': 'acceptance_read_only'}
|
||||
return publish
|
||||
# Keep real ticket GETs, but a failed acceptance must never publish fixtures.
|
||||
dsh_automation.GitIssuePublisher = read_only_publisher
|
||||
state = {'child': None, 'stage': 'opening', 'deadline': time.monotonic() + 180, 'selection': None, 'scheduleDialogs': 0}
|
||||
selection_path = output / 'native-selection.json'
|
||||
if selection_path.is_file():
|
||||
@@ -167,6 +175,9 @@ def phase(args):
|
||||
elif state['stage'] == 'selected' and window._context and not window._loading:
|
||||
QTest.mouseClick(window.dsh_navigation, Qt.MouseButton.LeftButton); state['stage'] = 'runtime'
|
||||
elif state['stage'] == 'runtime' and window._dsh_view._started:
|
||||
window._dsh_view.lifecycle_requested.connect(lambda value: report.setdefault('nativeRequests', []).append({
|
||||
'request_id': value.get('request_id'), 'capability': value.get('capability'),
|
||||
'operation': value.get('spec', {}).get('operation')}))
|
||||
state['child'] = subprocess.Popen(['node', str(REPO / 'tools/verify_dsh_operations_ui.mjs'), str(output), str(args.port), args.phase],
|
||||
cwd=REPO, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||
creationflags=subprocess.CREATE_NO_WINDOW if os.name == 'nt' else 0)
|
||||
|
||||
Reference in new issue
Block a user