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

Move to the new Travis infrastructure (containers, sudo false) #8535

Closed
mnapoli opened this issue Aug 10, 2015 · 7 comments
Closed

Move to the new Travis infrastructure (containers, sudo false) #8535

mnapoli opened this issue Aug 10, 2015 · 7 comments
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@mnapoli
Copy link
Contributor

mnapoli commented Aug 10, 2015

Piwik is using Travis' legacy infrastructure (VM based). Moving to the new infrastructure (Docker based) would have the following advantages:

  • builds start in seconds
  • faster builds
  • more consistent build times
  • 2 cores and 4GB of memory instead of 1.5 cores and 3GB
  • better network capacity, availability and throughput
  • caching of directories (e.g. vendor/, …)

See http://docs.travis-ci.com/user/migrating-from-legacy/

Challenges: sudo is not available. That means for example installing some binaries locally (and e.g. add them in the PATH), or use the apt-get config key in travis.yml. Also very important: "Databases don’t run off a memory disk".

Maybe worth a try to see if build time improve.

@mnapoli mnapoli added the c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. label Aug 10, 2015
@diosmosis
Copy link
Member

Tried doing this in a branch, got to the point where tests ran, but I had to use the PHP web server instead of nginx. Seems to cause some tests to fail. This is the branch: https://github.com/piwik/piwik/tree/travis_sudo_false

@mnapoli
Copy link
Contributor Author

mnapoli commented Aug 10, 2015

👍 Why couldn't you use Nginx? seems like it's possible to install stuff with apt-get (in travis.yml), maybe it's to write the config?

@diosmosis
Copy link
Member

I was able to use a custom config to avoid needing write permissions, but you need sudo to start it :(

EDIT: start it w/ a custom config file

@mattab
Copy link
Member

mattab commented Sep 19, 2015

@diosmosis do you think it's worth spending few more hours to try to run on the new Travis infra? or were we blocked completely and it's better to postpone it for a while?

@mattab mattab added this to the Short term milestone Sep 20, 2015
@pierreozoux
Copy link

Does the new docker image would help on that?

@mattab
Copy link
Member

mattab commented Nov 2, 2015

We tried to migrate and it didn't work for us because Mysql runs off the disk and not off RAM, making our builds slower and timing out. Cancelling the project for now until travis will make Mysql run off the RAM in the docker infrastructure.

#9146

travis-ci/travis-ci#3049

@mattab mattab modified the milestones: Mid term, Short term Nov 2, 2015
@mattab mattab modified the milestones: 2.16.x (LTS), Long term Apr 25, 2016
@mattab mattab changed the title Move to the new Travis infrastructure Move to the new Travis infrastructure (containers, sudo false) Apr 27, 2016
@mattab mattab modified the milestones: 3.0.0, 2.16.x (LTS) Aug 25, 2016
@sgiehl
Copy link
Member

sgiehl commented Aug 24, 2023

Closing this one, as we meanwhile switched to GitHub actions.

@sgiehl sgiehl closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2023
@sgiehl sgiehl added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Aug 24, 2023
@innocraft-automation innocraft-automation removed this from the Backlog (Help wanted) milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

6 participants