[perfdocs] Find tests to add to documentation using manifests instead of path searching
Categories
(Testing :: Performance, task, P2)
Tracking
(firefox84 fixed)
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: sparky, Assigned: myeongjun.ko)
References
Details
Attachments
(1 file)
Bug 1662706 will add manifests to organize/gather performance tests. We'll be able to make use of this is perfdocs to gather the tests to document. This change will need to be made since some tests (like xpchsell) are not in perftest folders or files.
Assignee | ||
Comment 2•4 years ago
|
||
Hello sparky :)
I have question before working this issue.
This structure find files using path searching based on perfdocs directory [0]
Is this intend to make manifest and searching file?
So then, Should I make ini(i.e, manifest file) file and write path[1] to find file(e.g, config.yml, index.rst)?
[1] e.g
python/mozperftest/perfdocs
testing/raptor/raptor/perfdocs
Reporter | ||
Comment 3•4 years ago
|
||
Hi Jun :)
So this issue would involve changing this code to use the following: https://searchfox.org/mozilla-central/source/tools/lint/perfdocs/framework_gatherers.py#221-223
from moztest.resolve import TestResolver
tests = resolver.resolve_tests(paths=None, flavor="perftest")
Rather than searching through the entire source tree for the tests, we can make use of the moztest resolver to find them. We shouldn't be modifying how the perfdocs directories are found. This change is only for the mozperftest tests, the raptor tests discovery doesn't need to change.
Does that answer your question/concerns?
Assignee | ||
Comment 4•4 years ago
|
||
Oh, I misunderstood about this. I thought that I had to make manifest file to find test file.
But, each pefrtest
file already have been registered at perftest.ini
and I just use function you guide to find test file.
Am I understand right? :)
Reporter | ||
Comment 5•4 years ago
|
||
You got it! :)
Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Reporter | ||
Comment 7•4 years ago
|
||
:sylvestre, is there anything in our linters/reviewbot that make or use of an m-c build already? For perfdocs+mozperftest, we need to find existing tests using moztest but we can't find all of them without a build.
Comment 9•4 years ago
|
||
bugherder |
Reporter | ||
Updated•4 years ago
|
Description
•