Closed Bug 1793948 Opened 3 years ago Closed 3 years ago

Output mozlint warnings on autoland without failing tasks

Categories

(Developer Infrastructure :: Lint and Formatting, task)

x86_64
Linux

Tracking

(firefox109 fixed)

RESOLVED FIXED
Tracking Status
firefox109 --- fixed

People

(Reporter: bastien, Assigned: rigal)

Details

Attachments

(3 files)

In order for code-review bot to ingest regularly known issues on the whole codebase, the mozlint tasks on autoland should output all warnings in their JSON artifacts, without failing the task.

A special mode should allow listing all warnings, but maintaining an exit code to 0 (when no errors are found).

Assignee: nobody → rigal

As discussed today, we should also run that on try: to test it, but also to get consistent output across both our ingestion source

Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e97c337e8eec Softly report mozlint warnings on autoland. r=bastien,linter-reviewers,sylvestre,ahal
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

I pushed a new patch, as I wrongly named mozlint's warning argument (which also defaults to None when unset).

I tested with the environment variable and it works correctly now. I tested with that command : GECKO_HEAD_REPOSITORY=https://hg.mozilla.org/mozilla-centra ./mach lint -l flake8 python/mozlint/test. If the --warning or --warning=soft argument is passed, the parameter is not overridden.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b664a6468754 Correctly set warnings argument for mozlint parser in try/autoland. r=bastien,marco DONTBUILD
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0bb848a2970c Set warnings argument for mozlint parser in try, autoland and mozilla-central repositories. r=marco DONTBUILD
Backout by sstanca@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/38886d9e927b Backed out changeset 0bb848a2970c for many unexpected warnings prevent spotting of errors. CLOSED TREE
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/41613f6c5ce6 Set warnings argument for mozlint parser in try, autoland and mozilla-central repositories. r=marco
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: