Linux: gpui opens real Wayland and X11 windows, not headless (L1.1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
178625b6f3
commit
c62d548688
9 files changed
+388
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
FAIL
|
||||
|
||||
Cargo.toml:25 — The new backend features require dependencies absent from the tracked Cargo.lock. In a clean copy, `cargo build --locked -p ely-tree` and locked metadata both exit 101 because the lockfile needs updating; the smoke script hides this by adding 26 packages during `cargo tree`. Commit the matching lockfile and verify a clean locked build. Evidence: `.work/l1.1-r1-locked.log`, `.work/l1.1-r1-backends.log`.
|
||||
|
||||
tests/scripts/linux-backends.sh:30 — The executable path ignores Cargo's target directory. With a separate `CARGO_TARGET_DIR`, the probe successfully built ElyTree there, then failed because `$root/target/debug/ely-tree` did not exist. If that path contains an older binary, the script tests that binary instead of the build it just produced. Resolve and launch the actual Cargo build artifact. Evidence: `.work/l1.1-r1-custom-target.log`.
|
||||
|
||||
tests/scripts/linux-backends.sh:32 — `ready ElyTree` does not establish that a frame was presented: its next-frame callback runs before presentation. In an isolated, rebuilt probe, replacing `platform_window.draw(...)` with a no-op still made this script exit 0 and claim both backends drew. Wayland tracing confirmed zero surface-buffer attachments, versus one with the original binary. Require successful presentation and compositor-visible rendered content before reporting success; a disabled presentation path must fail this test. Evidence: `.work/l1.1-r1-no-presentation.log`, `.work/l1.1-r1-presentation-evidence.log`.
|
||||
@@ -0,0 +1,5 @@
|
||||
FAIL
|
||||
|
||||
tests/scripts/linux-backends.sh:36 — Executable selection still assumes Cargo's native output layout. With CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu and a separate CARGO_TARGET_DIR, the locked build succeeds under <target>/x86_64-unknown-linux-gnu/debug, then the script fails launching nonexistent <target>/debug/ely-tree. An older native binary there would be tested instead. Launch the executable reported by Cargo's build-artifact JSON. Evidence: .work/l1.1-r2-explicit-target-build.log, .work/l1.1-r2-explicit-target.log.
|
||||
|
||||
tests/scripts/linux-backends.sh:55 — The text assertion counts contrasting control fills and icons, so it passes without any text. In an isolated rebuilt probe, returning immediately from Window::paint_glyph still makes the script exit 0 on both Wayland and X11. The inspected window has no text, yet its ink count is 10578 against the 500 threshold. Check known rendered text in a region excluding control fills and icons, and verify that disabling glyph painting fails the assertion. Evidence: .work/l1.1-r2-no-glyphs.log, .work/l1.1-r2-glyph-evidence.log, .work/l1.1-r2-mutation.log.
|
||||
@@ -0,0 +1,5 @@
|
||||
FAIL
|
||||
|
||||
tests/scripts/linux-backends.sh:60 — The OCR assertion always expects English while the application inherits its locale. Running with `ELY_LOCALE=zh-CN` maps and renders the window successfully, then fails because the supported Chinese interface contains no “Open a repository”. Pin `ELY_LOCALE=en` in the application's launch environment when asserting English text. Evidence: `.work/l1.1-r3-chinese.log`; forcing English passes both backends in `.work/l1.1-r3-fixed-locale.log`.
|
||||
|
||||
tests/scripts/linux-backends.sh:59 — OCR failure diagnostics are discarded. With Tesseract installed but `TESSDATA_PREFIX` pointing to an existing empty directory, the script exits 1 with no output; the missing `eng.traineddata` and initialization errors disappear into `/dev/null`. Preserve Tesseract's stderr or include it in an explicit failure message. Evidence: `.work/l1.1-r3-missing-tessdata.log`, `.work/l1.1-r3-ocr-error-evidence.log`, `.work/l1.1-r3-verification.log`.
|
||||
@@ -0,0 +1 @@
|
||||
PASS
|
||||
Reference in new issue
Block a user