Open Bug 1889828 Opened 1 month ago Updated 20 days ago

Intermittent tools/profiler/tests/xpcshell/test_feature_posix_signals.js | single tracking bug

Categories

(Core :: Gecko Profiler, defect, P5)

defect

Tracking

()

People

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

References

Details

(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [stockwell needswork:owner])

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


[task 2024-04-05T00:32:51.671Z] 00:32:51     INFO -  TEST-PASS | xpcshell.toml:browser/components/extensions/test/xpcshell/test_ext_browsingData_settings.js | took 3164ms
[task 2024-04-05T00:32:51.676Z] 00:32:51     INFO -  TEST-START | tools/profiler/tests/xpcshell/test_feature_posix_signals.js
[task 2024-04-05T00:32:51.965Z] 00:32:51  WARNING -  TEST-UNEXPECTED-FAIL | tools/profiler/tests/xpcshell/test_feature_posix_signals.js | xpcshell return code: 0
[task 2024-04-05T00:32:51.965Z] 00:32:51     INFO -  TEST-INFO took 266ms
[task 2024-04-05T00:32:51.965Z] 00:32:51     INFO -  >>>>>>>
[task 2024-04-05T00:32:51.965Z] 00:32:51     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2024-04-05T00:32:51.965Z] 00:32:51     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  running event loop
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  tools/profiler/tests/xpcshell/test_feature_posix_signals.js | Starting
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  (xpcshell/head.js) | test pending (2)
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  "Test that stopping the profiler with a posix signal works."
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  TEST-PASS | tools/profiler/tests/xpcshell/test_feature_posix_signals.js |  - The profiler should not begin the test active. - true == true
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2024-04-05T00:32:51.966Z] 00:32:51     INFO -  "CONSOLE_MESSAGE: (info) No chrome package registered for chrome://branding/locale/brand.properties"
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  TEST-PASS | tools/profiler/tests/xpcshell/test_feature_posix_signals.js |  - The profiler should now be active. - true == true
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  TEST-PASS | tools/profiler/tests/xpcshell/test_feature_posix_signals.js |  - Raising a SIGUSR2 signal should succeed. - {"ok":true} == true
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  (xpcshell/head.js) | test finished (1)
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  exiting test
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (1)
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  (xpcshell/head.js) | test finished (1)
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  exiting test
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  tools/profiler/tests/xpcshell/test_feature_posix_signals.js | Starting
[task 2024-04-05T00:32:51.967Z] 00:32:51     INFO -  (xpcshell/head.js) | test pending (1)
[task 2024-04-05T00:32:51.968Z] 00:32:51     INFO -  "Test that stopping the profiler with a posix signal writes a profile file to the system download directory."
[task 2024-04-05T00:32:51.968Z] 00:32:51     INFO -  TEST-PASS | tools/profiler/tests/xpcshell/test_feature_posix_signals.js |  - The profiler should not begin the test active. - true == true
[task 2024-04-05T00:32:51.968Z] 00:32:51     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (1)
[task 2024-04-05T00:32:51.968Z] 00:32:51     INFO -  exiting test
[task 2024-04-05T00:32:51.968Z] 00:32:51  WARNING -  TEST-UNEXPECTED-FAIL | tools/profiler/tests/xpcshell/test_feature_posix_signals.js |  - The profiler should now be active. - false == true
[task 2024-04-05T00:32:51.968Z] 00:32:51     INFO -  /opt/worker/tasks/task_171227572750761/build/tests/xpcshell/tests/tools/profiler/tests/xpcshell/test_feature_posix_signals.js:null:175
[task 2024-04-05T00:32:51.968Z] 00:32:51     INFO -  /opt/worker/tasks/task_171227572750761/build/tests/xpcshell/head.js:_execute_test:672
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  -e:null:1
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  exiting test
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  Unexpected exception NS_ERROR_ABORT:
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  _abort_failed_test@/opt/worker/tasks/task_171227572750761/build/tests/xpcshell/head.js:869:20
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  do_report_result@/opt/worker/tasks/task_171227572750761/build/tests/xpcshell/head.js:981:5
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  Assert<@/opt/worker/tasks/task_171227572750761/build/tests/xpcshell/head.js:70:21
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  Assert.prototype.report@resource://testing-common/Assert.sys.mjs:251:10
[task 2024-04-05T00:32:51.969Z] 00:32:51     INFO -  Assert.prototype.ok@resource://testing-common/Assert.sys.mjs:277:10
[task 2024-04-05T00:32:51.970Z] 00:32:51     INFO -  @/opt/worker/tasks/task_171227572750761/build/tests/xpcshell/tests/tools/profiler/tests/xpcshell/test_feature_posix_signals.js:175:10
[task 2024-04-05T00:32:51.970Z] 00:32:51     INFO -  _execute_test@/opt/worker/tasks/task_171227572750761/build/tests/xpcshell/head.js:672:16
[task 2024-04-05T00:32:51.970Z] 00:32:51     INFO -  @-e:1:1
[task 2024-04-05T00:32:51.970Z] 00:32:51     INFO -  exiting test
[task 2024-04-05T00:32:51.970Z] 00:32:51     INFO -  <<<<<<<
[task 2024-04-05T00:32:51.970Z] 00:32:51     INFO -  TEST-START | dom/base/test/unit/test_error_codes.js

Update

There have been 47 total failures within the last 7 days:

  • 21 failures on OS X 10.15 WebRender opt/ debug
  • 26 failures on OS X 10.15 WebRender Shippable opt

Recent log: https://treeherder.mozilla.org/logviewer?job_id=454426464&repo=mozilla-central&lineNumber=6862

Adam, any chance your changes in Bug 1865930 might have triggered this?
Thank you.

Flags: needinfo?(abrouwersharries)
Whiteboard: [stockwell needswork:owner]

The test seems to mix two different ways of making an async xpcshell tests.

From the documentation, you can either use add_task with an async function (https://firefox-source-docs.mozilla.org/testing/xpcshell/index.html#task-based-asynchronous-tests) or call do_test_finished() as many times as you called do_test_pending() (https://firefox-source-docs.mozilla.org/testing/xpcshell/index.html#other-tests).

I see do_test_finished calls in the test but no do_test_pending(), and the test log for failures shows:

  (xpcshell/head.js) | test finished (1)
  exiting test

twice between the 2 subtests.

The test seems to mix two different ways of making an async xpcshell tests.

Ah, good point. I wasn't very familiar with how we write xpcshell tests before this bug, so I'll revisit them and make sure they're correctly written.

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