Closed Bug 1923050 Opened 2 years ago Closed 6 days ago

Intermittent TV image/test/mochitest/test_image_cache_notification.html | second load of over.png should be cached

Categories

(Core :: Graphics: ImageLib, defect, P5)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

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

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure, test-verify-fail)

Attachments

(1 external file)

Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=477028509&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VQ1vxaK0TY6z0v_wAsBFAQ/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VQ1vxaK0TY6z0v_wAsBFAQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2024-10-07T08:58:03.482Z] 08:58:03     INFO -  TEST-PASS | image/test/mochitest/test_image_cache_notification.html | first load of over.png shouldn't be cached
[task 2024-10-07T08:58:03.482Z] 08:58:03     INFO -  Buffered messages finished
[task 2024-10-07T08:58:03.482Z] 08:58:03  WARNING -  TEST-UNEXPECTED-FAIL | image/test/mochitest/test_image_cache_notification.html | second load of over.png should be cached
[task 2024-10-07T08:58:03.482Z] 08:58:03     INFO -      SimpleTest.ok@SimpleTest/SimpleTest.js:426:16
[task 2024-10-07T08:58:03.482Z] 08:58:03     INFO -      runTest@image/test/mochitest/test_image_cache_notification.html:36:20
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -      async*@image/test/mochitest/test_image_cache_notification.html:44:7
[task 2024-10-07T08:58:03.483Z] 08:58:03  WARNING -  TEST-UNEXPECTED-FAIL | image/test/mochitest/test_image_cache_notification.html | further loads of over.png shouldn't be notified
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -      SimpleTest.ok@SimpleTest/SimpleTest.js:426:16
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -      runTest@image/test/mochitest/test_image_cache_notification.html:40:20
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -      async*@image/test/mochitest/test_image_cache_notification.html:44:7
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  TEST-OK | image/test/mochitest/test_image_cache_notification.html | took 207ms
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  TEST-START | Shutdown
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  Passed:  4
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  Failed:  2
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  Todo:    0
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  Mode:    e10s
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  Slowest: 1155ms - /tests/image/test/mochitest/test_image_cache_notification.html
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  TEST-INFO | Ran 2 Loops
[task 2024-10-07T08:58:03.483Z] 08:58:03     INFO -  SimpleTest FINISHED
[task 2024-10-07T08:58:04.609Z] 08:58:04     INFO -  wait for org.mozilla.geckoview.test_runner complete; top activity=com.android.launcher3
[task 2024-10-07T08:58:04.609Z] 08:58:04     INFO -  runtestsremote.py | Application ran for: 0:00:15.928808
[task 2024-10-07T08:58:04.675Z] 08:58:04     INFO -  Stopping web server
[task 2024-10-07T08:58:04.679Z] 08:58:04     INFO -  Server shut down.
[task 2024-10-07T08:58:04.680Z] 08:58:04     INFO -  Web server killed.
[task 2024-10-07T08:58:04.680Z] 08:58:04     INFO -  Stopping web socket server
[task 2024-10-07T08:58:04.680Z] 08:58:04     INFO -  Stopping ssltunnel
[task 2024-10-07T08:58:04.680Z] 08:58:04     INFO -  leakcheck | refcount logging is off, so leaks can't be detected!
[task 2024-10-07T08:58:04.680Z] 08:58:04     INFO -  runtests.py | Running tests: end.
[task 2024-10-07T08:58:04.998Z] 08:58:04     INFO -  Buffered messages finished
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  0 INFO TEST-START | Shutdown
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  1 INFO Passed:  7
[task 2024-10-07T08:58:05.202Z] 08:58:05  WARNING -  2 INFO Failed:  2
[task 2024-10-07T08:58:05.202Z] 08:58:05  WARNING -  One or more unittests failed.
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  3 INFO Todo:    0
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  4 INFO Mode:    e10s
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  5 INFO SimpleTest FINISHED
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  Buffered messages finished
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  SUITE-END | took 17s
[task 2024-10-07T08:58:05.202Z] 08:58:05     INFO -  SUITE-START | Running 1 tests
Summary: Intermittent image/test/mochitest/test_image_cache_notification.html | second load of over.png should be cached → Intermittent TV image/test/mochitest/test_image_cache_notification.html | second load of over.png should be cached
Blocks: 2095794

The test expects its second load of over.png to send http-on-resource-cache-response. That notification is sent only once per image cache entry, and the entry outlives the document. When the test runs again in the same browser (--repeat, --verify), the entry its previous run created was already notified, so no load is notified and the test fails. Clearing the cache gives each run its own fresh entry. Also remove the observer the test was leaking.

Assignee: nobody → florian
Status: NEW → ASSIGNED
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e4ee131d69ce https://hg.mozilla.org/integration/autoland/rev/6ec2c29518a9 Clear the image cache before test_image_cache_notification.html loads over.png, r=gfx-reviewers,bradwerth.
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: