Closed Bug 995686 Opened 6 years ago Closed 4 years ago

Intermittent test_backgroundfilesaver.js | Test timed out | test failed (with xpcshell return code: -1)

Categories

(Core :: Networking: Cache, defect)

ARM
Android
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: RyanVM, Unassigned)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

https://tbpl.mozilla.org/php/getParsedLog.php?id=37669260&tree=Fx-Team

Android 2.3 Emulator fx-team opt test xpcshell-2 on 2014-04-11 16:37:20 PDT for push 1ee7a62f68eb
slave: tst-linux64-spot-721

18:14:42  WARNING -  TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/xpcshell/tests/netwerk/test/unit/test_backgroundfilesaver.js | Test timed out
18:14:42  WARNING -  TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/xpcshell/tests/netwerk/test/unit/test_backgroundfilesaver.js | test failed (with xpcshell return code: -1), see following log:
18:14:42     INFO -  >>>>>>>
18:14:42     INFO -  xpcw: cd /mnt/sdcard/tests/xpcshell/netwerk/test/unit
18:14:42     INFO -  xpcw: xpcshell -r /mnt/sdcard/tests/xpcshell/c/httpd.manifest --greomni /data/local/xpcb/fennec-31.0a1.en-US.android-arm.apk -m -s -e const _HTTPD_JS_PATH = "/mnt/sdcard/tests/xpcshell/c/httpd.js"; -e const _HEAD_JS_PATH = "/mnt/sdcard/tests/xpcshell/head.js"; -e const _TESTING_MODULES_DIR = "/mnt/sdcard/tests/xpcshell/m"; -f /mnt/sdcard/tests/xpcshell/head.js -e const _SERVER_ADDR = "localhost" -e const _HEAD_FILES = ["/mnt/sdcard/tests/xpcshell/netwerk/test/unit/head_channels.js", "/mnt/sdcard/tests/xpcshell/netwerk/test/unit/head_cache.js", "/mnt/sdcard/tests/xpcshell/netwerk/test/unit/head_cache2.js"]; -e const _TAIL_FILES = []; -e const _TEST_FILE = ["test_backgroundfilesaver.js"]; -e _execute_test(); quit(0);
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [null : 63] 8388608 == 8388608
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test MAIN run_test pending (1)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test run_next_test 0 pending (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test MAIN run_test finished (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | running event loop
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | Starting test_setup
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test test_setup pending (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test run_next_test 0 finished (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test run_next_test 1 pending (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test test_setup finished (2)
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | Starting test_normal
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test test_normal pending (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test run_next_test 1 finished (2)
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [onTargetChange : 270] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [onTargetChange : 270] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_normal : 287] true == true
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test run_next_test 2 pending (2)
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test test_normal finished (2)
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | Starting test_combinations
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test test_combinations pending (2)
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | (xpcshell/head.js) | test run_next_test 2 finished (2)
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 331 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 268 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 155 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 216 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = true, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 382] false == false
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 383] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 130 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = true, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 109 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = true, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 382] false == false
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 383] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 107 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = true, useStreamListener = false, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 98 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 120 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 123 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 247 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 113] "This test string is written to the file.This test string is written to the file." == "This test string is written to the file.This test string is written to the file."
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58" == "780c0e91f50bb7ec922cc11e16859e6d5df283c0d9470f61772e3d79f41eeb58"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 132 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = true, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 382] false == false
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 383] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 75 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = true, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 70 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = true, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 382] false == false
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 383] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 83 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = true, useStreamListener = true, useLongData = false"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 71 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 43551 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 43682 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 47422 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 46693 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = true, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 382] false == false
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 383] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 4706 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = true, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 4719 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = true, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 382] false == false
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 383] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 4676 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = true, useStreamListener = false, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 4845 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = true, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 40977 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = false, cancelAtSomePoint = false, useStreamListener = true, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 27905 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = false, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = true, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-2.txt"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 369] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 109] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 116] 16777216 == 16777216
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [promiseVerifyContents/< : 117] true == true
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 373] "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d" == "03a0db69a30140f307587ee746a539247c181bafd85b85c8516a3533c7d9ea1d"
18:14:42     INFO -  TEST-PASS | test_backgroundfilesaver.js | [test_combinations : 378] false == false
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Test case completed in 15045 ms."
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Starting keepPartialOnFailure = true, renameAtSomePoint = true, cancelAtSomePoint = false, useStreamListener = true, useLongData = true"
18:14:42     INFO -  TEST-INFO | test_backgroundfilesaver.js | "Target file changed to: test-backgroundfilesaver-1.txt"
18:14:42     INFO -  \x00
18:14:42     INFO -  <<<<<<<
test_backgroundfilesaver.js is a long-running test. On Android 4.3, it usually takes 250 - 300 seconds to complete.

