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

Build: use Exercism's base docker image of nim for test-runner #116

Merged

Conversation

ynfle
Copy link
Contributor

@ynfle ynfle commented Dec 14, 2021

This uses exercism/nim-docker-base:18a2d8619faf474ee7afc7ae499f111271eb4e12 to copy over the alpine version of nim for the test-runner because it is already built and doesn't have to be rebuilt on every CI test.

The build times are reduced from ~7.5-8.5 minutes to ~2.5-3.5 minutes (still twice as slow as on ubuntu itself)

The reason for the time reduction is that it takes ~5.5-6.5 minutes to compile the nim compiler which is not related to the test runner itself and can be (and is offloaded) to https://github.com/exercims/nim-docker-base. Which only has to compile the nim compiler once for every change to the Dockerfile as it changes rarely and when it does it's mostly due to dependency upgrades.

This uses
`exercism/nim-docker-base:18a2d8619faf474ee7afc7ae499f111271eb4e12`
to copy over the alpine version of nim for the test-runner because
it is already built and doesn't have to be rebuilt on every CI test.
@ynfle ynfle requested a review from a team as a code owner December 14, 2021 22:58
@ynfle
Copy link
Contributor Author

ynfle commented Dec 14, 2021

@iHiD @ErikSchierboom is on vacation now (if I understand correctly) so am tagging you as code owner instead

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

LGTM

@ynfle ynfle merged commit 815bf45 into main Dec 15, 2021
@ynfle ynfle deleted the ci-reduce-docker-build-time-with-exercism-base-nim-image branch December 15, 2021 10:36
@ynfle
Copy link
Contributor Author

ynfle commented Dec 15, 2021

@ErikSchierboom I thought you were on vacation! Thanks for the approval

@ErikSchierboom
Copy link
Member

@ynfle I'm doing reviews once a week :) But yes: I am officially on vacation.

@ynfle
Copy link
Contributor Author

ynfle commented Dec 15, 2021

Nice!

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.

2 participants