From ea93498ef2e61586c4a02e7c0e28460417cd1b93 Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 3 Jul 2025 09:24:21 +0200 Subject: [PATCH] Remove IQE scripts and configs Since we're no longer testing via IQE, we can say bye bye to the `pr_check.sh` script and `iqe-trigger-integration.yml`. --- deploy/iqe-trigger-integration.yml | 183 ----------------------------- pr_check.sh | 57 --------- 2 files changed, 240 deletions(-) delete mode 100644 deploy/iqe-trigger-integration.yml delete mode 100755 pr_check.sh diff --git a/deploy/iqe-trigger-integration.yml b/deploy/iqe-trigger-integration.yml deleted file mode 100644 index 8d618481..00000000 --- a/deploy/iqe-trigger-integration.yml +++ /dev/null @@ -1,183 +0,0 @@ ---- -apiVersion: template.openshift.io/v1 -kind: Template -metadata: - name: image-builder-frontend-tests -objects: -- apiVersion: batch/v1 - kind: Job - metadata: - name: image-builder-frontend-${TEST_TYPE}-tests-${IMAGE_TAG}-${UID} - annotations: - "ignore-check.kube-linter.io/no-liveness-probe": "probes not required on Job pods" - "ignore-check.kube-linter.io/no-readiness-probe": "probes not required on Job pods" - spec: - backoffLimit: 0 - template: - spec: - imagePullSecrets: - - name: quay-cloudservices-pull - restartPolicy: Never - volumes: - - name: sel-shm - emptyDir: - medium: Memory - - name: sel-downloads - emptyDir: - medium: Memory - sizeLimit: 64Mi - containers: - - name: image-builder-frontend-iqe-${TEST_TYPE}-tests-${IMAGE_TAG}-${UID} - image: ${IQE_IMAGE} - imagePullPolicy: Always - args: - - run - env: - - name: ENV_FOR_DYNACONF - value: ${ENV_FOR_DYNACONF} - - name: DYNACONF_MAIN__use_beta - value: ${USE_BETA} - - name: IQE_IBUTSU_SOURCE - value: image-builder-${IMAGE_TAG}-tests-${UID}-${ENV_FOR_DYNACONF} - - name: IQE_BROWSERLOG - value: ${IQE_BROWSERLOG} - - name: IQE_NETLOG - value: ${IQE_NETLOG} - - name: IQE_PLUGINS - value: ${IQE_PLUGINS} - - name: IQE_MARKER_EXPRESSION - value: ${IQE_MARKER_EXPRESSION} - - name: IQE_FILTER_EXPRESSION - value: ${IQE_FILTER_EXPRESSION} - - name: IQE_LOG_LEVEL - value: ${IQE_LOG_LEVEL} - - name: IQE_REQUIREMENTS - value: ${IQE_REQUIREMENTS} - - name: IQE_PARALLEL_ENABLED - value: ${IQE_PARALLEL_ENABLED} - - name: IQE_REQUIREMENTS_PRIORITY - value: ${IQE_REQUIREMENTS_PRIORITY} - - name: IQE_TEST_IMPORTANCE - value: ${IQE_TEST_IMPORTANCE} - - name: DYNACONF_IQE_VAULT_LOADER_ENABLED - value: "true" - - name: DYNACONF_IQE_VAULT_VERIFY - value: "true" - - name: DYNACONF_IQE_VAULT_URL - valueFrom: - secretKeyRef: - key: url - name: iqe-vault - optional: true - - name: DYNACONF_IQE_VAULT_MOUNT_POINT - valueFrom: - secretKeyRef: - key: mountPoint - name: iqe-vault - optional: true - - name: DYNACONF_IQE_VAULT_ROLE_ID - valueFrom: - secretKeyRef: - key: roleId - name: iqe-vault - optional: true - - name: DYNACONF_IQE_VAULT_SECRET_ID - valueFrom: - secretKeyRef: - key: secretId - name: iqe-vault - optional: true - resources: - limits: - cpu: ${IQE_CPU_LIMIT} - memory: ${IQE_MEMORY_LIMIT} - requests: - cpu: ${IQE_CPU_REQUEST} - memory: ${IQE_MEMORY_REQUEST} - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - volumeMounts: - - name: sel-downloads - mountPath: /sel-downloads - - name: image-builder-sel-${TEST_TYPE}-tests-${IMAGE_TAG}-${UID} - image: ${IQE_SEL_IMAGE} - env: - - name: _JAVA_OPTIONS - value: ${SELENIUM_JAVA_OPTS} - - name: VNC_GEOMETRY - value: ${VNC_GEOMETRY} - - name: SE_NODE_SESSION_TIMEOUT - value: ${SE_NODE_SESSION_TIMEOUT} - resources: - limits: - cpu: ${SELENIUM_CPU_LIMIT} - memory: ${SELENIUM_MEMORY_LIMIT} - requests: - cpu: ${SELENIUM_CPU_REQUEST} - memory: ${SELENIUM_MEMORY_REQUEST} - volumeMounts: - - name: sel-shm - mountPath: /dev/shm - - name: sel-downloads - mountPath: /home/selenium/Downloads -parameters: -- name: IMAGE_TAG - value: '' - required: true -- name: UID - description: "Unique job name suffix" - generate: expression - from: "[a-z0-9]{6}" -- name: IQE_IMAGE - description: "container image path for the iqe plugin" - value: quay.io/cloudservices/iqe-tests:insights-experiences -- name: ENV_FOR_DYNACONF - value: stage_proxy -- name: USE_BETA - value: "true" -- name: IQE_PLUGINS - value: insights_experiences -- name: IQE_MARKER_EXPRESSION - value: 'image_builder' -- name: IQE_FILTER_EXPRESSION - value: '' -- name: IQE_LOG_LEVEL - value: info -- name: IQE_REQUIREMENTS - value: '' -- name: IQE_REQUIREMENTS_PRIORITY - value: '' -- name: IQE_TEST_IMPORTANCE - value: '' -- name: IQE_SEL_IMAGE - value: 'quay.io/redhatqe/selenium-standalone:ff_91.9.1esr_chrome_103.0.5060.114' -- name: IQE_BROWSERLOG - value: "1" -- name: IQE_NETLOG - value: "1" -- name: TEST_TYPE - value: '' -- name: IQE_CPU_LIMIT - value: "1" -- name: IQE_MEMORY_LIMIT - value: 1.5Gi -- name: IQE_CPU_REQUEST - value: 250m -- name: IQE_MEMORY_REQUEST - value: 1Gi -- name: SELENIUM_CPU_LIMIT - value: 500m -- name: SELENIUM_MEMORY_LIMIT - value: 2Gi -- name: SELENIUM_CPU_REQUEST - value: 100m -- name: SELENIUM_MEMORY_REQUEST - value: 1Gi -- name: SELENIUM_JAVA_OPTS - value: '' -- name: VNC_GEOMETRY - value: '1920x1080' -- name: IQE_PARALLEL_ENABLED - value: "false" -- name: SE_NODE_SESSION_TIMEOUT - value: "600" diff --git a/pr_check.sh b/pr_check.sh deleted file mode 100755 index ecdba696..00000000 --- a/pr_check.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# -------------------------------------------- -# Export vars for helper scripts to use -# -------------------------------------------- -# name of app-sre "application" folder this component lives in; needs to match for quay -export COMPONENT_NAME="image-builder-frontend" -# IMAGE should match the quay repo set by app.yaml in app-interface -export IMAGE="quay.io/cloudservices/image-builder-frontend" -export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace -export APP_ROOT=$(pwd) -#16 is the default Node version. Change this to override it. -export NODE_BUILD_VERSION=20 -# skip unit tests on frontend-build -export SKIP_VERIFY=True -COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master - -# -------------------------------------------- -# Options that must be configured by app owner -# -------------------------------------------- -export IQE_PLUGINS="image-builder" -export IQE_CJI_TIMEOUT="90m" -export IQE_MARKER_EXPRESSION="fe_pr_check" -export IQE_SELENIUM="true" -export IQE_ENV="ephemeral" -export IQE_IMAGE_TAG="image-builder" -export IQE_PARALLEL_ENABLED="false" -export RESERVE_DURATION="2h" - -# bootstrap bonfire and it's config -CICD_URL=https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd -curl -s "$CICD_URL"/bootstrap.sh >.cicd_bootstrap.sh && source .cicd_bootstrap.sh - -# # source is preferred to | bash -s in this case to avoid a subshell -source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh) - -# reserve ephemeral namespace -export DEPLOY_FRONTENDS="true" -export EXTRA_DEPLOY_ARGS="provisioning sources rhsm-api-proxy --set-template-ref rhsm-api-proxy=master" -export APP_NAME="image-builder-crc" -export DEPLOY_TIMEOUT="1200" -export REF_ENV="insights-stage" -# overwrites any resource limits imposed by bonfire -export COMPONENTS_W_RESOURCES="compliance notifications-backend notifications-engine" - -source "$CICD_ROOT"/deploy_ephemeral_env.sh - -# Run smoke tests using a ClowdJobInvocation (preferred) -# The contents of this script can be found at: -# https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd/cji_smoke_test.sh -export COMPONENT_NAME="image-builder" -source "$CICD_ROOT"/cji_smoke_test.sh - -# Post a comment with test run IDs to the PR -# The contents of this script can be found at: -# https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd/post_test_results.sh -source "$CICD_ROOT"/post_test_results.sh