Closed Bug 1621235 Opened 4 years ago Closed 4 years ago

Intermittent false ES failures - 'MailToolboxCustomizeDone' is not defined.

Categories

(Thunderbird :: Testing Infrastructure, defect, P5)

defect

Tracking

(thunderbird_esr78 fixed)

RESOLVED FIXED
Thunderbird 80.0
Tracking Status
thunderbird_esr78 --- fixed

People

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

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Filed by: mkmelin+mozilla [at] iki.fi
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=292355639&repo=comm-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/C079YckpSKW1YaRQrRleBw/runs/0/artifacts/public/logs/live_backing.log


Has been happening on and off for maybe a week or so. Looks like always the same false failures:

TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/base/content/calendar-command-controller.js:724:9 | 'goSetMenuValue' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/base/content/calendar-command-controller.js:727:9 | 'goSetMenuValue' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/base/content/calendar-command-controller.js:769:9 | 'PrintUtils' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:412:5 | 'MailToolboxCustomizeDone' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:416:5 | 'MailToolboxCustomizeDone' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:755:24 | 'gFolderDisplay' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:769:31 | 'InitMessageMenu' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:770:1 | 'InitMessageMenu' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:799:7 | 'onViewToolbarsPopupShowing' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:801:5 | 'onViewToolbarsPopupShowing' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:816:3 | 'onViewToolbarsPopupShowing' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:827:5 | 'CustomizeMailToolbar' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/calendar/lightning/content/messenger-overlay-sidebar.js:908:5 | 'openAddonsMgr' is not defined. (no-undef)

Mark, did you see any random eslint failures on Firefox? Or ideas on what's going on?

I wonder if this is actually the critical bit:

[task 2020-03-03T04:11:03.895Z] RangeError: Maximum call stack size exceeded
[task 2020-03-03T04:11:03.895Z] Occurred while linting /builds/worker/checkouts/gecko/comm/mail/base/content/ABSearchDialog.js:14
[task 2020-03-03T04:11:03.895Z]     at helpers.walkAST (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/globals.js:211:22)
[task 2020-03-03T04:11:03.895Z]     at Controller.enter (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js:167:9)
[task 2020-03-03T04:11:03.895Z]     at Controller.__execute (/builds/worker/checkouts/gecko/node_modules/estraverse/estraverse.js:330:31)
[task 2020-03-03T04:11:03.895Z]     at Controller.traverse (/builds/worker/checkouts/gecko/node_modules/estraverse/estraverse.js:434:28)
[task 2020-03-03T04:11:03.895Z]     at Object.traverse (/builds/worker/checkouts/gecko/node_modules/estraverse/estraverse.js:646:27)
[task 2020-03-03T04:11:03.895Z]     at Object.walkAST (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js:165:16)
[task 2020-03-03T04:11:03.895Z]     at Object.getGlobalsForFile (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/globals.js:208:13)
[task 2020-03-03T04:11:03.895Z]     at GlobalsForNode.Program (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/globals.js:125:47)
[task 2020-03-03T04:11:03.895Z]     at helpers.walkAST (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/globals.js:210:39)
[task 2020-03-03T04:11:03.896Z]     at Controller.enter (/builds/worker/checkouts/gecko/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js:167:9)

I don't know if the other errors are a direct result of this, but that certainly doesn't look good. I'm not sure why this would be happening though, unless there's too many files it is having to walk through to work out the globals for them. Though I'm not sure why it wouldn't be consistently failing.

Summary: Intermittent false ES failures - /builds/worker/checkouts/gecko/comm/calendar/base/content/calendar-command-controller.js:724:9 | 'goSetMenuValue' is not defined. (no-undef) → Intermittent false ES failures - 'MailToolboxCustomizeDone' is not defined.
Assignee: nobody → geoff
Status: NEW → ASSIGNED

This should stop the frequent failures. The imports are confusing ESLint when run in multiple processes, I think. I also stopped linting editor/** altogether since we don't ship that.

Attachment #9161773 - Flags: review?(paul)
Comment on attachment 9161773 [details] [diff] [review]
1621235-eslint-imports-1.diff

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

These changes seem reasonable.  Tested by running mach eslint from the comm directory.  I got 34 errors, but then when I tried without the patch I got 33 errors, not exactly the same errors.  So there must be something wrong with my local setup.  (I'm usually linting the calendar dir and there were no errors in there.)  So r+, but it would be good to see a successful try run.
Attachment #9161773 - Flags: review?(paul) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4bb55b313b29
Remove some ESLint import-globals-from loops to stop linting failures. r=pmorris

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

it would be good to see a successful try run.

Here's one I prepared earlier:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=e964ae864d17e524376cc3cd2e419376dd52478d

Target Milestone: --- → Thunderbird 80.0

Actually, yes let's fix this on ESR78. It's annoying noise we don't have to put up with.

Comment on attachment 9161773 [details] [diff] [review]
1621235-eslint-imports-1.diff

This patch is all comments.
Attachment #9161773 - Flags: approval-comm-esr78?

Comment on attachment 9161773 [details] [diff] [review]
1621235-eslint-imports-1.diff

[Triage Comment]
Approved for esr78

Attachment #9161773 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: