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

Automated testing #96

Open
lance opened this issue Jun 8, 2021 · 0 comments
Open

Automated testing #96

lance opened this issue Jun 8, 2021 · 0 comments
Labels
ci Issues related to continuous integration, build, and image publishing

Comments

@lance
Copy link
Member

lance commented Jun 8, 2021

We need better automated testing for our builders. When I am making changes to them, or creating a new one, I always do some manual testing that involves something like this.

  • Create a new builder image with my changes
  • Rename it to something non-colliding, e.g. docker tag quay.io/boson/faas-nodejs-builder:tip func-builder
  • Create a new function project to test the builder. func create test-func
  • Run pack build testproj --builder test-func -v --trust-builder --pull-policy never
  • Run docker run --rm -it --entrypoint /bin/sh test-func
  • Examine /workspace on the image and be sure it's what I expect. Maybe even npm run or something.
  • Change the builder field in func.yaml to func-builder (or whatever I named it)
  • Run func build and func run to ensure that it works as expected with func

We need to automate a process similar to this and running it in CI.

@lance lance added the ci Issues related to continuous integration, build, and image publishing label Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Issues related to continuous integration, build, and image publishing
Projects
None yet
Development

No branches or pull requests

1 participant