Closed Bug 1739406 Opened 4 years ago Closed 4 months ago

[perfdocs] Prevent perfdocs from running multiple times in one call

Categories

(Testing :: Performance, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sparky, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fxp])

Perfdocs currently gets triggered multiple times because of this chunk size that splits the paths into multiple jobs: https://searchfox.org/mozilla-central/source/python/mozlint/mozlint/roller.py#265-275

We should find a way to fix this so we only run it once.

Summary: [erfdocs] Prevent perfdocs from running multiple times in one call → [perfdocs] Prevent perfdocs from running multiple times in one call

:ahal, would you have any ideas for how we could solve this issue?

Flags: needinfo?(ahal)

Not off the top of my head..

Though it kind of sounds like perfdocs shouldn't be a linter in this case. Am I correct that it always runs against the full set of files regardless of which paths get passed in? The fundamental assumption of mozlint is that linters receive a list of paths as arguments and then only runs analysis against those paths.

If this is the case, I think it would be better to re-factor this check into a mach python-test test.

Flags: needinfo?(ahal)

Hmm, ok thanks!

I don't think we'll bother with this then (at least for now) since that sounds like a good amount of work for little benefit. I'll leave the bug open for the future though.

Oh wait, I guess I'm wrong :p

Looks like you can just set type: global:
https://searchfox.org/mozilla-central/source/python/mozlint/mozlint/roller.py#268

I think this was implemented for the android-lint hooks. I remember also pushing back on that at the time, but let it slide. So my mistake..

Flags: needinfo?(gmierz2)

Oh that's cool, thanks for finding that :ahal!

We'll think about which method to take. I'm not a fan of having to move the tool again, but maybe python-test could provide us with some other value.

Flags: needinfo?(gmierz2)

I ran ./mach lint -l perfdocs in the windows moz-shell and it was a bad idea:

Priority: P2 → P3
Duplicate of this bug: 1863586
Blocks: 1838925
Whiteboard: [fxp]
Depends on: 1868773
Blocks: 1872613
Blocks: 1899683
Severity: S3 → S2

This should be resolved now with the move to ./mach perfdocs

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.