Closed Bug 1906205 Opened 4 months ago Closed 4 months ago

Intermittent toolkit/components/extensions/test/xpcshell/test_ext_theme_startupData.js | single tracking bug

Categories

(Thunderbird :: Testing Infrastructure, defect, P5)

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, intermittent-testcase)

The error is found in other people's jobs and seem to be a new failure.
For example, in comm-central job.
https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=Loms_ZruTwi0tb2uwFwTGg.0&revision=8ea3473a149a475794aed242ea603b1e61c63e18

I see a couple of errors.
From my try-comm-central error.
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=3f6ff78afc037e03fde635cdeff201d443abceba|
https://treeherder.mozilla.org/logviewer?job_id=465167171&repo=try-comm-central&lineNumber=3930

"startupData should be identical when the theme loads again"

From the log:

[task 2024-07-04T08:03:54.563Z] 08:03:54     INFO -  "Waiting for theme to have started again"
[task 2024-07-04T08:03:54.563Z] 08:03:54     INFO -  TEST-PASS | xpcshell-remote.toml:toolkit/components/extensions/test/xpcshell/test_ext_theme_startupData.js | test_static_theme_startupData_light_theme - [test_static_theme_startupData_light_theme : 148] Not trivially equal - {"lwtData":{"theme":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"darkTheme":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"}},"lwtStyles":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"lwtDarkStyles":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"}} != {"lwtData":{"theme":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"darkTheme":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"}},"lwtStyles":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"lwtDarkStyles":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"},"experiment":"undefined"}
[task 2024-07-04T08:03:54.564Z] 08:03:54  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell-remote.toml:toolkit/components/extensions/test/xpcshell/test_ext_theme_startupData.js | test_static_theme_startupData_light_theme - [test_static_theme_startupData_light_theme : 150] startupData should be identical when the theme loads again - {"lwtData":{"theme":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"darkTheme":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"}},"lwtStyles":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"lwtDarkStyles":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"},"experiment":"undefined"} deepEqual {"lwtData":{"theme":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"darkTheme":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"}},"lwtStyles":{"accentcolor":"rgb(12, 34, 56)","id":"@my-theme","version":"1.0"},"lwtDarkStyles":{"accentcolor":"rgb(65, 43, 21)","id":"@my-theme","version":"1.0"}}
[task 2024-07-04T08:03:54.564Z] 08:03:54     INFO -  /builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/extensions/test/xpcshell/test_ext_theme_startupData.js:do_test_static_theme_startupData:150
[task 2024-07-04T08:03:54.565Z] 08:03:54     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_do_main:245
[task 2024-07-04T08:03:54.565Z] 08:03:54     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test:596
[task 2024-07-04T08:03:54.565Z] 08:03:54     INFO -  -e:null:1
[task 2024-07-04T08:03:54.565Z] 08:03:54     INFO -  exiting test
[task 2024-07-04T08:03:54.566Z] 08:03:54     INFO -  "Clearing pref "ui.systemUsesDarkTheme""
[task 2024-07-04T08:03:54.566Z] 08:03:54     INFO -  Unexpected exception NS_ERROR_ABORT:
[task 2024-07-04T08:03:54.566Z] 08:03:54     INFO -  _abort_failed_test@/builds/worker/workspace/build/tests/xpcshell/head.js:869:20
[task 2024-07-04T08:03:54.566Z] 08:03:54     INFO -  do_report_result@/builds/worker/workspace/build/tests/xpcshell/head.js:981:5
[task 2024-07-04T08:03:54.567Z] 08:03:54     INFO -  Assert<@/builds/worker/workspace/build/tests/xpcshell/head.js:70:21
[task 2024-07-04T08:03:54.567Z] 08:03:54     INFO -  Assert.prototype.report@resource://testing-common/Assert.sys.mjs:251:10
[task 2024-07-04T08:03:54.567Z] 08:03:54     INFO -  deepEqual@resource://testing-common/Assert.sys.mjs:331:8
[task 2024-07-04T08:03:54.568Z] 08:03:54     INFO -  do_test_static_theme_startupData@/builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/extensions/test/xpcshell/test_ext_theme_startupData.js:150:10
[task 2024-07-04T08:03:54.568Z] 08:03:54     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:245:6
[task 2024-07-04T08:03:54.568Z] 08:03:54     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:596:5
[task 2024-07-04T08:03:54.569Z] 08:03:54     INFO -  @-e:1:1
[task 2024-07-04T08:03:54.569Z] 08:03:54     INFO -  exiting test
[task 2024-07-04T08:03:54.569Z] 08:03:54     INFO -  "CONSOLE_MESSAGE: (info) 1720080234114	addons.xpi-utils	DEBUG	Finished async read of XPI database, parsing..."
[task 2024-07-04T08:03:54.570Z] 08:03:54     INFO -  "CONSOLE_MESSAGE: (info) 1720080234124	addons.xpi-utils	DEBUG	Successfully read XPI database"
[task 2024-07-04T08:03:54.573Z] 08:03:54  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell-remote.toml:toolkit/components/extensions/test/xpcshell/test_ext_theme_startupData.js | test_static_theme_startupData_light_theme - [test_static_theme_startupData_light_theme : 67] Extension left running at test shutdown - "running" == "unloaded"
[task 2024-07-04T08:03:54.573Z] 08:03:54     INFO -  resource://testing-common/ExtensionXPCShellUtils.sys.mjs:ExtensionWrapper/<:67
[task 2024-07-04T08:03:54.574Z] 08:03:54     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test/<:660
[task 2024-07-04T08:03:54.574Z] 08:03:54     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test:669
[task 2024-07-04T08:03:54.575Z] 08:03:54     INFO -  -e:null:1
[task 2024-07-04T08:03:54.575Z] 08:03:54     INFO -  exiting test
[task 2024-07-04T08:03:54.576Z] 08:03:54     INFO -  NS_ERROR_ABORT:
[task 2024-07-04T08:03:54.576Z] 08:03:54     INFO -  _abort_failed_test@/builds/worker/workspace/build/tests/xpcshell/head.js:869:20
[task 2024-07-04T08:03:54.576Z] 08:03:54     INFO -  do_report_result@/builds/worker/workspace/build/tests/xpcshell/head.js:981:5
[task 2024-07-04T08:03:54.577Z] 08:03:54     INFO -  Assert<@/builds/worker/workspace/build/tests/xpcshell/head.js:70:21
[task 2024-07-04T08:03:54.577Z] 08:03:54     INFO -  Assert.prototype.report@resource://testing-common/Assert.sys.mjs:251:10
[task 2024-07-04T08:03:54.577Z] 08:03:54     INFO -  equal@resource://testing-common/Assert.sys.mjs:293:8
[task 2024-07-04T08:03:54.578Z] 08:03:54     INFO -  ExtensionWrapper/<@resource://testing-common/ExtensionXPCShellUtils.sys.mjs:67:24
[task 2024-07-04T08:03:54.578Z] 08:03:54     INFO -  _execute_test/<@/builds/worker/workspace/build/tests/xpcshell/head.js:660:28
[task 2024-07-04T08:03:54.579Z] 08:03:54     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:669:5
[task 2024-07-04T08:03:54.579Z] 08:03:54     INFO -  @-e:1:1
[task 2024-07-04T08:03:54.579Z] 08:03:54     INFO -  "Force a GC"
[task 2024-07-04T08:03:54.580Z] 08:03:54     INFO -  Error: Found unexpected files in temporary directory: generated-extension.xpi at resource://testing-common/AddonTestUtils.sys.mjs:363
[task 2024-07-04T08:03:54.580Z] 08:03:54     INFO -  init/<@resource://testing-common/AddonTestUtils.sys.mjs:363:15
[task 2024-07-04T08:03:54.581Z] 08:03:54     INFO -  _execute_test/<@/builds/worker/workspace/build/tests/xpcshell/head.js:660:28
[task 2024-07-04T08:03:54.581Z] 08:03:54     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:669:5


I am not sure how the loaded data are different. So I pretty print the JSON data.

The difference:

{
    "lwtData": {"theme":
                {"accentcolor": "rgb(12, 34, 56)",
                 "id": "@my-theme",
                 "version": "1.0"},
                "darkTheme": {"accentcolor":"rgb(65, 43, 21)",
                              "id":"@my-theme",
                              "version":"1.0"}},
    "lwtStyles": {"accentcolor":"rgb(12, 34, 56)",
                  "id":"@my-theme",
                  "version":"1.0"},
    "lwtDarkStyles": {"accentcolor":"rgb(65, 43, 21)",
                   "id":"@my-theme","version":"1.0"},
--> "experiment":"undefined"}   <--- This does not exist in the second part

deepEqual

{
    "lwtData": {"theme":
                {"accentcolor":"rgb(12, 34, 56)",
                 "id":"@my-theme",
                 "version":"1.0"},
                "darkTheme":{"accentcolor":"rgb(65, 43, 21)",
                             "id":"@my-theme",
                             "version":"1.0"}},
    "lwtStyles":{"accentcolor":"rgb(12, 34, 56)",
                 "id":"@my-theme",
                 "version":"1.0"},
    "lwtDarkStyles":{"accentcolor":"rgb(65, 43, 21)",
                     "id":"@my-theme",
                     "version":"1.0"}}
Depends on: 1906087

The fix in bug 1906087 seems to have carried over to this.

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