Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(rendering): limit the notch skip escape to named WARP adapters, label CI skips
Richie McIlroy19357a9332d5
diff --git a/.github/workflows/sync-tests.yml b/.github/workflows/sync-tests.ymlindex 5852dfe75..fb5d1b582 100644--- a/.github/workflows/sync-tests.yml+++ b/.github/workflows/sync-tests.yml@@ -203,7 +203,12 @@ jobs:print("| Case | Result | Detail |")print("| --- | --- | --- |")for case in report.get("cases", []):- verdict = "PASS" if case["pass"] else "FAIL"+ if not case["pass"]:+ verdict = "FAIL"+ elif "skipped:" in case["detail"]:+ verdict = "SKIP"+ else:+ verdict = "PASS"detail = case["detail"].replace("|", "\\|")print(f"| {case['name']} | {verdict} | {detail} |")PYEOFdiff --git a/crates/rendering/src/layers/notch.rs b/crates/rendering/src/layers/notch.rsindex 01aa74246..a20e413b8 100644--- a/crates/rendering/src/layers/notch.rs+++ b/crates/rendering/src/layers/notch.rs@@ -291,23 +291,24 @@ mod tests {}/// Renders on the available adapter, but returns None (skip) when a- /// software rasterizer produced output that fails the basic sanity of- /// "the clear executed and the layer drew something". Hosted CI GPU- /// stacks break underneath us (the windows-2022 WARP adapter stopped+ /// known-broken software rasterizer produced output that fails the basic+ /// sanity of "the clear executed and the layer drew something". Hosted CI+ /// GPU stacks break underneath us (the windows-2022 WARP adapter stopped/// compositing correctly with a runner image update, with no repo- /// change); on real hardware — and on software adapters that do render,- /// like Ubuntu's lavapipe — the shape assertions still run at full- /// strength.+ /// change). The escape hatch is limited by NAME to the WARP family: on+ /// real hardware and on Ubuntu's lavapipe (DeviceType::Cpu but renders+ /// correctly) the shape assertions run at full strength, so a real+ /// regression that draws nothing still fails on at least two CI legs+ /// instead of skipping everywhere.fn render_or_skip_broken_software_adapter() -> Option<Vec<u8>> {let (pixels, adapter_info) = render_with_uniforms_and_adapter(uniforms())?;- let is_software = adapter_info.device_type == wgpu::DeviceType::Cpu- || adapter_info.name.contains("Basic Render Driver")+ let is_known_broken_adapter = adapter_info.name.contains("Basic Render Driver")|| adapter_info.name.to_lowercase().contains("warp");let cleared_to_white = is_white(pixel(&pixels, 2, OUTPUT - 2));let drew_anything = (0..OUTPUT).any(|y| black_run(&pixels, y) > 0);- if is_software && !(cleared_to_white && drew_anything) {+ if is_known_broken_adapter && !(cleared_to_white && drew_anything) {eprintln!("software adapter '{}' cannot composite this pass (cleared={cleared_to_white}, \drew={drew_anything}), skipping",