-
Notifications
You must be signed in to change notification settings - Fork 26
Request to add pgTAP variant #65
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
Comments
I've made a branch adding pgTAP to postgres 13.9. Already tried it on CircleCI and it worked fine. The extension adds about 40MB to the image size. If a PR is welcomed and I can do the same for the other postgres versions. |
@pinealan PRs are always welcome! If this is a small change to the image, and does not cause any changes to the behaviour of the image unless specifically invoked, then it might be best to include this in the main image rather than a variant. Postgis variant for example is close to 200MB larger, which is part of the reason it is a separate variant. Please reference this issue when opening the PR and one of the team will review it in due course. Thank you :) |
This would be a very welcome addition, we are currently using our custom image due to the need for pgTAP. |
Hi @villelahdenvuo and @pinealan - since you two are requesting this change and also using this image the most, i wanted get your thoughts on how we should be supporting extensions. While extensions like With your workflows, do you think it is better to have a separate variant image, like I've already reviewed #81 and went with that because it implements cpanm and downloads the extension from the source repo. Let me know if there are any objections. |
@JalexChen thanks for checking in. My workflow is agnostic to whether I have to use a variant image or not, and in fact that was how my branch was originally implemented. That said I can imagine use cases where someone is using the |
I agree that the downside of variants is less cacheability and the difficulty of combining variants. Therefore for smaller extensions I suggest including them in the main image. |
pgTap has been merged into the main postgres image. Thank you both again for the contributions and the input. |
pgTAP is a unit testing toolkit for postgres and CI is a natural place where one would need the test databse to have it available.
Demand for this can be evident from a number of derivative Dockerfiles in the wild that adds pgTap on top of the CircleCI image. These are all unfortunately no longer maintained and based on the legacy images.
It would be great if CCI can support this as an official image.
The text was updated successfully, but these errors were encountered: