Closed Bug 1892731 Opened 7 months ago Closed 15 days ago

Consider connecting AC/Fenix/Focus Lint Checks to Reviewbot in Phabricator

Categories

(Fenix :: Tooling, enhancement)

All
Android
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1907129

People

(Reporter: olivia, Assigned: adhingra)

References

(Blocks 1 open bug)

Details

Lint failures in AC/Fenix/Focus currently don't show up in Phabricator. It would be nice to have this check via reviewbot, since it is another safety layer to prevent developers from inadvertently pushing code that will get backed out. Failures do show up in manual trys, but it is easy to overlook or have a "one line update" that introduces a lint issue.

(For example, like in this GeckoView Patch, reviewbot catches lint failures. However, this patch did not, except through manually noticing in try.)

(Tagging to monorepo-enhancements for triage, please move if out of scope.)

See Also: → 1891723

I think there's potentially a couple of issues here. Taking this phabricator revision as a random example, with its associated try run:

  • I'm not sure why the review bot isn't picking these up as "unknown failures" as the task runs are failing. They appear to be flagged as code-review (e.g. detekt). Marco, do you have any ideas here?
  • If you look at the preview of the file-whitespace on treeherder, you'll notice the preview says TEST-UNEXPECTED-ERROR | ....
    • That means the output processor has found the error lines.
    • No preview appears on the detekt & ktlint failures (example

I believe the first part should get code review bot reporting that there's issues, I think the second part would be what's required to get it supporting the specific details of those issues - it would certainly make it easier when looking at treeherder.

For the second part, the error summary lines would need to match this regexp

Flags: needinfo?(mcastelluccio)

The bot doesn't know how to parse the detekt task artifacts.

There are two ways to go about it:

Flags: needinfo?(mcastelluccio)
Assignee: nobody → adhingra
Status: NEW → RESOLVED
Closed: 15 days ago
Duplicate of bug: 1907129
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.