Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-6284

[QE] [Infra] Create new Pipeline for running KAI tests on Devspaces

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • Migration QE Infra
    • Quality / Stability / Reliability
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      The KAI extension should work in RH Devspaces (VSCode in web environment), this requires additional steps to set everything up.

      This new pipeline should:

      1. Allow to install devspaces on a cluster
      2. Configure devspaces to pass the following variables to every new workspace (https://docs.redhat.com/en/documentation/red_hat_openshift_dev_spaces/3.24/html/administration_guide/configuring-devspaces#configuring-server-components)

        1. OPENAI_API_KEY=The same we use for the linux pipeline

        2. KAI_QE_S3_BUCKET_NAME=kaiqe
        3. AWS env variables
      1. The extension won't work in an environment with a self-signed certificate by default, so the certifcate needs to be installed locally in the runner.
      2. Clone the editor-extension repo, install the dependencies under the "test" folder and configure the following env variables:

        1. WEB_ENV="1"

        2. WEB_BASE_URL="https://devspaces.apps.mig08.rhos-psi.cnv-qe.rhood.us" (using the corresponding cluster)

        3. WEB_LOGIN="kubeadmin"

        4. WEB_PASSWORD="kubeadminPasswordForTheCluster"

        5. VSIX_DOWNLOAD_URL="" This should be the latest vsix file from the dev builds https://github.com/konveyor/editor-extensions/releases/tag/development-builds This can be included right away in the .env file by running "node tests/scripts/scripts/set-latest-vsix-env.mjs"
      3. Run the `e2e/tests/base/fix-one-issue.test.ts` command
      4. Upload same artifacts as the linux pipeline
      5. Report failures to the team-mig-ai-qe Slack channel

          There are no Sub-Tasks for this issue.

              rhn-support-mmansoor M Sajid Mansoori
              rh-ee-abrugaro Alejandro Brugarolas
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: