Closed Bug 1857035 Opened 8 months ago Closed 8 months ago

Perma dom/svg/test/test_getCTM.html failure on new Ubuntu 22.04 Wayland pool

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: ahal, Assigned: dholbert)

References

Details

Attachments

(3 files)

This is happening on a new Ubuntu 22.04 Wayland enabled pool we're in the process of standing up.

Example failure log:
https://treeherder.mozilla.org/logviewer?job_id=431033473&repo=try&lineNumber=7250

[task 2023-10-02T16:29:30.532Z] 16:29:30     INFO - TEST-START | dom/svg/test/test_getCTM.html
[task 2023-10-02T16:29:30.650Z] 16:29:30     INFO - TEST-INFO | started process screentopng
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - TEST-INFO | screentopng: exit 0
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - Buffered messages logged at 16:29:30
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - TEST-PASS | dom/svg/test/test_getCTM.html | buggy.getCTM().e 
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - TEST-PASS | dom/svg/test/test_getCTM.html | buggy.getCTM().f 
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - TEST-PASS | dom/svg/test/test_getCTM.html | transrect1.getCTM().a 
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - TEST-PASS | dom/svg/test/test_getCTM.html | transrect1.getCTM().d 
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - Buffered messages finished
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO - TEST-UNEXPECTED-FAIL | dom/svg/test/test_getCTM.html | padsvg1.getScreenCTM().e - got 27.000030517578125, expected 27
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO -     SimpleTest.is@SimpleTest/SimpleTest.js:509:14
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO -     runTest@dom/svg/test/test_getCTM.html:43:5
[task 2023-10-02T16:29:35.896Z] 16:29:35     INFO -     EventListener.handleEvent*@dom/svg/test/test_getCTM.html:120:8

It's unclear whether this is a result of Wayland, upgrading to Ubuntu 22.04 or hardware characteristics of the new workers. The test will be skipped on this new platform.

Duplicate of this bug: 1857053
Blocks: 1857057
No longer blocks: 1857057

got 27.000030517578125, expected 27

Looks like it's just floating point precision/rounding error at some level.

We should just round to three decimal places before comparing, or something like that. We could also use isfuzzy but that's probably overkill.

Severity: -- → S3
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #9357166 - Attachment description: Bug 1857035 part 1: Tweak mochitest test_getCTM.html to pull out some repeated expressions into a local variable. r?#svg,#layout → Bug 1857035 part 1: Tweak mochitest test_getCTM.html to pull out some repeated expressions into local variables. r?#svg,#layout

Hi ahal:

(In reply to Andrew Halberstadt [:ahal] from comment #0)

The test will be skipped on this new platform.

That's no longer necessary after my patches here land. If it already had some skip annotation in-tree, I would just atomically remove it here as part of the posted patches -- but I'm not seeing any annotations for this test right now:
https://searchfox.org/mozilla-central/rev/3d0b07f5a3c7b8d9955fb8e8acaaf582b1e33bb6/dom/svg/test/mochitest.toml#86-88

So I assume the skip annotation hasn't landed yet. Could you remove the skip annotation from your local patch (or wherever it's staged)? Or let me know how best to avoid this test ending up being unnecessarily-skipped?

Flags: needinfo?(ahal)
Attachment #9357167 - Attachment description: Bug 1857035 part 2: Add some rounding to work around float precision error in test_getCTM.html. r?#svg,#layout → Bug 1857035 part 2: Use isfuzzy to ignore float precision error in test_getCTM.html. r?#svg,#layout
Pushed by dholbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c2e64e644067
part 1: Tweak mochitest test_getCTM.html to pull out some repeated expressions into local variables. r=firefox-svg-reviewers,longsonr
https://hg.mozilla.org/integration/autoland/rev/bdfdb575f9a9
part 2: Use isfuzzy to ignore float precision error in test_getCTM.html. r=firefox-svg-reviewers,longsonr
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

Ah oops, I didn't notice this needinfo and had landed it a couple days ago. I'll re-enable the test here.

Status: RESOLVED → REOPENED
Flags: needinfo?(ahal)
Resolution: FIXED → ---
Attachment #9357848 - Attachment description: Bug 1857035 - Re-enable dom/svg/test/test_getCTM.html, r?dholbert! → Bug 1857035 - Re-enable dom/svg/test/test_getCTM.html on Ubuntu 22.04 Wayland pool, r?dholbert!
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a710f6c3ab82
Re-enable dom/svg/test/test_getCTM.html on Ubuntu 22.04 Wayland pool, r=dholbert
Status: REOPENED → RESOLVED
Closed: 8 months ago8 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: