Closed Bug 1885370 Opened 1 year ago Closed 1 year ago

Perma [Tier 2] AttributeError: 'NoneType' object has no attribute 'default_expected'

Categories

(Testing :: web-platform-tests, defect, P5)

defect

Tracking

(firefox-esr115 unaffected, firefox123 unaffected, firefox124 unaffected, firefox125 wontfix, firefox126 fixed)

RESOLVED FIXED
126 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox123 --- unaffected
firefox124 --- unaffected
firefox125 --- wontfix
firefox126 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: Sasha)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file, 1 obsolete file)

Filed by: smolnar [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=450729409&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YG_Wk1pIQN2bWG859ESybg/runs/0/artifacts/public/logs/live_backing.log


{"action": "log", "time": 1710406795369, "thread": "MainThread", "pid": 19, "source": "web-platform-tests", "message": "  /css/filter-effects/backdrop-filter-basic-opacity-2.html ('PASS', []) ('PASS', ['ERROR']) True", "level": "DEBUG"}
[task 2024-03-14T08:59:55.378Z] Traceback (most recent call last):
[task 2024-03-14T08:59:55.378Z]   File "/builds/worker/checkouts/gecko/testing/web-platform/mach_commands.py", line 397, in run
[task 2024-03-14T08:59:55.378Z]     return fissionregressions.run(logger, src_root, obj_root, **kwargs)
[task 2024-03-14T08:59:55.378Z]   File "/builds/worker/checkouts/gecko/testing/web-platform/fissionregressions.py", line 463, in run
[task 2024-03-14T08:59:55.378Z]     baseline_results = allowed_results(baseline_test, name)
[task 2024-03-14T08:59:55.378Z]   File "/builds/worker/checkouts/gecko/testing/web-platform/fissionregressions.py", line 204, in allowed_results
[task 2024-03-14T08:59:55.378Z]     return test.expected(subtest), test.known_intermittent(subtest)
[task 2024-03-14T08:59:55.378Z]   File "/builds/worker/checkouts/gecko/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py", line 435, in expected
[task 2024-03-14T08:59:55.378Z]     default = self.subtest_result_cls.default_expected
[task 2024-03-14T08:59:55.378Z] AttributeError: 'NoneType' object has no attribute 'default_expected'
[task 2024-03-14T08:59:55.378Z] > /builds/worker/checkouts/gecko/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py(435)expected()
[task 2024-03-14T08:59:55.378Z] -> default = self.subtest_result_cls.default_expected
[taskcluster:error] Task timeout after 2700 seconds. Force killing container.
[taskcluster 2024-03-14 09:37:03.906Z] === Task Finished ===
[taskcluster 2024-03-14 09:37:03.907Z] Unsuccessful task run with exit code: -1 completed in 2701.244 seconds

@Sasha, could you check out this perma wpt lint failure?
started to fail after the latest wpt-sync

Flags: needinfo?(aborovova)
Keywords: regression
Regressed by: 1885040
Assignee: nobody → aborovova
Attachment #9391301 - Attachment description: Bug 1885370 - Add default_expected to ReftestSubtestResult. → Bug 1885370 - Add ReftestSubtestResult class with default_expected.
Status: NEW → ASSIGNED
Flags: needinfo?(aborovova)

Set release status flags based on info from the regressing bug 1885040

But reftests shouldn't have subtests. So I think the patch is kind of wallpapering over the problem, which I suspect is really an error in the data.

Maybe https://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py#435 should raise a ValueError in this case with a message that makes the error more obvious? And perhaps we should just ignore the error in fissionregressions.py in that case, since it seems to be the only tool that actually errors out here, rather than just not trying to access the problematic data.

But in any case I'm going to put up a patch to fix the underlying issue, which seems to be caused by rewriting a testharness test as a reftest, which is a scenario the sync doesn't fully handle (should remove all subtest expectation data in that case).

Attachment #9391301 - Attachment is obsolete: true
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/ce6e019086c8 Remove subtest metadata from reftest, r=Sasha

Set release status flags based on info from the regressing bug 1885040

Backed out for causing perma wpt canvas failures @ /html/canvas/element/filters/2d.filter.canvasFilterObject.<...>

Backout link: https://hg.mozilla.org/integration/autoland/rev/450538ee1ca2a3ef8685321eee6e2f8a14e47aa6

Push with failures

Failure log ->

Flags: needinfo?(james)
Flags: needinfo?(aborovova)

Updated the patch.

Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/a960e8bc0601 Remove subtest metadata from reftest, r=Sasha
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

The patch landed in nightly and beta is affected.
:Sasha, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox125 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(aborovova)
Flags: needinfo?(aborovova)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: