Closed Bug 1961477 Opened 23 days ago Closed 7 days ago

Perma docshell/test/unit/test_URIFixup_check_host.js | xpcshell return code: 0 when Gecko 139 merges to beta on 2025-04-28

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox137 --- unaffected
firefox138 --- unaffected
firefox139 - fix-optional

People

(Reporter: chorotan, Unassigned, NeedInfo)

References

Details

[task 2025-04-19T13:45:27.920Z] 13:45:27     INFO -  TEST-START | docshell/test/unit/test_URIFixup_check_host.js
[task 2025-04-19T13:45:27.973Z] 13:45:27     INFO -  adb launch_application: am startservice -W -n 'org.mozilla.geckoview.test_runner/org.mozilla.geckoview.test_runner.XpcshellTestRunnerService$i0' -a android.intent.action.MAIN --es env0 XPCOM_DEBUG_BREAK=stack-and-abort --es env1 MOZ_CRASHREPORTER=1 --es env2 MOZ_CRASHREPORTER_NO_REPORT=1 --es env3 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es env4 MOZ_DEVELOPER_REPO_DIR=/builds/worker/checkouts/gecko --es env5 MOZ_DEVELOPER_OBJ_DIR=/builds/worker/workspace/obj-build --es env6 MOZ_DISABLE_CONTENT_SANDBOX=1 --es env7 MOZ_FETCHES_DIR=/builds/worker/fetches --es env8 MOZ_DISABLE_SOCKET_PROCESS=1 --es env9 LD_LIBRARY_PATH=/data/local/tmp/test_root/xpcb --es env10 MOZ_LINKER_CACHE=/data/local/tmp/test_root/xpcb --es env11 GRE_HOME=/data/local/tmp/test_root/xpcb --es env12 XPCSHELL_TEST_PROFILE_DIR=/data/local/tmp/test_root/xpc/p/ca593ed2-8b69-455a-8663-10a9398b77db --es env13 HOME=/data/local/tmp/test_root/xpc/p --es env14 XPCSHELL_TEST_TEMP_DIR=/data/local/tmp/test_root/xpc/tmp/591751db-5c91-4fb5-98f1-2bde98072e4f --es env15 MOZ_ANDROID_DATA_DIR=/data/local/tmp/test_root/xpcb --es env16 MOZ_IN_AUTOMATION=1 --es env17 MOZ_ANDROID_CPU_ABI=x86_64 --es env18 MOZHTTP2_PORT=38221 --es env19 MOZNODE_EXEC_PORT=45566 --es env20 MOZHTTP3_PORT=43848 --es env21 MOZHTTP3_PORT_FAILED=35253 --es env22 MOZHTTP3_PORT_ECH=35151 --es env23 MOZHTTP3_PORT_PROXY=40464 --es env24 MOZHTTP3_PORT_NO_RESPONSE=37358 --es env25 MOZHTTP3_ECH=AE3+DQBJBwAgACDFleMwar2afVf0wrSpqyBBKZjgQCgkn2FH+0na9v1tUAAQAAEAAQABAAMAAgABAAIAA0AOcHVibGljLmV4YW1wbGUAAA== --es env26 MOZ_HTTP3_SERVER_PATH=/builds/worker/fetches/hostutils/http3server --es env27 MOZ_HTTP3_CERT_DB_PATH=/builds/worker/workspace/build/tests/xpcshell/http3server/http3serverDB --es env28 TMPDIR=/data/local/tmp/test_root/xpc/p/ca593ed2-8b69-455a-8663-10a9398b77db --es env29 XPCSHELL_MINIDUMP_DIR=/data/local/tmp/test_root/xpc/minidumps/ca593ed2-8b69-455a-8663-10a9398b77db --es arg0 -g --es arg1 /data/local/tmp/test_root/xpcb --es arg2 --greomni --es arg3 /data/local/tmp/test_root/xpcb/geckoview-test_runner.apk --es arg4 -m --es arg5 -e --es arg6 'const _HEAD_JS_PATH = "/data/local/tmp/test_root/xpc/head.js";' --es arg7 -e --es arg8 'const _MOZINFO_JS_PATH = "/data/local/tmp/test_root/xpc/p/ca593ed2-8b69-455a-8663-10a9398b77db/mozinfo.json";' --es arg9 -e --es arg10 'const _PREFS_FILE = "/data/local/tmp/test_root/xpc/user.js";' --es arg11 -e --es arg12 'const _TESTING_MODULES_DIR = "/data/local/tmp/test_root/xpc/m";' --es arg13 -f --es arg14 /data/local/tmp/test_root/xpc/head.js --es arg15 -e --es arg16 'const _HEAD_FILES = ["/data/local/tmp/test_root/xpc/docshell/test/unit/head_docshell.js"];' --es arg17 -e --es arg18 'const _JSDEBUGGER_PORT = 0;' --es arg19 -e --es arg20 'const _TEST_CWD = "/data/local/tmp/test_root/xpc/docshell/test/unit";' --es arg21 -e --es arg22 'const _TEST_FILE = ["test_URIFixup_check_host.js"];' --es arg23 -e --es arg24 'const _TEST_NAME = "docshell/test/unit/test_URIFixup_check_host.js";' --es arg25 -e --es arg26 '_execute_test(); quit(0);' --es out_file /data/local/tmp/test_root/xpc/logs/xpcshell-cb466bc3-0740-4ffa-ac36-41e244c8e4d9.log
[task 2025-04-19T13:45:28.194Z] 13:45:28     INFO -  remotexpcshelltests.py | docshell/test/unit/test_URIFixup_check_host.js | 25003 | Launched Test App
[task 2025-04-19T13:45:28.818Z] 13:45:28     INFO -  remotexpcshelltests.py | docshell/test/unit/test_URIFixup_check_host.js | 25003 | Application ran for: 0:00:00.897064
[task 2025-04-19T13:45:28.893Z] 13:45:28  WARNING -  TEST-UNEXPECTED-FAIL | docshell/test/unit/test_URIFixup_check_host.js | xpcshell return code: 0
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  TEST-INFO took 972ms
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  >>>>>>>
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  running event loop
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  docshell/test/unit/test_URIFixup_check_host.js | Starting setup
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2025-04-19T13:45:28.893Z] 13:45:28     INFO -  (xpcshell/head.js) | test setup finished (2)
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  docshell/test/unit/test_URIFixup_check_host.js | Starting test_uri_with_force_fixup
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  (xpcshell/head.js) | test test_uri_with_force_fixup pending (2)
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  Unexpected exception NS_ERROR_FAILURE:
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  test_uri_with_force_fixup@test_URIFixup_check_host.js:79:22
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  _run_next_test/<@/data/local/tmp/test_root/xpc/head.js:1759:22
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  _run_next_test@/data/local/tmp/test_root/xpc/head.js:1759:38
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  run@/data/local/tmp/test_root/xpc/head.js:808:9
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:245:6
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:596:5
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  @-e:1:1
[task 2025-04-19T13:45:28.894Z] 13:45:28     INFO -  exiting test
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "SyntaxError: unterminated regular expression literal" {file: "resource://gre/modules/URIFixup.sys.mjs" line: 5}]
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  test_uri_with_force_fixup@test_URIFixup_check_host.js:79:22
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  _run_next_test/<@/data/local/tmp/test_root/xpc/head.js:1759:22
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  _run_next_test@/data/local/tmp/test_root/xpc/head.js:1759:38
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  run@/data/local/tmp/test_root/xpc/head.js:808:9
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:245:6
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:596:5
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  @-e:1:1
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  "
[task 2025-04-19T13:45:28.895Z] 13:45:28     INFO -  <<<<<<<
[task 2025-04-19T13:45:28.979Z] 13:45:28     INFO -  Cleaning up profile for /builds/worker/workspace/build/tests/xpcshell/tests/docshell/test/unit/test_URIFixup_check_host.js folder: /data/local/tmp/test_root/xpc/p/ca593ed2-8b69-455a-8663-10a9398b77db
[task 2025-04-19T13:45:29.653Z] 13:45:29     INFO -  TEST-START | docshell/test/unit/test_URIFixup.js
[task 2025-04-19T13:45:29.709Z] 13:45:29     INFO -  adb launch_application: am startservice -W -n 'org.mozilla.geckoview.test_runner/org.mozilla.geckoview.test_runner.XpcshellTestRunnerService$i0' -a android.intent.action.MAIN --es env0 XPCOM_DEBUG_BREAK=stack-and-abort --es env1 MOZ_CRASHREPORTER=1 --es env2 MOZ_CRASHREPORTER_NO_REPORT=1 --es env3 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es env4 MOZ_DEVELOPER_REPO_DIR=/builds/worker/checkouts/gecko --es env5 MOZ_DEVELOPER_OBJ_DIR=/builds/worker/workspace/obj-build --es env6 MOZ_DISABLE_CONTENT_SANDBOX=1 --es env7 MOZ_FETCHES_DIR=/builds/worker/fetches --es env8 MOZ_DISABLE_SOCKET_PROCESS=1 --es env9 LD_LIBRARY_PATH=/data/local/tmp/test_root/xpcb --es env10 MOZ_LINKER_CACHE=/data/local/tmp/test_root/xpcb --es env11 GRE_HOME=/data/local/tmp/test_root/xpcb --es env12 XPCSHELL_TEST_PROFILE_DIR=/data/local/tmp/test_root/xpc/p/292732cd-a4ae-4928-9737-61089f2d59d5 --es env13 HOME=/data/local/tmp/test_root/xpc/p --es env14 XPCSHELL_TEST_TEMP_DIR=/data/local/tmp/test_root/xpc/tmp/1adb2c00-ebbc-456e-a902-96500c892645 --es env15 MOZ_ANDROID_DATA_DIR=/data/local/tmp/test_root/xpcb --es env16 MOZ_IN_AUTOMATION=1 --es env17 MOZ_ANDROID_CPU_ABI=x86_64 --es env18 MOZHTTP2_PORT=38221 --es env19 MOZNODE_EXEC_PORT=45566 --es env20 MOZHTTP3_PORT=43848 --es env21 MOZHTTP3_PORT_FAILED=35253 --es env22 MOZHTTP3_PORT_ECH=35151 --es env23 MOZHTTP3_PORT_PROXY=40464 --es env24 MOZHTTP3_PORT_NO_RESPONSE=37358 --es env25 MOZHTTP3_ECH=AE3+DQBJBwAgACDFleMwar2afVf0wrSpqyBBKZjgQCgkn2FH+0na9v1tUAAQAAEAAQABAAMAAgABAAIAA0AOcHVibGljLmV4YW1wbGUAAA== --es env26 MOZ_HTTP3_SERVER_PATH=/builds/worker/fetches/hostutils/http3server --es env27 MOZ_HTTP3_CERT_DB_PATH=/builds/worker/workspace/build/tests/xpcshell/http3server/http3serverDB --es env28 TMPDIR=/data/local/tmp/test_root/xpc/p/292732cd-a4ae-4928-9737-61089f2d59d5 --es env29 XPCSHELL_MINIDUMP_DIR=/data/local/tmp/test_root/xpc/minidumps/292732cd-a4ae-4928-9737-61089f2d59d5 --es arg0 -g --es arg1 /data/local/tmp/test_root/xpcb --es arg2 --greomni --es arg3 /data/local/tmp/test_root/xpcb/geckoview-test_runner.apk --es arg4 -m --es arg5 -e --es arg6 'const _HEAD_JS_PATH = "/data/local/tmp/test_root/xpc/head.js";' --es arg7 -e --es arg8 'const _MOZINFO_JS_PATH = "/data/local/tmp/test_root/xpc/p/292732cd-a4ae-4928-9737-61089f2d59d5/mozinfo.json";' --es arg9 -e --es arg10 'const _PREFS_FILE = "/data/local/tmp/test_root/xpc/user.js";' --es arg11 -e --es arg12 'const _TESTING_MODULES_DIR = "/data/local/tmp/test_root/xpc/m";' --es arg13 -f --es arg14 /data/local/tmp/test_root/xpc/head.js --es arg15 -e --es arg16 'const _HEAD_FILES = ["/data/local/tmp/test_root/xpc/docshell/test/unit/head_docshell.js"];' --es arg17 -e --es arg18 'const _JSDEBUGGER_PORT = 0;' --es arg19 -e --es arg20 'const _TEST_CWD = "/data/local/tmp/test_root/xpc/docshell/test/unit";' --es arg21 -e --es arg22 'const _TEST_FILE = ["test_URIFixup.js"];' --es arg23 -e --es arg24 'const _TEST_NAME = "docshell/test/unit/test_URIFixup.js";' --es arg25 -e --es arg26 '_execute_test(); quit(0);' --es out_file /data/local/tmp/test_root/xpc/logs/xpcshell-af48e743-9aef-4f3a-89f9-520be3f0adef.log
[task 2025-04-19T13:45:29.959Z] 13:45:29     INFO -  remotexpcshelltests.py | docshell/test/unit/test_URIFixup.js | 25248 | Launched Test App
[task 2025-04-19T13:45:30.737Z] 13:45:30     INFO -  remotexpcshelltests.py | docshell/test/unit/test_URIFixup.js | 25248 | Application ran for: 0:00:01.083526
[task 2025-04-19T13:45:30.811Z] 13:45:30  WARNING -  TEST-UNEXPECTED-FAIL | docshell/test/unit/test_URIFixup.js | xpcshell return code: 0
[task 2025-04-19T13:45:30.811Z] 13:45:30     INFO -  TEST-INFO took 1158ms
[task 2025-04-19T13:45:30.811Z] 13:45:30     INFO -  >>>>>>>
[task 2025-04-19T13:45:30.811Z] 13:45:30     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-04-19T13:45:30.811Z] 13:45:30     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2025-04-19T13:45:30.811Z] 13:45:30     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  running event loop
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  docshell/test/unit/test_URIFixup.js | Starting setup
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  (xpcshell/head.js) | test setup finished (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "#init: failure initializing search: Error: Fake Settings error during search service initialization."]"
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  docshell/test/unit/test_URIFixup.js | Starting test_unset_pref_fixes_typos
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  (xpcshell/head.js) | test test_unset_pref_fixes_typos pending (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  Unexpected exception NS_ERROR_FAILURE:
[task 2025-04-19T13:45:30.812Z] 13:45:30     INFO -  test_unset_pref_fixes_typos@test_URIFixup.js:136:28
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  _run_next_test/<@/data/local/tmp/test_root/xpc/head.js:1759:22
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  _run_next_test@/data/local/tmp/test_root/xpc/head.js:1759:38
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  run@/data/local/tmp/test_root/xpc/head.js:808:9
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:245:6
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:596:5
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  @-e:1:1
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  exiting test
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "SyntaxError: unterminated regular expression literal" {file: "resource://gre/modules/URIFixup.sys.mjs" line: 5}]
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  test_unset_pref_fixes_typos@test_URIFixup.js:136:28
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  _run_next_test/<@/data/local/tmp/test_root/xpc/head.js:1759:22
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  _run_next_test@/data/local/tmp/test_root/xpc/head.js:1759:38
[task 2025-04-19T13:45:30.813Z] 13:45:30     INFO -  run@/data/local/tmp/test_root/xpc/head.js:808:9
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:245:6
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:596:5
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  @-e:1:1
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  "
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Error: Fake Settings error during search service initialization." {file: "resource://gre/modules/SearchService.sys.mjs" line: 251}]"
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Error: IndexedDB: main/hijack-blocklists list() IndexedDB:  execute() The application is shutting down"]"
[task 2025-04-19T13:45:30.814Z] 13:45:30     INFO -  <<<<<<<

Could you take a look at this one as well? Similarly to Bug 1961473, we think that Bug 1959681 could be the root cause of both permas, if not please redirect the needinfo. Thank you!

Flags: needinfo?(gsvelto)
Summary: Perma docshell/test/unit/test_URIFixup_check_host.js | xpcshell return code: 0 when Gecko 138 merges to beta on 2025-04-28 → Perma docshell/test/unit/test_URIFixup_check_host.js | xpcshell return code: 0 when Gecko 139 merges to beta on 2025-04-28

Gijs you're the last person who touched these tests, can you lend me a hand? The error in the log makes no sense to me, there appears to be no regular expression in the 5th line of URIFixup.sys.mjs, in fact it appears the line is part of the license header of the file. What could be causing this?

Flags: needinfo?(gijskruitbosch+bugs)

(In reply to Gabriele Svelto [:gsvelto] from comment #3)

Gijs you're the last person who touched these tests, can you lend me a hand? The error in the log makes no sense to me, there appears to be no regular expression in the 5th line of URIFixup.sys.mjs, in fact it appears the line is part of the license header of the file. What could be causing this?

Sorry for the delay. I looked at this a bit but I am also quite lost.

Two things I noticed:

  1. this is android-only, and there do not appear to be any consumers of urifixup on Android. I don't know why that is or if the module is thus not packaged? From the build system's perspective, AFAICT the module is packaged on android...
  2. the regex errors come from our JS engine, and happen on line 5 which has several / for a URL and to end a comment, and I wonder if somehow the comment is getting interpreted as a regex. But I have no explanation as to why that would happen.

I also wouldn't know why this would be any different on central - I don't think there's any difference in how the module itself behaves, or those tests - but it passes there.

Maybe :boek or someone on the JS team can help figure out how to dig into this?

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(jboek)

Like, basically the module is failing to load but I can't see any earthly reason for that, nor do I understand why the behaviour would be different between beta and central. :-(

Thanks Gijs! The only clue I have is that bug 1962204 is likely behind this outcrop of weird intermittent issue showing up on Android. Given that bug puts significant extra load on the test runner I'd say this is most likely triggered by a race or a weird timing problem somewhere. Squinting hard I think your idea in 2 is the only possible explanation. That module must have been interpreted as a regex... but why? Even assuming this is caused by a weird timing issue this is so bizarre.

Flags: needinfo?(gsvelto)

FWIW, this isn't permafailing on Beta at the moment AFAICT. All Android xpcshell runs are green.

No signs of this failure on central as beta simulations

Status: NEW → RESOLVED
Closed: 7 days ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.