Closed Bug 1826838 Opened 2 years ago Closed 6 months ago

firefox-android: port lint tasks to oak/mozilla-central

Categories

(Release Engineering :: General, task)

task

Tracking

(firefox126 fixed)

RESOLVED FIXED
Tracking Status
firefox126 --- fixed

People

(Reporter: gbrown, Assigned: jcristau)

References

Details

Attachments

(8 files, 4 obsolete files)

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

There are 5 lint kinds on firefox-android, each of which are run against AC, focus, and fenix.

  • buildconfig
  • compare-locales
  • detekt
  • ktlint
  • lint

There is a compare-locales mach command on central, but that looks different.

There is an android-lint task (mozlint-android kind) on central, for geckoview, which runs multiple linters:

  • android-api-lint
  • android-format
  • android-javadoc
  • android-checkstyle
  • android-lint
  • android-test

It seems like we shouldn't just port the tasks, but integrate with the linting system, so 'mach lint' knows about the new linters also:
https://firefox-source-docs.mozilla.org/code-quality/lint/create.html

Severity: -- → N/A
See Also: → 1826800
Assignee: gbrown → nobody
Assignee: nobody → jcristau
Status: NEW → ASSIGNED
  • remove pygit2 from the requirements, no longer necessary now we're on
    mercurial
  • configure isn't enough, the gradle dependencies tasks error out if
    they can't find geckoview, so add a build step

fixes regression from bug 1877349

Attachment #9379507 - Attachment description: WIP: Bug 1826838 - add nightly-android target tasks method and cron job → Bug 1826838 - add nightly-android target tasks method and cron job
Attachment #9379505 - Attachment description: WIP: Bug 1826838 - skip desktop tasks on oak → Bug 1826838 - skip desktop tasks on oak
Attachment #9379572 - Attachment description: WIP: Bug 1826838 - Update comments in android-components Dockerfile → Bug 1826838 - Update comments in android-components Dockerfile
Attachment #9379578 - Attachment description: WIP: Bug 1826838 - migrate firefox-android lint/detekt tasks → Bug 1826838 - migrate firefox-android lint/detekt tasks
Attachment #9379579 - Attachment description: WIP: Bug 1826838 - migrate ktlint tasks from firefox-android → Bug 1826838 - migrate ktlint tasks from firefox-android
Attachment #9379580 - Attachment description: WIP: Bug 1826838 - migrate firefox-android's lint/lint tasks → Bug 1826838 - migrate firefox-android's lint/lint tasks
Attachment #9379586 - Attachment description: WIP: Bug 1826838 - firefox-android lints are all migrated, remove old kind.yml → Bug 1826838 - firefox-android lints are all migrated, remove old kind.yml
Attachment #9379626 - Attachment description: WIP: Bug 1826838 - fix android-lint task-defaults → Bug 1826838 - fix android-lint task-defaults
Attachment #9379647 - Attachment description: WIP: Bug 1826838 - pass --break-system-packages to pip install → Bug 1826838 - pass --break-system-packages to pip install
Attachment #9379660 - Attachment description: WIP: Bug 1826838 - fix android buildconfig lint task → Bug 1826838 - fix android buildconfig lint task
Attachment #9379683 - Attachment description: WIP: Bug 1826838 - add m4 to lint docker image → Bug 1826838 - add m4 to lint docker image

Comment on attachment 9379507 [details]
Bug 1826838 - add nightly-android target tasks method and cron job

Revision D201391 was moved to bug 1876318. Setting attachment 9379507 [details] to obsolete.

Attachment #9379507 - Attachment is obsolete: true

No longer necessary now we're on mercurial.

Attachment #9379626 - Attachment is obsolete: true
Attachment #9379647 - Attachment is obsolete: true
Attachment #9379660 - Attachment description: Bug 1826838 - fix android buildconfig lint task → Bug 1826838 - run mach build in android buildconfig lint task
Attachment #9380405 - Attachment description: Bug 1826838 - remove pygit2 from android buildconfig pip requirements → Bug 1826838 - remove pygit2 from android buildconfig pip requirements. r=bhearsum
Attachment #9379505 - Attachment description: Bug 1826838 - skip desktop tasks on oak → WIP: Bug 1826838 - skip desktop tasks on oak
Attachment #9379505 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: