-
Notifications
You must be signed in to change notification settings - Fork 196
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 nr. of keys sent in send_key_until_needlematch #2151
Fix nr. of keys sent in send_key_until_needlematch #2151
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 |
cd3d5c6
to
7ab0bf8
Compare
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 suppose this change is in line with what is already documented so I guess it looks good to merge.
7ab0bf8
to
c5c93b6
Compare
Codecov Report
@@ Coverage Diff @@
## master #2151 +/- ##
==========================================
- Coverage 90.25% 90.25% -0.01%
==========================================
Files 153 153
Lines 14313 14310 -3
==========================================
- Hits 12918 12915 -3
Misses 1395 1395
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
to avoid breaking existing test suites, we are going to fix all $count parameter in the callers ; I'd suggest to merge / release both changes in the same timeframe . Related PR: os-autoinst/os-autoinst-distri-opensuse#15404 |
Ok, then I'm making it as not-ready for now to prevent the auto-merge. |
Hi @Martchus how we can sync the deployment in openQA of this change with the other PR for the use the function? |
Since packages need to be rebuilt and an out-of-schedule deployment needed to be triggered manually, there might be some time between merging a PR here and its actual deployment. Normally we solve this by avoiding breaking changes in the first place. I haven't thought of this change as one which would affect many tests as I assumed the new behavior is what people expected to happen anyways. I suppose we could still do it but then the other way around. This change is deployed first and once you get the deployment e-mail on openqa AT suse… you can merge the test PR (which should be deployed rather quickly). |
what deployment email? is there any slack channel? |
Normally we could check |
@jknphy there will be an email sent to the openqa mailing list after deployment. |
I retriggered the Tumbleweed OBS test, there is already a ticket about the failing 27-consoles-vmware.t test |
c5c93b6
to
f707938
Compare
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.
+1
can this be merged without that OBS check? is it just about to remove the label, right? it is not "required", I don't see any merge button (but maybe I don't have permission in this repo, not sure or that is not visible with the automerge in place). |
We could merge it without the OBS check. However, it would be cleaner if you'd rebase against master. (The problem with the test should hopefully already fixed by another PR that has been merged meanwhile.) |
the function was sending the key n+1 times before failing. In test 03-testapi.t , key 'esc' was sent two times and then checked for three times. This is an issue for some scenarios, for example if an even number of keypresses is required, as is the case of maximizing and unmaximizing a window, by sending an even number of alt-f10.
f707938
to
1d51f69
Compare
Hello, seems approved and checks have passed. If we can we remove the label and merge, I'd ask to do the same on the parallel pull request . Thanks |
Yes, we can remove labels and merge it. |
So... I'd ask whoever has permission to remove the label and merge; many thanks |
Since it was @Martchus that added the label, could you merge this please? |
Related ticket: https://progress.opensuse.org/issues/107749
the function
send_key_until_needlematch()
is documented to send the key at maximum n times, but is sending the key n+1 times before failing. By looking at the test03-testapi.t
, 'esc' key is sent two times and then checked for three times.This is an issue for some scenarios, for example, if an even number of keypresses is required, as is the case of maximizing and unmaximizing a window, by sending an even number of alt-f10.
This PR aims to correct both the unit test and the API behavior.