Closed Bug 1588935 Opened Last month Closed Last month

|mach test-info report| can be very slow

Categories

(Testing :: General, enhancement, P2)

Version 3
enhancement

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

'mach test-info report ...' can take a long time (minutes). It would be nice if it completed faster (and I think I found a good optimization).

The mozbuild reader is created and queried for every test and every manifest, in order to find the associated bug component. At a low level, I noticed that ends up loading .mozbuild files and manifests (at least reftest manifests) over and over again. Calling files_info() just once or twice with a list of files seems to help quite a lot.

Blocks: 1577302

Pull calls to mozbuild_reader().files_info() out of loops, instead passing
all the paths of interest at once.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/67006875213e
Improve efficiency of 'mach test-info report'; r=bc
Status: NEW → RESOLVED
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.