Giter VIP home page Giter VIP logo

microshift-backend-e2e's Introduction

microshift-backend-e2e

A wrapper on top of MicroShift upstream e2e tests to be run on hosts with a running MicroShift cluster.

Overview

The container is based on deliverest, which handles the remote execution.

Usage

PWD should not be a major directory like ${HOME} or similar, to avoid the following error:

Error: SELinux relabeling of /home/cloud-user is not allowed

So create a custom subdir somewhere, then run everything from it. Furthermore, PWD should contain id_rsa (and eventually also pull-secret; right now this is assumed to be on the target host already, just like a custom bundle).

Windows amd64

For debug purposes (e.g. when run outside of the sanitized environment ensured by the pipeline), use --pull=always policy for podman run. Otherwise you might end up running an old local image instead of pulling a fresh one.

TARGET_FOLDER=ms-backend-e2e
USER=crcqe
HOST=windows-crcqe.tpb.lab.eng.brq.redhat.com
BUNDLE_PATH="C:/Users/crcqe/Downloads/crc_microshift_hyperv_4.13.9_amd64.crcbundle"

podman run --pull=always --network=host --rm -it --name microshift-backend-e2e \
    -e TARGET_HOST=${HOST} \
    -e TARGET_HOST_USERNAME=${USER} \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=${TARGET_FOLDER} \
    -e TARGET_RESULTS=junit/junit*.xml \
    -e OUTPUT_FOLDER=/data \
    -v $PWD:/data:z \
    -v $PWD/pullsecret:/opt/ms-backend-e2e/pullsecret:z \
    quay.io/rhqp/microshift-backend-e2e:v4.13.9-windows-amd64 \
        ms-backend-e2e/run.ps1 \
            -targetFolder ${TARGET_FOLDER} \
            -junitResultsPath ${TARGET_FOLDER}/junit \
            -pullSecretFile ${TARGET_FOLDER}/pullsecret \
            -bundlePath ${BUNDLE_PATH}

darwin amd64

TARGET_FOLDER=ms-backend-e2e
USER=crcqe
HOST=macmini-crcqe-2.tpb.lab.eng.brq.redhat.com
BUNDLE_PATH="/Users/${USER}/Downloads/crc_microshift_vfkit_4.13.9_amd64.crcbundle"

podman run --pull=always --network=host --rm -it --name microshift-backend-e2e-darwin \
    -e TARGET_HOST=${HOST} \
    -e TARGET_HOST_USERNAME=${USER} \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=${TARGET_FOLDER} \
    -e TARGET_RESULTS=junit/junit*.xml \
    -e OUTPUT_FOLDER=/data \
    -v $PWD:/data:z \
    -v $PWD/pullsecret:/opt/ms-backend-e2e/pullsecret:z \
    quay.io/rhqp/microshift-backend-e2e:v4.13.9-darwin-amd64 \
        ms-backend-e2e/run.sh \
            -t ${TARGET_FOLDER} \
            -p ${TARGET_FOLDER}/pullsecret \
            -r ${TARGET_FOLDER}/junit \
            -b ${BUNDLE_PATH}

linux amd64

TARGET_FOLDER=ms-backend-e2e
USER=cloud-user
HOST=rhel-crcqe.tpb.lab.eng.brq.redhat.com
BUNDLE_PATH="/home/${USER}/Downloads/crc_microshift_libvirt_4.13.9_amd64.crcbundle"

podman run --pull=always --network=host --rm -it --name microshift-backend-e2e \
    -e TARGET_HOST=${HOST} \
    -e TARGET_HOST_USERNAME=${USER} \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=${TARGET_FOLDER} \
    -e TARGET_RESULTS=junit/junit*.xml \
    -e OUTPUT_FOLDER=/data \
    -v $PWD:/data:z \
    -v $PWD/pullsecret:/opt/ms-backend-e2e/pullsecret:z \
    quay.io/rhqp/microshift-backend-e2e:v4.13.9-linux-amd64 \
        ms-backend-e2e/run.sh \
            -t ${TARGET_FOLDER} \
            -p ${TARGET_FOLDER}/pullsecret \
            -r ${TARGET_FOLDER}/junit \
            -b ${BUNDLE_PATH}

Updating OpenShift version

  1. Create a new branch, e.g. v4.13.9 and add all changes needed alongside this version change.
  2. Merge the branch into main.
  3. Create a tag, e.g. v4.13.9 and push it to main with git push origin v4.13.9.
  4. GH-Actions will trigger a build based on the presence of the new tag and push the new image to quay.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.