13:44:05     INFO -  TEST-PASS | netwerk/test/unit/test_backgroundfilesaver.js | took 269643ms

13:41:06     INFO -  TEST-PASS | netwerk/test/unit/test_backgroundfilesaver.js | took 267630ms

11:29:49     INFO -  TEST-PASS | netwerk/test/unit/test_backgroundfilesaver.js | took 253679ms
Paolo -- To avoid timeouts on Android, I think we need to:
 - optimize or simplify the test to run faster, or
 - split the test into 2 or more tests, or
 - annotate the manifest with requesttimeoutfactor = 2 to allow it to run longer

Do you have a preference?
Flags: needinfo?(paolo.mozmail)
(In reply to Geoff Brown [:gbrown] from comment #37)
> Paolo -- To avoid timeouts on Android, I think we need to:
>  - optimize or simplify the test to run faster, or

I suspect "test_combinations" would be the slowest, but given the complexity of the underlying code I'd definitely feel safer if we actually ran all the 32 combinations of flags.

Since the test is about an I/O component, I'm not sure whether it can run faster on a slow file system. If there's a way to run the test on a RAM file system, this could make the test faster.

>  - split the test into 2 or more tests, or

This is an option, though logically they all test the same component and share some support functions that make sense just for that component.

>  - annotate the manifest with requesttimeoutfactor = 2 to allow it to run
> longer

Given the above, looks like annotating the test for a longer timeout would be best.
Flags: needinfo?(paolo.mozmail)
Hm, actually there is one optimization you could make:

http://mxr.mozilla.org/mozilla-central/source/netwerk/test/unit/test_backgroundfilesaver.js#63

The line above could become, for example:

const DESIRED_LENGTH = REQUEST_SUSPEND_AT * 1.125;

This should reduce the amount of data written. You'll need to updated the EXPECTED_HASHES for TEST_DATA_LONG as well. Probably it's worth adjusting the timeout in the manifest too.
Thanks so much for your comments. Unfortunately, when I tried to optimize as you suggested, I ran into some failures I did not understand. I don't have much time for this, so hope it is okay to just increase the timeout.
Assignee: nobody → gbrown
Attachment #8615031 - Flags: review?(paolo.mozmail)
Comment on attachment 8615031 [details] [diff] [review]
request longer timeout

Review of attachment 8615031 [details] [diff] [review]:
-----------------------------------------------------------------

That's fine, thanks for looking into the cause of the intermittent failure!

In the comment I'd add a quick explanation of why the test is slow, and/or a reference to this bug (or better a new one specifically about optimizing the test).
Attachment #8615031 - Flags: review?(paolo.mozmail) → review+
I've pointed back to this bug. Let's leave open for possible future optimization.
Keywords: leave-open
Assignee: gbrown → nobody
new features in new bug at this point
Status: NEW → RESOLVED
Closed: 4 years ago
Keywords: leave-open
Resolution: --- → FIXED
See Also: → 1572434
You need to log in before you can comment on or make changes to this bug.