[perfdocs] Reviewbot comments are providing incorrect usage information
Categories
(Testing :: Performance, defect, P2)
Tracking
(firefox-esr91 unaffected, firefox97 unaffected, firefox98 wontfix, firefox99 wontfix, firefox100 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr91 | --- | unaffected |
| firefox97 | --- | unaffected |
| firefox98 | --- | wontfix |
| firefox99 | --- | wontfix |
| firefox100 | --- | fixed |
People
(Reporter: sparky, Assigned: mhentges)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files)
The recommended command for the perfdocs linter is currently broken/outdated in multiple areas because, with little to no warning, the linter usage was changed (see bug in regressed by): https://searchfox.org/mozilla-central/search?q=lint&path=perfdocs&case=false®exp=false
It's unclear why we can't have the default set to */. for perfdocs either, since it always runs with this setting. I see here that the paths should default to cwd as well so it's really unclear what's going on here or if the mozlint documentation is now outdated as well: https://searchfox.org/mozilla-central/source/python/mozlint/mozlint/cli.py#23
| Assignee | ||
Comment 1•3 years ago
|
||
The recommended command for the perfdocs linter is currently broken/outdated in multiple areas because, with little to no warning
Hey, sorry about the regression here, I was wondering who all it would impact and I didn't consider the performance crew π
I see here that the paths should default to cwd as well so it's really unclear what's going on here or if the mozlint documentation is now outdated
The docs are outdated, by default it now uses --outgoing --workdir.
It's unclear why we can't have the default set to */. for perfdocs either, since it always runs with this setting
Hmm, this is a bit ambiguous, but I'll answer both interpretations :)
- Why can't
./mach linthave a perfdocs-specific default of using*/.?
./mach lint doesn't know who is actively calling it (except by reaching around for environment variables, which is brittle). It'd be better for perfdocs to explicitly declare that it wants the full directory to be linted.
- Why can't we change perfdocs to, by default, call
./mach lintwith*/.?
I think that this is the correct solution π
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
Updates parser documentation to clarify that, if no paths are
provided, then only those discovered by --outgoing and --workdir
are linted.
| Assignee | ||
Comment 3•3 years ago
|
||
Ideally, the perfdocs linter suggestion to --fix issues would take
into account the paths that were provided, rather than printing the
sure-fire "lint and fix all" solution.
Actually, on further consideration, theoretically such a recommendation
should appear at the ./mach lint level, and not be linter-specific. Oh
well, that's a future improvement :)
This patch updates the perfdocs documentation and suggestions to
successfully operate in the same manner that they did before
bug 1753701. One line was added to the run_perfdocs() docstring to
hint towards the "only lint changed files" approach.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Set release status flags based on info from the regressing bug 1753701
Updated•3 years ago
|
Comment 6•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f71993d94b03
https://hg.mozilla.org/mozilla-central/rev/f73b04feffdd
Updated•3 years ago
|
Description
•