Output mozlint warnings on autoland without failing tasks
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox109 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).
| Reporter | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Reporter | ||
Comment 2•3 years ago
|
||
As discussed today, we should also run that on try: to test it, but also to get consistent output across both our ingestion source
Comment 4•3 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 5•3 years ago
|
||
| Assignee | ||
Comment 6•3 years ago
|
||
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.
Updated•3 years ago
|
Comment 8•3 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 9•3 years ago
|
||
Comment 10•3 years ago
|
||
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)
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
| bugherder | ||
Comment 13•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/38886d9e927b
Comment 15•3 years ago
|
||
Comment 16•3 years ago
|
||
| bugherder | ||
Description
•