addons icon indicating copy to clipboard operation
addons copied to clipboard

[Bug]: `make up` is still slow

Open wagnerand opened this issue 1 year ago • 5 comments

What happened?

make up is still quite slow and takes 4 minutes to rebuild even with a very recent cache.

I had an up to date cache for rev https://github.com/mozilla/addons-server/commit/23b15add5d7263e36fef96e335378dd1e86bf96b and updated to https://github.com/mozilla/addons-server/commit/fd56be466fb0e27c7cd629a1b384bfd98e1cffb3

What did you expect to happen?

Much faster boot.

Is there an existing issue for this?

  • [X] I have searched the existing issues

┆Issue is synchronized with this Jira Task

wagnerand avatar Sep 18 '24 10:09 wagnerand

Can you attach a log running

time make up DOCKER_PROGRESS=plain

KevinMind avatar Sep 18 '24 11:09 KevinMind

Can you also try running

time make up DOCKER_VERSION=latest

This will run using the latest docker image published to docker hub instead of a locally built one. If you are mostly interested in running the most recent version without really making patches, this could be an alternative for you?

KevinMind avatar Sep 18 '24 11:09 KevinMind

Another thing you should try doing is cleaning up docker resources on your machine. Make sure you don't have dangling images/volumes and ensure docker has enough storage/memory access to run efficiently.

KevinMind avatar Sep 18 '24 11:09 KevinMind

log.txt

wagnerand avatar Sep 18 '24 11:09 wagnerand

@KevinMind to pair with @wagnerand to see if there are some issues they can look solve by looking at it together live.

diox avatar Sep 24 '24 14:09 diox

I think https://github.com/mozilla/addons-server/commit/91b0721ce6ba2a9a5de384d599e978dfbdb74721 put the final piece in place.

From my local testing, and now covered in CI, it seems like make up is running pretty stably under 1 minute, often under 20 seconds on my machine even when making changes to source files.

This should apply to branch changes naturally.

@wagnerand lmk on latest master what you think. Hopefully it is noticeably faster.

KevinMind avatar Dec 18 '24 22:12 KevinMind