Closed Bug 1767679 Opened 2 years ago Closed 2 years ago

Intermittent devtools/client/inspector/rules/test/browser_rules_colorpicker-and-image-tooltip_01.js | single tracking bug

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: jmaher, Assigned: jdescottes)

References

Details

(Keywords: intermittent-failure, intermittent-testcase)

Attachments

(1 file)

No description provided.

Filter on devtools-intermittent-singletrackingbug-triage

Severity: -- → S4
Flags: needinfo?(jdescottes)

The failure rate is extremely low on try. Here is a baseline push: https://treeherder.mozilla.org/jobs?repo=try&revision=24d898b601b1e6224172ef1cc65d71ead1038a3c. Only 1 failure for this test on more than 150 runs.

I have another try push in progress at https://treeherder.mozilla.org/jobs?repo=try&revision=57eaa62ffadfe9b3524500371468120e1f64e92f, which additionally waits for 3 seconds before starting the test.

The assumption here is that the inspector initialization is slower when there is a "swatch" widget to render. Here it's a color swatch, in another related intermittent it was a filter swatch. The various screenshots show the inspector in various shapes which seem to indicate it is still initializing.

No conclusive results on try. Waiting for the property container to be ready should at least help invsestigate if we get more failures

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Interestingly, skipping the test makes another test fail again: https://treeherder.mozilla.org/jobs?repo=try&revision=cf0f1d2bdff482b6959406be6ae5658a2743e8e8

But it's not the next immediate test (which would be browser_rules_colorpicker-and-image-tooltip_02.js), it's the one after that: browser_rules_colorpicker-appears-on-swatch-click-or-keyboard-activation.js

All 3 tests use very similar properties so it's surprising that only 2 of them lead to intermittent failures:

browser_rules_colorpicker-and-image-tooltip_01.js

    body {
      background: url("chrome://branding/content/icon64.png"), linear-gradient(white, #F06 400px);
    }

browser_rules_colorpicker-and-image-tooltip_02.js:

    body {
      background: red url("chrome://branding/content/icon64.png")
        no-repeat center center;
    }

browser_rules_colorpicker-appears-on-swatch-click-or-keyboard-activation.js:

    body {
      color: red;
      background-color: #ededed;
      background-image: url(chrome://branding/content/icon64.png);
      border: 2em solid rgba(120, 120, 120, .5);
    }
Flags: needinfo?(jdescottes)

Since this other test seemed to have a higher failure rate on try, I applied the same fix as the one pushed here to it, and it seems to validate that the fix works: https://treeherder.mozilla.org/jobs?repo=try&revision=c15d18ec7c430cc69e662729a16585b813edb6e4

So in theory if we get other getRuleViewProperty(...) is undefined errors er could apply the same fix. In the long run I see 2 options:

  • make getRuleViewProperty async and wait until the element is available
  • use the other test to find a proper event we could wait for
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d83579bec018
[devtools] Wait for element to be ready in browser_rules_colorpicker-and-image-tooltip_01.js r=Honza
Blocks: 1778985
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: