Closed Bug 1825116 Opened 2 years ago Closed 1 year ago

firefox-android: fix lint errors on mozilla-central

Categories

(Release Engineering :: General, task, P3)

Tracking

(firefox114 fixed, firefox126 fixed)

RESOLVED FIXED
Tracking Status
firefox114 --- fixed
firefox126 --- fixed

People

(Reporter: gbrown, Assigned: jcristau)

References

Details

Attachments

(25 files, 11 obsolete files)

59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
59 bytes, text/x-github-pull-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

When firefox-android code is linted on oak, we see a variety of lint failures:
https://treeherder.mozilla.org/logviewer?job_id=410470235&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470218&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470230&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470195&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470216&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470196&repo=oak

If there are conflicts between lint rules on github vs mozilla-central, these changes might need to be finalized after firefox-android is migrated to mozilla-central, but I'm also seeing some clear wins that could be made now.

Type: defect → task
Assignee: nobody → gbrown
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---

Notes from review of #1637:

I think that's about all I can do for now. Many lint failures remain, and more will inevitably be added while f-a is on github; we should revisit these issues closer to the actual migration.

One way forward would be to add exclusions (eg https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/tools/lint/license.yml#6) for mobile/android/android-components|focus-android|fenix to all of the problematic linters, then work to resolve those after the migration.

Assignee: gbrown → nobody

There are still a few failures seen on oak:

https://treeherder.mozilla.org/jobs?repo=oak&searchStr=lint&revision=c0dc034cd7934e03ddd0af95d6cf171804f5582d

I see a few more we can address on firefox-android...

Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/83e0bbb793c5f4b2297454bc3236f432c69fe3e6
[main] Bug 1825116 - Reformat some python files with black and avoid 'bare except' ruff warnings

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → jcristau

Generated by
./mach lint -l black --fix taskcluster/android_taskgraph/ taskcluster/scripts/lint/ taskcluster/scripts/write-dummy-secret.py mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/experimentintegration/conftest.py mobile/android/fenix/automation/taskcluster/androidTest/parse-ui-test-fromfile.py mobile/android/focus-android/automation/taskcluster/androidTest/parse-ui-test*

Generated with:
./mach lint -l ruff --fix taskcluster/android_taskgraph

./mach lint -l ruff --fix mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/experimentintegration/conftest.py

Attached file Bug 1825116 - fix yamllint errors (obsolete) —
Attachment #9379573 - Attachment description: WIP: Bug 1825116 - Add lint exclusions for some troublesome firefox-android files → Bug 1825116 - Add lint exclusions for some troublesome firefox-android files
Attachment #9379574 - Attachment description: WIP: Bug 1825116 - Fixup notification configs in test_apk/ui_test_apk → Bug 1825116 - Fixup notification configs in test_apk/ui_test_apk
Attachment #9379575 - Attachment description: WIP: Bug 1825116 - fix python formatting issues in firefox-android scripts → Bug 1825116 - fix python formatting issues in firefox-android scripts
Attachment #9379576 - Attachment description: WIP: Bug 1825116 - android_taskgraph: ruff fixes → Bug 1825116 - android_taskgraph: ruff fixes
Attachment #9379577 - Attachment description: WIP: Bug 1825116 - ruff fix for fenix test → Bug 1825116 - ruff fix for fenix test
Attachment #9379649 - Attachment description: WIP: Bug 1825116 - fix yamllint errors → Bug 1825116 - fix yamllint errors
Attachment #9379653 - Attachment description: WIP: Bug 1825116 - add rejected-words lint exception → Bug 1825116 - add rejected-words lint exception
Attachment #9379654 - Attachment description: WIP: Bug 1825116 - add license lint exception → Bug 1825116 - add license lint exception
Attachment #9379655 - Attachment description: WIP: Bug 1825116 - remove executable bit from yaml file → Bug 1825116 - remove executable bit from yaml file
Attachment #9379656 - Attachment description: WIP: Bug 1825116 - add exclusions for file-whitespace lint → Bug 1825116 - add exclusions for file-whitespace lint
Attachment #9379657 - Attachment description: WIP: Bug 1825116 - add license lint exclusion for gradle-wrappers → Bug 1825116 - add license lint exclusion for gradle-wrappers
Attachment #9379658 - Attachment description: WIP: Bug 1825116 - misc reformatting with black → Bug 1825116 - misc reformatting with black
Attachment #9379664 - Attachment description: WIP: Bug 1825116 - do not run spotless lint on firefox-android projects → Bug 1825116 - do not run spotless lint on firefox-android projects
Attachment #9379677 - Attachment description: WIP: Bug 1825116 - update generated raptor perf docs → Bug 1825116 - update generated raptor perf docs
Attachment #9379679 - Attachment description: WIP: Bug 1825116 - remove trailing whitespace from A-C changelog → Bug 1825116 - remove trailing whitespace from A-C changelog
Attachment #9379680 - Attachment description: WIP: Bug 1825116 - fix yamllint error in android-startup-test → Bug 1825116 - fix yamllint error in android-startup-test
Attachment #9379684 - Attachment description: WIP: Bug 1825116 - update file-whitespace lint excludes → Bug 1825116 - update file-whitespace lint excludes
Attachment #9379686 - Attachment description: WIP: Bug 1825116 - update generated perf docs → Bug 1825116 - update generated perf docs
Attachment #9379687 - Attachment description: WIP: Bug 1825116 - add license header to testrail_conn script → Bug 1825116 - add license header to testrail_conn script
Attachment #9379688 - Attachment description: WIP: Bug 1825116 - ruff fixes → Bug 1825116 - ruff fixes
Attachment #9379689 - Attachment description: WIP: Bug 1825116 - whitespace fixes → Bug 1825116 - whitespace fixes
Attachment #9379686 - Attachment is obsolete: true
Attachment #9379649 - Attachment is obsolete: true
Attachment #9379680 - Attachment is obsolete: true
Attachment #9379658 - Attachment is obsolete: true
Blocks: 1881094
Attachment #9379657 - Attachment is obsolete: true
Attachment #9379656 - Attachment is obsolete: true
Attachment #9379684 - Attachment is obsolete: true
Attachment #9379654 - Attachment is obsolete: true
Attachment #9379653 - Attachment is obsolete: true
Attachment #9379679 - Attachment is obsolete: true
Attachment #9379677 - Attachment is obsolete: true
Attachment #9379573 - Attachment description: Bug 1825116 - Add lint exclusions for some troublesome firefox-android files → Bug 1825116 - Add lint exclusions for some troublesome firefox-android files. r=Standard8,bhearsum,geckoview-reviewers,releng-reviewers
Keywords: leave-open
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: