Closed Bug 1383221 Opened 7 years ago Closed 7 years ago

Tests that exist in tree but not defined in any manifests

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ahal, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 obsolete files)

I was making some changes to some test related eslint helpers and had a bug. All of a sudden there were a bunch of eslint errors (mostly undefined vars). I did some digging, and it turns out they were all from tests that are in-tree but not listed in any manifests (and are therefore not running in ci)!

The following tests are all not running in ci:
browser/extensions/shield-recipe-client/test/unit/test_ActionSandboxManager.js
browser/extensions/shield-recipe-client/test/unit/test_Utils.js
devtools/client/inspector/rules/test/browser_rules_css-docs-tooltip_closes-on-escape.js
devtools/client/inspector/test/browser_inspector_search-suggests-ids-and-classes.js
devtools/server/tests/unit/test_profiler_bufferstatus.js
toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js
toolkit/components/extensions/test/xpcshell/test_ext_extension_content_telemetry.js
toolkit/components/extensions/test/xpcshell/test_ext_storage_telemetry.js
toolkit/components/places/tests/history/test_hasVisits.js
toolkit/components/places/tests/unit/test_adaptive.js
Hi everyone, you are being needinfo'ed because you either authored, (most) recently modified or reviewed one or more of the tests above. It looks like these tests are all unlisted in any manifests, and therefore are not running in CI.

Please take a minute to triage your respective test(s) and file a follow-up blocking this. You can either:

A) Add the test to a manifest (and fix it if needed)
B) Add the test to a manifest and disable it
C) Delete the test

Tests can be disabled in a manifest like this:

[test_ActionSandboxManager.js]
disabled = too many intermittents (bug 1234567)

If you think you have been needinfo'ed in error, let me know.
Thanks!

p.s I'm also filing a follow up to add some kind of lint check to prevent tests like these from happening in the future.
Flags: needinfo?(poirot.alex)
Flags: needinfo?(pbrosset)
Flags: needinfo?(mkelly)
Flags: needinfo?(mak77)
Flags: needinfo?(jdescottes)
Flags: needinfo?(bob.silverberg)
Blocks: 1383251
Thanks for the heads up.

For devtools/client/inspector/rules/test/browser_rules_css-docs-tooltip_closes-on-escape.js, I propose to delete the test. The widget is disabled by default, probably soon to be removed completely, can't see the point of enabling now.
Flags: needinfo?(jdescottes)
Keywords: leave-open
pbro is on PTO so answering on his behalf about devtools/client/inspector/test/browser_inspector_search-suggests-ids-and-classes.js 

This test was not enabled for a long time (at least back to the migration from toolkit/ to devtools/), but it does test some features not tested by any other inspector search test. Quickly fixed the test, let's see if we can get a green try https://treeherder.mozilla.org/#/jobs?repo=try&revision=f1ab48cb6e8a410b93c1b44a0896bce8bb9d1a32
Flags: needinfo?(pbrosset)
PR for the Shield tests is up at https://github.com/mozilla/normandy/pull/904. I can create a Bugzilla bug to track it as well if you really want; that PR will land and hit mozilla-central next time we do a sync from Github in either case.
Flags: needinfo?(mkelly)
Depends on: 1383639
Filed bug 1383639 for the Places tests. thank you!
Flags: needinfo?(mak77)
Comment on attachment 8888923 [details]
Bug 1383221 - enable unused inspector search mochitest;

https://reviewboard.mozilla.org/r/159954/#review165702
Attachment #8888923 - Flags: review?(gl) → review+
Comment on attachment 8888923 [details]
Bug 1383221 - enable unused inspector search mochitest;

https://reviewboard.mozilla.org/r/159954/#review165704

::: commit-message-7d2e8:1
(Diff revision 2)
> +Bug 1383221 - enable unused inspector search mochitest;r=gl

I think we can change the commit message to simply state enable browser_inspector_search-suggests-ids-and-classes.js mochitest to clarify things a bit.
Flags: needinfo?(bob.silverberg)
Attachment #8889420 - Flags: review?(mixedpuppy)
Comment on attachment 8889420 [details]
Bug 1383221 - Add test_ext_browserSettings.js back into toolkit/components/extensions/test/xpcshell/xpcshell-common.ini,

I will open a separate bug for this as there are three tests that need to be addressed and a couple of them are failing locally for me.
Attachment #8889420 - Attachment is obsolete: true
Depends on: 1383723
Depends on: 1383728
I filed bug 1383728 for the WebExtensions tests.
Thanks for all the quick responses!

(In reply to Michael Kelly [:mkelly,:Osmose] from comment #5)
> PR for the Shield tests is up at
> https://github.com/mozilla/normandy/pull/904. I can create a Bugzilla bug to
> track it as well if you really want; that PR will land and hit
> mozilla-central next time we do a sync from Github in either case.

I don't think a bug's necessary
Commits pushed to master at https://github.com/mozilla/normandy

https://github.com/mozilla/normandy/commit/1addd817476d382d77f57dcdff12624603dbbe60
Bug 1383221: Add tests that weren't being run to manifests.

ActionSandboxManager.jsm imports ShellService.jsm, which is not supported by
xpcshell, so it had to be ported to a mochitest.

https://github.com/mozilla/normandy/commit/b6c410ed4a76823e07cc826b102b8b3f3f6ac139
Merge pull request #904 from Osmose/missing-tests

Bug 1383221: Add tests that weren't being run to manifests.
Attachment #8888923 - Attachment is obsolete: true
For the record, Bug 1383723 addressed:
- devtools/client/inspector/rules/test/browser_rules_css-docs-tooltip_closes-on-escape.js
- devtools/client/inspector/test/browser_inspector_search-suggests-ids-and-classes.js
Depends on: 1384652
Bug 1383728 landed, which addresses:

toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js
toolkit/components/extensions/test/xpcshell/test_ext_extension_content_telemetry.js
toolkit/components/extensions/test/xpcshell/test_ext_storage_telemetry.js
Looks like these all got picked up, thanks everyone.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(poirot.alex)
Resolution: --- → WORKSFORME
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: