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

Enable ccache for Alpine builds on Travis CI #927

Conversation

PeterDaveHello
Copy link
Member

@PeterDaveHello PeterDaveHello commented Nov 22, 2018

Reimplement #918, only inject ccache related instructions on Travis CI build lifecycle.

10/alpine/Dockerfile Outdated Show resolved Hide resolved
@tianon
Copy link
Contributor

tianon commented Nov 22, 2018 via email

@chorrell
Copy link
Contributor

Unfortunately I think he's right. We should revert the two alpine/ccache commits and revisit in a new PR.

I'm not sure we have enough time to try and get #850 fixed and merged for next week, but that's probably more doable and something we want to happen before the security release. We also need to make the upstream PR for #921.

I'm not sure we want to have a security release include a switch from jessie to stretch, but at this point we have no choice I guess.

I'm not going to be available much today or tomorrow, still sick 🤧

@LaurentGoderre
Copy link
Member

LaurentGoderre commented Nov 22, 2018

@tianon @chorrell @PeterDaveHello do you think this is sufficient for now?

#929

@chorrell
Copy link
Contributor

I think it should be a full revert, not just commenting out the code in the Dockerfiles

@chorrell
Copy link
Contributor

And it will have to be a brand new PR. I was not able to use the revert --> PR option in Github for both commits

@LaurentGoderre
Copy link
Member

@chorrell full revert of just the Dockerfile? I think we can keep the Travis CI part no?

@chorrell
Copy link
Contributor

I guess if it's the easier thing to do and it doesn't affect the images or build times, sure.

PeterDaveHello added a commit to PeterDaveHello/docker-node that referenced this pull request Nov 22, 2018
@PeterDaveHello PeterDaveHello force-pushed the enable-ccache-for-TravisCI-alpine-builds branch from ee2d430 to 97e6127 Compare February 14, 2019 12:58
@PeterDaveHello PeterDaveHello changed the title Improve ccache for Alpine builds Enable ccache for Alpine builds on Travis CI Feb 14, 2019
@PeterDaveHello
Copy link
Member Author

@tianon @chorrell @LaurentGoderre @nodejs/docker please help review this PR, thanks.

@PeterDaveHello PeterDaveHello force-pushed the enable-ccache-for-TravisCI-alpine-builds branch from 97e6127 to 1e7b77e Compare February 14, 2019 13:01
@yosifkit
Copy link
Contributor

I feel that this travis-only injection means that you won't even be testing the same thing that is submitted to official-images.

@PeterDaveHello PeterDaveHello force-pushed the enable-ccache-for-TravisCI-alpine-builds branch from 1e7b77e to 1bf8dbb Compare February 15, 2019 03:24
@PeterDaveHello
Copy link
Member Author

@yosifkit you are right, I hope if those are only for ccache, would be okay?

@tianon
Copy link
Contributor

tianon commented Feb 15, 2019 via email

@PeterDaveHello
Copy link
Member Author

It's helping speed up the build time on Travis CI ;)

@tianon
Copy link
Contributor

tianon commented Feb 15, 2019 via email

@PeterDaveHello
Copy link
Member Author

For a long time and still now, we spend so much time on Travis CI, especially when we have multiple PRs or branches triggered the CI pipeline, which slows down how fast we can deliver the updates, that's a frequently complained issue from users. Travis CI still very every changes, just with additional ccache to help speed it up. It saves time, reduces builds pending, and helps release new versions and verify changes more quickly.

The ccache discussion started in #693, I didn't see any down vote there, #703 is also trying to use ccache another way, so I'm being confused here, is the problem here about ccache or the injection implementation?

@LaurentGoderre
Copy link
Member

@tianon I think we ideally would want to solve it in your builds as well but that would be far more complicated. Reducing the time it takes to build those image is very worthwhile IMHO.

@PeterDaveHello PeterDaveHello requested a review from a team February 16, 2019 07:42
@PeterDaveHello
Copy link
Member Author

@chorrell @SimenB would you like to leave some comments?

@LaurentGoderre
Copy link
Member

This should not be needed anymore with the new unofficial build, in theory.

@chorrell
Copy link
Contributor

chorrell commented May 3, 2019

The ccache or sccache optimization could be used in the build repo though https://github.com/nodejs/unofficial-builds

@chorrell
Copy link
Contributor

chorrell commented May 3, 2019

@LaurentGoderre
Copy link
Member

I think we can close this one since we have the alpine build now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants