Enforce no-unused-vars for global variables in marionette eslint configuration
Categories
(Remote Protocol :: Marionette, task)
Tracking
(firefox91 fixed)
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
no-unused-vars is not enforced for global variables on JS files, only on JSM files. See https://searchfox.org/mozilla-central/rev/183b0cfc30f2d40f818a08cbea960f6119e2d196/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js#60-75
However in remote/marionette, js files are really used as JavaScript modules and we should be able to enforce stricter linting rules.
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/845cb9274110 [marionette] Enforce no-unused-vars for global variables in marionette eslint configuration r=webdriver-reviewers,whimboo
Comment 3•3 years ago
|
||
bugherder |
Assignee | ||
Comment 4•3 years ago
|
||
Quickly looked at the regressions listed here: all TV runs which failed were with Fission enabled, but RemoteAgent/cdp is not fission compatible (https://searchfox.org/mozilla-central/rev/5227b2bd674d49c0eba365a709d3fb341534f361/taskcluster/ci/test/mochitest.yml#815-816).
So those tests already fail without the patch which landed here, it's just that they never run with Fission enabled outside of the Test Verify configuration. And to be clear, they do not even need to run with --verify to fail. Simply running those tests once with --enable-fission is enough to make them all fail.
Assignee | ||
Comment 5•3 years ago
|
||
:nataliaCs : Hi! As mentioned in the comment above, all the TV regressions which have been flagged on this bug are existing failures. mochitest-remote
jobs are not supposed to run on Fission environments until Bug 1600054 is fixed. Those tests are expected to fail with Fission. We can keep the bugs if needed, but do you mind if we remove the regression
keyword from them, since they are really unrelated to the code change which landed here?
Comment 6•3 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #5)
:nataliaCs : Hi! As mentioned in the comment above, all the TV regressions which have been flagged on this bug are existing failures.
mochitest-remote
jobs are not supposed to run on Fission environments until Bug 1600054 is fixed. Those tests are expected to fail with Fission. We can keep the bugs if needed, but do you mind if we remove theregression
keyword from them, since they are really unrelated to the code change which landed here?
Fixing, thank you!
Assignee | ||
Comment 7•3 years ago
|
||
Thanks for updating all the bugs!
Updated•1 year ago
|
Description
•