Skip to content
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

testapi: Save time in "wait_screen_change" with "no_wait" option as well #2109

Closed

Conversation

okurz
Copy link
Member

@okurz okurz commented Jul 6, 2022

This commit also checks for the "no_wait" option in "wait_screen_change"
same as we already do in other cases like "check_screen/assert_screen"
and "wait_still_screen".

Hotpatched w7 with:

curl -sS https://patch-diff.githubusercontent.com/raw/os-autoinst/os-autoinst/pull/2109.patch | patch -p1 --directory=/usr/lib/os-autoinst

Triggered verification run with:

openqa-clone-custom-git-refspec https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15173 https://openqa.opensuse.org/tests/2450411 SCHEDULE=tests/boot/boot_to_desktop,tests/x11/chromium WORKER_CLASS=openqaworker7 TEST=okurz_poo109737_wait_screen_change_with_no_wait

Created job #2453477: opensuse-Tumbleweed-DVD-x86_64-Build20220704-extra_tests_gnome@64bit -> https://openqa.opensuse.org/t2453477

Related progress issue: https://progress.opensuse.org/issues/109737

@okurz okurz marked this pull request as draft July 6, 2022 09:54
@github-actions
Copy link

github-actions bot commented Jul 6, 2022

Great PR! Please pay attention to the following items before merging:

Files matching testapi.pm:

  • Consider bumping the version number in OpenQA/Isotovideo/Interface.pm for changes in behaviour

This is an automatically generated QA checklist based on modified files

@codecov
Copy link

codecov bot commented Jul 6, 2022

Codecov Report

Merging #2109 (3c61e26) into master (7ae418c) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2109   +/-   ##
=======================================
  Coverage   81.83%   81.83%           
=======================================
  Files          73       73           
  Lines        7428     7428           
=======================================
  Hits         6079     6079           
  Misses       1349     1349           
Impacted Files Coverage Δ
OpenQA/Isotovideo/Interface.pm 100.00% <ø> (ø)
testapi.pm 70.31% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@okurz
Copy link
Member Author

okurz commented Jul 6, 2022

Trying it out with

openqa-clone-custom-git-refspec https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15180 https://openqa.opensuse.org/tests/2450411 SCHEDULE=tests/boot/boot_to_desktop,tests/x11/chromium WORKER_CLASS=openqaworker7 TEST=okurz_poo109737_wait_screen_change_with_no_wait

Created job #2453487: opensuse-Tumbleweed-DVD-x86_64-Build20220704-extra_tests_gnome@64bit -> https://openqa.opensuse.org/t2453487

@okurz
Copy link
Member Author

okurz commented Jul 6, 2022

https://openqa.opensuse.org/t2453487 doesn't seem to have a reduced waiting time. So something might still be missing.

okurz added 3 commits July 6, 2022 20:36
This commit also checks for the "no_wait" option in "wait_screen_change"
same as we already do in other cases like "check_screen/assert_screen"
and "wait_still_screen".

Related progress issue: https://progress.opensuse.org/issues/109737
"do_wait" was made ineffective with 3c7ae92 about three years ago and
can be removed.
This allows configuring wait_screen_change calls, in particular
"no_wait".

Related progress issue: https://progress.opensuse.org/issues/109737
@okurz okurz force-pushed the feature/no_wait_on_wait_screen_change branch from c6e86b9 to 3c61e26 Compare July 6, 2022 18:52
@okurz
Copy link
Member Author

okurz commented Jul 6, 2022

Updated with a further change to pass "%args" to wait_screen_change calls so that the "no_wait" parameter is also passed on. Not yet tested in production but with extended unit tests.

@mergify
Copy link
Contributor

mergify bot commented Aug 30, 2022

This pull request is now in conflicts. Could you fix it? 🙏

@okurz
Copy link
Member Author

okurz commented Sep 14, 2022

obsoleted by #2164

@okurz okurz closed this Sep 14, 2022
@okurz okurz deleted the feature/no_wait_on_wait_screen_change branch September 14, 2022 10:07
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.

1 participant