From 55e59458a28cdb76714f3ed2cba89983765aad10 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Thu, 16 Jul 2026 17:36:16 +0200 Subject: [PATCH] test(host): instrument the live resize spike (tracing + CCD-visibility probe) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On-glass finding: from an ssh/schtasks session-0 context QueryDisplayConfig returns nothing at all — the activation ladder is blind there, so the live tests can only run from an INTERACTIVE (desktop) admin prompt on the box; the probe line makes that precondition self-diagnosing. Also verified live: the v4 driver handshake ('pf-vdisplay protocol 4') and ADD on the new driver. Co-Authored-By: Claude Fable 5 --- .../src/vdisplay/windows/pf_vdisplay.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/punktfunk-host/src/vdisplay/windows/pf_vdisplay.rs b/crates/punktfunk-host/src/vdisplay/windows/pf_vdisplay.rs index ff788ac8..ce3d0ca2 100644 --- a/crates/punktfunk-host/src/vdisplay/windows/pf_vdisplay.rs +++ b/crates/punktfunk-host/src/vdisplay/windows/pf_vdisplay.rs @@ -786,6 +786,21 @@ mod tests { if std::env::var("PUNKTFUNK_PF_VDISPLAY_LIVE").is_err() { return; } + // Live-run diagnostics: surface the manager/backend tracing (activation ladder, settle + // waits, UPDATE_MODES) on stdout — a bare test harness has no subscriber, which made the + // first on-glass run blind. + let _ = tracing_subscriber::fmt() + .with_env_filter( + tracing_subscriber::EnvFilter::try_from_default_env() + .unwrap_or_else(|_| "debug".into()), + ) + .try_init(); + // Context probe: can this process see the CCD active-path set at all? (`None` = the query + // itself fails in this session/window-station — the whole ladder would be blind, and a + // "monitor never activated" verdict would be an artifact of the test context.) + // SAFETY: CCD query over an owned empty slice (test-only diagnostics). + let active0 = unsafe { crate::win_display::count_other_active(&[]) }; + println!("spike: CCD active paths visible before create: {active0:?}"); let mut vd = PfVdisplayDisplay::new().expect("open pf-vdisplay"); let first = vd .create(Mode {