-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix screen share test in SLE 15-SP4 #14480
Fix screen share test in SLE 15-SP4 #14480
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
f095b7c
to
60b5666
Compare
|
||
# Install the vino package which is probably the case of missing screen sharing option | ||
ensure_installed 'vino'; | ||
if (is_sle("=15-sp4")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use 15-SP4+, I don't think on next SLE version it will go back to vino.
Applies for all is_sle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have updated the code to 15-SP4+.
Hi Dee, could you explain a bit more the purpose of the PR? |
Hi Anna, I updated the description above and let me know is this ok :) |
if (is_sle("=15-sp4")) { | ||
record_info 'gnome-remote-desktop', 'After the installation the screen sharing is not available - gnome-remote-dekstop is missing and we need to install it now.'; | ||
send_key 'ctrl-q'; | ||
# Install the vino package which is probably the case of missing screen sharing option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Install the vino package which is probably the case of missing screen sharing option | |
# Install the gnome-desktop package which is probably the case of missing screen sharing option |
Still the title of the module seems misleading to me :P |
ensure_installed 'gnome-remote-desktop'; | ||
} | ||
else { | ||
record_info 'vino missing', 'After the installation the screen sharing is not available - vino is missing and we need to install it now.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace also vino here with gnome-desktop?
# Install the vino package which is probably the case of missing screen sharing option | ||
ensure_installed 'vino'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment on why vino is still tested, i.e (Or a link where this has been mentioned or discusse)
@@ -64,7 +69,7 @@ sub run { | |||
record_soft_failure 'boo#1137569 - screen sharing not yet supported on wayland'; | |||
} else { | |||
assert_screen 'with_screensharing'; | |||
record_info 'vino present', 'Vino and the screen sharing are present'; | |||
is_sle("=15-sp4") ? record_info('gnome-remote-desktop present and the screen sharing are present') : record_info('vino present', 'Vino and the screen sharing are present'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above comment from @dzedro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the comment. Thanks :)
60b5666
to
3b5dd06
Compare
Sure Anna, As we discussed offline, I have renamed module to generic name and verified the test. Please let me know your feedback. Thanks :) |
lib/main_common.pm
Outdated
@@ -1309,6 +1309,7 @@ sub load_x11tests { | |||
loadtest "x11/eog"; | |||
loadtest(is_sle('<15') ? "x11/rhythmbox" : "x11/gnome_music"); | |||
loadtest "x11/wireshark"; | |||
loadtest "x11/remote_desktop/screensharing_available" if is_sle("=15-sp4"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ? If difference between 15sp4+ and older versions is handled in the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jozef, I scheduled screensharing_available test in we-module as gnome-remote-desktop
is present SUSE Linux Enterprise Workstation Extension 15 SP4
. I am still not sure how we are scheduling test. Let me know is this OK or do I need to do any changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discussed with Santiago and decided to move screensharing_available test to yaml schedule. I created a new ticket https://progress.opensuse.org/issues/109373.
3b5dd06
to
d0b363d
Compare
ensure_installed 'vino'; | ||
|
||
if (is_sle("15-sp4+")) { | ||
record_info 'gnome-remote-desktop', 'After the installation the screen sharing is not available - gnome-remote-dekstop is missing and we need to install it now.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a bug for this? I think this should be a soft failure (same below)... I.E we should know what's the expectation and expected result after the installation?. Maybe a separate ticket to figure that out and update later (and actually use the screen sharing)... to keep things moving
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no bug. In SLE-15 SP4, screen sharing is available by default and we do not required to install any package. I removed the code for installing the package if screen sharing is not available.
24ae437
to
3d9e33a
Compare
@@ -1335,6 +1335,7 @@ sub load_x11tests { | |||
loadtest(is_sle('<15') ? "x11/rhythmbox" : "x11/gnome_music"); | |||
loadtest "x11/wireshark"; | |||
loadtest "x11/ImageMagick"; | |||
loadtest "x11/remote_desktop/screensharing_available" if is_sle("15-sp4+"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you create the ticket for the extraction, please add the link to this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jozef is still FTO |
Use gnome-remote-desktop to share the screen in SLE 15 SP4. Renamed the test vino_screensharing_available to generic screensharing_available to test the screen share availability across all SLE flavors
3d9e33a
to
dacf427
Compare
vino is considered out-of-date, and now gnome-remote-desktop progressively provides the screen sharing.
So I have renamed the test module
vino_screensharing_available
toscreensharing_available
to verify the availability of screen share across all SLE Versions. If the screen sharing is not available then test does the installation of packagegnome-remote-desktop
in SLE 15 SP4 and in lower versionvino
package.https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/767
Related ticket:https://progress.opensuse.org/issues/104601
Needles: https://gitlab.suse.de/openqa/os-autoinst-needles-sles/-/merge_requests/1597
Verification run:
SLE 15-SP4 : http://10.161.229.147/tests/2055#step/vino_screensharing_available/1
SLE 15-SP3: https://openqa.suse.de/tests/8323509#step/vino_screensharing_available/1
SLE 15-SP1: https://openqa.suse.de/tests/8324219#step/vino_screensharing_available/1
SLE 15-SP2: https://openqa.suse.de/tests/8328802#step/vino_screensharing_available/1
Latest Verification run:
SLE 15-SP4 | SLE 15-SP3 | SLE 15-SP2 | SLE 15-SP1 | LEAP 15 aarch64 | LEAP 15 PPC64