AndroidMetadata stage is slow |
|||
Issue descriptionThis stage is on the critical path (runs before BuildPackages) and is kind of slow (at least based on what it sounds like it is doing), taking a median of 2 minutes. http://shortn/_Hq61VmkjAq (also, this median time increased significantly around July 13) Can this stage be made faster by doing a cheaper computation. Or can its results be extracted as a side effect of some other stage like BuildPackages that will run later, or can it be parallelized with a non-critical-path stage?
,
Aug 4 2017
+vapier whom may have optimization suggestions The reason this is before BuildPackages is so that we still know what Android version is there even if BuildPackages fails on some unrelated packages. I do agree it is annoying that Portage level failures trigger breakage in AndroidMetadata instead of BuildPackages, my thought on resolving this previously was to allow the AndroidMetadata to pass anyway if it cannot get a version and allow BuildPackages to really fail later, but it is not clear this is optimal either. Maybe we should add better logging explaining why it might have failed here?
,
Aug 4 2017
Thanks Bernie, makes sense. Provided that running AndroidMetadata before BuildPackages does not produce confusing failures, I think it's fine to leave this stage as-is because I guess (AndroidMetadata duration) + (BuildPackages duration) does not change much by moving around AndroidMetadata stage as long as file cache is hot.
,
Aug 4 2017
two things: - dep calc being slow seems like issue 659864 - the android stages prob should be run in parallel with SyncChromeStage
,
Aug 9 2017
,
Mar 14 2018
This bug is very old, is Untriaged, and has no owner. If it is still relevant, reopen as Untriaged or open a new bug |
|||
►
Sign in to add a comment |
|||
Comment 1 by nya@chromium.org
, Aug 4 2017