action #156439
open
Firefox privacy popup causing apache2_changehat to fail
Added by livdywan 12 months ago.
Updated 12 months ago.
Description
Observation¶
The test module
apache2_changehat occasionally fails because a popup bar comes up between the mouse moving to the needle and the click of the button, which is no longer in the same place. The x11test base class has Firefox-specific abstractions which cover this, however this test is currently a consoletest.
Context: This came up in the open conversation in the QE Tools workshop, discussing recurring test issues that come up as flaky.
Suggestions¶
- Base the test on x11test
- Replace duplicated logic to setup Firefox
Reproducible¶
Fails since (at least) Build 20240226 (current job)
Expected result¶
Last good: 20240225 (or more recent)
Further details¶
Always latest result in this scenario: latest
Related issues
1 (1 open — 0 closed)
- Category set to Feature requests
- Priority changed from Normal to Low
- Target version set to future
I'm not sure putting all that in a single backend call would significantly reduce the time needed here. Is this issue reproducible?
okurz wrote in #note-1:
I'm not sure putting all that in a single backend call would significantly reduce the time needed here. Is this issue reproducible?
Yes it is. The test regularly fails after 30 minutes or an hour. Running it again usually fixes it because the bar comes up at different points in time.
Just to make sure:
In distri-openQA we are using this function: https://github.com/os-autoinst/os-autoinst-distri-openQA/blob/master/lib/utils.pm#L122
sub prepare_firefox_autoconfig {
# Enable AutoConfig by pointing to a cfg file
type_string(q{cat <<EOF > $(rpm --eval %_libdir)/firefox/defaults/pref/autoconfig.js
pref("general.config.filename", "firefox.cfg");
...
to prevent firefox from opening such popups.
(There also a function in distri-opensuse lib/x11test)
Is the test in question also using something like that?
Trying to reduce the delay can help with making the issue appear less often, but a race condition will always be there.
@livdywan please make sure to add a "link to latest"
- Description updated (diff)
- Project changed from openQA Project (public) to openQA Tests (public)
- Subject changed from Race condition in backend implementation of assert_and_click to Firefox privacy popup causing apache2_changehat to fail
- Category deleted (
Feature requests)
- Target version deleted (
future)
Assuming a generic solution is not feasible I'm also retroactively making this a specific test issue.
- Description updated (diff)
- Copied to action #160337: Firefox privacy popup causing apache2_changehat to fail - Evaluate how changehat is being tested added
Also available in: Atom
PDF