Closed Bug 1719850 Opened 3 years ago Closed 3 years ago

Enforce no-unused-vars for global variables in marionette eslint configuration

Categories

(Remote Protocol :: Marionette, task)

Default
task

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
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: nobody → jdescottes
Status: NEW → ASSIGNED
Attachment #9230469 - Attachment description: Bug 1719850 - Enforce no-unused-vars for global variables in marionette eslint configuration → Bug 1719850 - [marionette] Enforce no-unused-vars for global variables in marionette eslint configuration
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
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Regressions: 1719927
Regressions: 1719930
Regressions: 1719931
Regressions: 1719932
Regressions: 1719933

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.

: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?

Flags: needinfo?(ncsoregi)

(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 the regression keyword from them, since they are really unrelated to the code change which landed here?

Fixing, thank you!

Flags: needinfo?(ncsoregi)
No longer regressions: 1719927
No longer regressions: 1719930
No longer regressions: 1719931
No longer regressions: 1719932
No longer regressions: 1719933
See Also: → 1720101

Thanks for updating all the bugs!

Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: