Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up package management on travis #12727

Merged
merged 1 commit into from May 31, 2018
Merged

Speed up package management on travis #12727

merged 1 commit into from May 31, 2018

Conversation

szepeviktor
Copy link
Contributor

/vendor should not be cached!

/vendor should not be cached!
@szepeviktor
Copy link
Contributor Author

szepeviktor commented Apr 15, 2018

Tests need fixing, see for example #12726

Please merge.

@szepeviktor
Copy link
Contributor Author

@tsteur Maybe this one too?

@Findus23 Findus23 added c: Performance For when we could improve the performance / speed of Matomo. c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. labels Apr 17, 2018
@szepeviktor
Copy link
Contributor Author

@Findus23 Any chance merging this?

@Findus23
Copy link
Member

@szepeviktor Currently GDPR has highest priority, once that is finished we'll get back to other issues.

Do you have any numbers how much this speeds up the build? I'd expected travis to already cache the repository so only the install should be skipped with this change.

@szepeviktor
Copy link
Contributor Author

@Findus23 This caches composer packages.

@Findus23
Copy link
Member

@szepeviktor Indeed. This shows that the install currently takes about 30s, so your change will speed it up by that amount (minus the time composer needs for updating), correct?

@szepeviktor
Copy link
Contributor Author

@Findus23 Yes, bit-by-bit

@mattab mattab added the Needs Review PRs that need a code review label Apr 24, 2018
@mattab mattab added this to the 3.6.0 milestone Apr 24, 2018
@@ -138,6 +138,7 @@ after_success:
cache:
directories:
- "travis_phantomjs"
- $HOME/.composer/cache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be better to only cache $HOME/.composer/cache/files, as everything else might change to often, causing cache invalidations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you're right.
I contribute to many open-source projects - like WP-CLI - and we use this directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change frequency equals how many times we change the lock file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess our lock file isn't changed that frequently

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sgiehl sgiehl changed the title Speed up package management Speed up package management on travis May 31, 2018
@sgiehl sgiehl merged commit 3c47e97 into matomo-org:3.x-dev May 31, 2018
@szepeviktor szepeviktor deleted the patch-2 branch May 31, 2018 16:35
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
Speed up package management on travis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo. c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants