Closed Bug 1470571 Opened 6 years ago Closed 5 years ago

Intermittent TEST-UNEXPECTED-FAIL | netwerk/test/unit/test_alt-data_simple.js | check_has_alt_data_in_index - [check_has_alt_data_in_index : 67] true == false

Categories

(Core :: Networking: Cache, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox-esr68 --- fixed
firefox73 --- wontfix
firefox74 --- wontfix
firefox75 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, Whiteboard: [necko-triaged][stockwell unknown])

Attachments

(1 file)

Filed by: apavel [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=184406392&repo=mozilla-inbound https://queue.taskcluster.net/v1/task/TuRhVAV5RqCj5oG4lZNMgQ/runs/0/artifacts/public/logs/live_backing.log 17:56:50 INFO - TEST-START | netwerk/test/unit/test_alt-data_simple.js 17:56:50 WARNING - TEST-UNEXPECTED-FAIL | netwerk/test/unit/test_alt-data_simple.js | xpcshell return code: 0 17:56:50 INFO - TEST-INFO took 349ms 17:56:50 INFO - >>>>>>> 17:56:50 INFO - (xpcshell/head.js) | test MAIN run_test pending (1) 17:56:50 INFO - (xpcshell/head.js) | test pending (2) 17:56:50 INFO - (xpcshell/head.js) | test MAIN run_test finished (2) 17:56:50 INFO - running event loop 17:56:50 INFO - "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties" 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | undefined assertion name - 13 == 13 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readServerContent - [readServerContent : 103] "response body" == "response body" 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readServerContent - [readServerContent : 104] "" == "" 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | check_has_alt_data_in_index - [check_has_alt_data_in_index : 70] false == false 17:56:50 INFO - (xpcshell/head.js) | test pending (2) 17:56:50 INFO - (xpcshell/head.js) | test flushAndOpenAltChannel pending (3) 17:56:50 INFO - (xpcshell/head.js) | test finished (3) 17:56:50 INFO - (xpcshell/head.js) | test flushAndOpenAltChannel finished (2) 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | undefined assertion name - 10 == 10 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readAltContent - [readAltContent : 148] true == true 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readAltContent - [readAltContent : 149] "text/binary" == "text/binary" 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readAltContent - [readAltContent : 150] "!@#$%^&*()" == "!@#$%^&*()" 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | check_has_alt_data_in_index - [check_has_alt_data_in_index : 70] true == true 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | undefined assertion name - 15 == 15 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readEmptyAltContent - [readEmptyAltContent : 170] "" == "" 17:56:50 INFO - TEST-PASS | netwerk/test/unit/test_alt-data_simple.js | readEmptyAltContent - [readEmptyAltContent : 171] "response body 2" == "response body 2" 17:56:50 INFO - Error in closure function: [Exception... "Component returned failure code: 0x804b003d (NS_ERROR_CACHE_KEY_NOT_FOUND) [nsICacheStorage.getCacheIndexEntryAttrs]" nsresult: "0x804b003d (NS_ERROR_CACHE_KEY_NOT_FOUND)" location: "JS frame :: Z:/task_1529688774/build/tests/xpcshell/tests/netwerk/test/unit/test_alt-data_simple.js :: check_has_alt_data_in_index :: line 69" data: no] 17:56:50 INFO - Z:/task_1529688774/build/tests/xpcshell/tests/netwerk/test/unit/head_channels.js:onStopRequest:193 17:56:50 INFO - Z:\task_1529688774\build\tests\xpcshell\head.js:_do_main:219 17:56:50 INFO - Z:\task_1529688774\build\tests\xpcshell\head.js:_execute_test:526 17:56:50 INFO - -e:null:1 17:56:50 INFO - exiting test 17:56:50 INFO - PID 7344 | JavaScript error: Z:\\task_1529688774\\build\\tests\\xpcshell\\head.js, line 735: NS_ERROR_ABORT: 17:56:50 INFO - "CONSOLE_MESSAGE: (error) [JavaScript Error: "NS_ERROR_ABORT: " {file: "Z:\\task_1529688774\\build\\tests\\xpcshell\\head.js" line: 735}]" 17:56:50 INFO - PID 7344 | JavaScript strict warning: resource://testing-common/httpd.js, line 804: ReferenceError: reference to undefined property "_stopCallback" 17:56:50 INFO - PID 7344 | !!! error running onStopped callback: TypeError: callback is not a function 17:56:50 INFO - "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "ReferenceError: reference to undefined property "_stopCallback"" {file: "resource://testing-common/httpd.js" line: 804}]" 17:56:50 INFO - <<<<<<<
Component: Networking → Networking: Cache
Priority: P5 → P3
Whiteboard: [necko-triaged]
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → INCOMPLETE
Summary: Intermittent netwerk/test/unit/test_alt-data_simple.js | xpcshell return code: 0 → Intermittent TEST-UNEXPECTED-FAIL | netwerk/test/unit/test_alt-data_simple.js | check_has_alt_data_in_index - [check_has_alt_data_in_index : 67] true == false
See Also: → 1588864

There have been 23 total failures in the last 7 days, affected platforms are android-em-7-0-x86_64 opt and debug: https://treeherder.mozilla.org/intermittent-failures.html#/bugdetails?startday=2020-02-18&endday=2020-02-25&tree=trunk&bug=1470571

Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=289412770&repo=autoland&lineNumber=2109

Nhi, can you redirect this to someone who can take a look?

Flags: needinfo?(nhnguyen)
Whiteboard: [necko-triaged][stockwell unknown] → [necko-triaged][stockwell needswork]
Flags: needinfo?(nhnguyen) → needinfo?(michal.novotny)

syncWithCacheIOThread() ensures that all pending events on IO thread are processed before we continue on the main thread, where we synchronously check the flag in the index

Assignee: nobody → michal.novotny

It's just my guess where the problem could be. I don't have logs from try to verify it. Let's see if it helps.

Flags: needinfo?(michal.novotny)
Pushed by mnovotny@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0db5d88e7a66 Sync with cache IO thread before checking alt-data flag in index, r=valentin
Status: REOPENED → RESOLVED
Closed: 6 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: