odo icon indicating copy to clipboard operation
odo copied to clipboard

Build images on CI for e2e tests

Open anandrkskd opened this issue 2 years ago • 1 comments

/area testing

What needs to be added?

As a quality engineer, I want to add functionality for e2e tests to actually build images for odo deploy and odo builld-image on CI (prow / IBMCloud).

Why is this needed?

With this, we will be able to completely cover the e2e scenarios.

Related: https://github.com/redhat-developer/odo/pull/5778#discussion_r887828990

anandrkskd avatar Jun 09 '22 12:06 anandrkskd

For IBM Cloud pipeline, I created a Dockerfile that contains podman and golang for executing test, to build Dockerfile present in test/example/nodejs

  • when running the image with normal user (tester) fails with
Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:12 for /var/spool/mail): Check /etc/subuid and /etc/subgid if configured locally and run podman-system-migrate: lchown /var/spool/mail: invalid argument
  • when running the same image with root user fails due to SELinux
error running container: error from /usr/bin/crun creating container for [/bin/sh -c npm install]: mount `proc` to `/proc`: Operation not permitted

For prow/OpenShift-ci

Created a test on prow building a simple alpine image with a podman image, link to test It fails with

potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured locally: lchown /etc/shadow: invalid argument

anandrkskd avatar Jun 29 '22 12:06 anandrkskd