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

Convert integration tests to use docker #180

Closed
shoekstra opened this issue Nov 21, 2017 · 3 comments
Closed

Convert integration tests to use docker #180

shoekstra opened this issue Nov 21, 2017 · 3 comments
Labels

Comments

@shoekstra
Copy link
Contributor

Hi @artem-sidorenko @chris-rock ,

Any objection to creating a PR that updates the travis job to use chefdk and docker images instead of DO instances? Would be good to get feedback in PRs w/o needing to fork it somewhere and would get quicker response if using docker.

But perhaps there was a reason to use DO so thought to ask here before creating PR.

Cheers,

@artem-sidorenko
Copy link
Member

@shoekstra thanks for raising this question! The problem is, you can't test everything of this cookbook within containers: you need a real system. This is due to the lots of system changes, which you can't really do within a container, e.g. sysctl flags or similar things. Possible and acceptable way would be to split the things and to test a subset within container always and other options with real VMs on the master runs only. See #142 for some discussion about that in the past

@shoekstra
Copy link
Contributor Author

That sounds reasonable. My main reason for asking was for the ability to run tests as contributor without relying on someone to fork and manually run the tests.

Perhaps you could include the DO tokens in the run as travis encrypted variables sometime in the future?

I'll close this for now, thanks for the prompt response!

@artem-sidorenko
Copy link
Member

artem-sidorenko commented Nov 22, 2017

@shoekstra yes, I know :-(

Perhaps you could include the DO tokens in the run as travis encrypted variables sometime in the future?

This would not help here. The encrypted vars are available only for the base repo, but not for the forks. In the current setup you can add your DO token to your fork configuration in the travis. Via this you will get running CI for your fork. (but PRs are again a bit different here due to travis, as you have two CI runs in the PR)

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

No branches or pull requests

2 participants