Skip to content

add Weston runtime preflight test and strengthen Weston runtime handling#404

Merged
bhargav0610 merged 2 commits intoqualcomm-linux:mainfrom
smuppand:Display
Apr 16, 2026
Merged

add Weston runtime preflight test and strengthen Weston runtime handling#404
bhargav0610 merged 2 commits intoqualcomm-linux:mainfrom
smuppand:Display

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented Apr 15, 2026

Add Weston_Runtime_Preflight under Runner/suites/Multimedia/Display and enhance shared Weston runtime handling in Runner/utils/lib_display.sh.

  • This change introduces a pure Weston and Wayland runtime gate that validates display connectivity, Weston process and systemd health, dynamic Wayland runtime discovery, and EGL pipeline diagnostics.
  • It fails by default when Weston runtime is unhealthy, and supports an explicit --allow-relaunch path for controlled runtime recovery with better logging and post-relaunch validation.
  • It also keeps runtime validation separate from client-level coverage, so weston-simple-shm and weston-simple-egl remain dedicated follow-on blockers.

Job for reference https://lava.infra.foundries.io/scheduler/job/178825

Improve Weston runtime helper logic in lib_display.sh for dynamic
Wayland runtime discovery and stricter runtime health validation.

Changes include:
- add richer Weston runtime snapshots with service, socket, process,
  runtime user, uid, and runtime directory details
- gate runtime health on systemd weston.service and weston.socket
  state instead of relying only on socket presence
- support optional cleanup and relaunch flow for failed Weston runtime
- stop stale weston.service and weston.socket and reset failed
  systemd state before relaunch
- log runtime context before and after relaunch attempts
- prefer discovered Weston service user runtime directory such as
  /run/user/<uid> when available
- avoid client probing from runtime helpers so preflight remains a
  pure runtime check

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add Weston_Runtime_Preflight under Multimedia/Display as a pure
Weston and Wayland runtime health gate before client-level tests.

The new test:
- validates connected display availability
- captures DRM and modetest snapshots for debug
- validates Weston process, systemd service, socket, and Wayland
  runtime health
- dynamically discovers Wayland runtime paths without hardcoding
- supports strict default execution with optional --allow-relaunch
  recovery mode
- keeps EGL diagnostics separate from client rendering validation
- documents usage and adds simple YAML coverage for default and
  relaunch-enabled execution

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@bhargav0610 bhargav0610 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@manasab-qli
Copy link
Copy Markdown

Change Looks Good. Approved!!

@bhargav0610 bhargav0610 merged commit 965819a into qualcomm-linux:main Apr 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants