Closed Bug 1908335 Opened 1 year ago Closed 1 year ago

Run android-lint tasks on firefox-android try

Categories

(Firefox for Android :: General, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: polly, Assigned: RyanVM)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In firefox-android preset try we aren’t running the android-lint (eg, lint(fenix)). This is different from the ktlint/detekt linters since this is running gradle listRepositories lint lintDebug mozilla-lint-rules:test.
We run this in autoland try and it would makes sense to run this in normal try builds as well so we can catch lint errors earlier.

Per https://phabricator.services.mozilla.com/D203335, it should be a matter of adding the names of the missing jobs to this list: https://searchfox.org/mozilla-central/rev/8c6edfe25c094e032a27722ef30f69555f556bf8/tools/tryselect/try_presets.yml#143
This can be tested by running ./mach try --preset firefox-android.

Type: defect → enhancement
Component: Push Health → General
Product: Tree Management → Fenix
Version: --- → unspecified

I would have expected the when: logic in android-lint.yml to schedule these jobs when needed the same way detekt/ktlint get automatically scheduled when needed. Do we just need to tweak that a bit maybe if there was a case that got missed?

These tasks aren't automatically selected on try (always-target: false) because they require a build, so the when: logic doesn't kick in there.
Adding to the preset should be fine.

Assignee: nobody → ryanvm
Pushed by rvandermeulen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3aa213d50572 Add lint tasks to the Android Try presets. r=jcristau DONTBUILD
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: