Add an autotest for thumbnail test in VDA unittest |
|||||||||||
Issue descriptionVDA unittest is broken by graphics changes from time to time. wmatrix is often red. Actually most test cases in VDA unittests do not need rendering. We should separate the test cases to the ones that need rendering (like thumbnail) and the ones do not. Two options to separate the autotest: (1) video_VideoDecodeAccelerator and video_VideoDecodeAcceleratorNoRendering (2) video_VideoDecodeAcceleratorRendering and video_VideoDecodeAccelerator
,
Apr 10 2017
,
May 22 2017
Owen, Kuang-che and I discussed. The conclusion is to add an autotest for thumbnail test only because it requires rendering. We can disable rendering for the original video_VideoDecodeAccelerator by passing --rendering_fps=0.
,
May 22 2017
Kuang-che. Can you help with this?
,
May 23 2017
,
May 29 2017
,
Jun 1 2017
Alex is kind to help. Thank you.
,
Jun 1 2017
Steps: (1) Add video_VDAThumbnail autotest. Make a copy of video_VideoDecodeAccelerator and only run thumbnail test case. (2) In video_VideoDecodeAccelerator, exclude thumbnail test case and add --rendering_fps=0 for the rest test cases. (3) Fix video_VDAPerf. Add a new VideoDecodeAccelerator::Client class that does cadence and doesn't actually render. This will require a refactor of video_decode_accelerator_unittest.cc. Another possibility is to modify GLRenderingVDAClient and add yet another parameter. This is not preferred because GLRenderingVDAClient is way too huge. We can file a separate bug for (3) if we want.
,
Jun 1 2017
After (1) and (2) are done, video_VideoDecodeAccelerator should be all green in wmatrix.
,
Jun 1 2017
I filed http://crbug.com/728504 for (3).
,
Jul 5 2017
As the immediate issues with the test are fixed and the thumbnail test is working again, I'll close this. We should have another issue created for further improvements for vdatest.
,
Jul 5 2017
This issue is still valid. This issue is not really about fixing thumbnail test. It's to separate the thumbnail test to a standalone autotest. Most test cases in VDA unittest do not need rendering except thumbnail test. VDA unittest is broken by graphics or media CLs around every two weeks. When that happens, we lost the test results of all test cases. Separating them to two autotests can prevent it. I think this is very important. Todos: (1) Add video_VDAThumbnail autotest. Make a copy of video_VideoDecodeAccelerator and only run thumbnail test case. (2) In video_VideoDecodeAccelerator, exclude thumbnail test case and add --rendering_fps=0 for the rest test cases.
,
Jul 5 2017
Also in favor of keeping it opened as it reminds me I need to address this sometime this month. :)
,
Aug 2 2017
Hi. Any update for this?
,
Aug 2 2017
I have been thinking a bit about this. I am not sure whether we need to split the VDA test into two, especially since these two test programs would end up being closely related and would share a lot of code. How about instead refactoring VDA test such that display is not enabled for tests that don't need it, and thus only enabled for thumbnail? That way we would only have one binary. If we want to test thumbnail separately out of concern that it is more likely to fail, we can then call that binary twice with two different sets of unit tests to perform and end up with two different reports. This would make this change easier to implement, and probably easier to maintain in the long-term too. wuchengli@, is that sounds good to you I will rather go in that direction.
,
Aug 8 2017
We decided to remove display functionality from vda unittest. For thumbnail test, we'll replace it with a javascript test or make it not depend on ozone. |
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by wuchengli@chromium.org
, Apr 10 2017