diff --git a/ci-operator/config/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main.yaml b/ci-operator/config/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main.yaml index 9b92aacaac253..f8262297cb9ce 100644 --- a/ci-operator/config/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main.yaml +++ b/ci-operator/config/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main.yaml @@ -8,6 +8,49 @@ build_root: name: release namespace: openshift tag: golang-1.22 +images: + items: + - build_args: + - name: FLAVOR + value: cpu + - name: NUM_WORKERS + value: "4" + - name: OS_VERSION + value: "2025.2" + - name: BUILD_UPSTREAM_DOCS + value: "true" + - name: BUILD_OPERATORS_DOCS + value: "false" + - name: OS_PROJECTS + value: nova + - name: INDEX_NAME + value: os-docs-2025.2 + - name: VECTOR_DB_TYPE + value: faiss + - name: BUILD_OCP_DOCS + value: "false" + - name: BUILD_OKP_CONTENT + value: "false" + - name: HERMETIC + value: "false" + - name: RHOSO_DOCS_GIT_URL + - name: RHOSO_DOCS_GIT_BRANCH + - name: RHOSO_CA_CERT_URL + - name: DOCS_LINK_UNREACHABLE_ACTION + value: warn + - name: OKP_CONTENT + value: all + - name: RHOSO_IGNORE_LIST + - name: OPERATORS_REPO_URL + value: https://github.com/openstack-k8s-operators/openstack-operator.git + - name: OPERATORS_BRANCH + value: main + dockerfile_path: Containerfile + to: rag-content-openstack +promotion: + to: + - namespace: openstack-lightspeed + tag: latest releases: initial: integration: @@ -25,10 +68,20 @@ resources: cpu: "4" memory: 8Gi tests: -- as: hello-world - commands: 'echo "Hello from OpenShift CI! Repository: openstack-lightspeed/rag-content"' +- as: build-rag-content-image + commands: | + echo "=====================================" + echo "RAG Content Vector DB Image Build" + echo "=====================================" + echo "Image: rag-content-openstack" + echo "Index: os-docs-2025.2" + echo "Nova Only for now" + echo "=====================================" + echo "Build completed successfully!" + echo "Image will be promoted to quay.io/openstack-lightspeed/rag-content:latest" container: - from: src + from: rag-content-openstack + timeout: 4h0m0s zz_generated_metadata: branch: main org: openstack-lightspeed diff --git a/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-postsubmits.yaml b/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-postsubmits.yaml new file mode 100644 index 0000000000000..fe306732f7296 --- /dev/null +++ b/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-postsubmits.yaml @@ -0,0 +1,62 @@ +postsubmits: + openstack-lightspeed/rag-content: + - agent: kubernetes + always_run: true + branches: + - ^main$ + cluster: build01 + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/is-promotion: "true" + ci.openshift.io/generator: prowgen + max_concurrency: 1 + name: branch-ci-openstack-lightspeed-rag-content-main-images + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson + - --promote + - --report-credentials-file=/etc/report/credentials + - --target=[images] + command: + - ci-operator + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/push-secret + name: push-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: push-secret + secret: + secretName: registry-push-credentials-ci-central + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-presubmits.yaml b/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-presubmits.yaml index c691b984e24d8..3fffbb14fd264 100644 --- a/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-presubmits.yaml +++ b/ci-operator/jobs/openstack-lightspeed/rag-content/openstack-lightspeed-rag-content-main-presubmits.yaml @@ -6,22 +6,23 @@ presubmits: - ^main$ - ^main- cluster: build04 - context: ci/prow/hello-world + context: ci/prow/build-rag-content-image decorate: true decoration_config: skip_cloning: true + timeout: 4h0m0s labels: ci.openshift.io/generator: prowgen pj-rehearse.openshift.io/can-be-rehearsed: "true" - name: pull-ci-openstack-lightspeed-rag-content-main-hello-world - rerun_command: /test hello-world + name: pull-ci-openstack-lightspeed-rag-content-main-build-rag-content-image + rerun_command: /test build-rag-content-image spec: containers: - args: - --gcs-upload-secret=/secrets/gcs/service-account.json - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson - --report-credentials-file=/etc/report/credentials - - --target=hello-world + - --target=build-rag-content-image command: - ci-operator env: @@ -62,4 +63,59 @@ presubmits: - name: result-aggregator secret: secretName: result-aggregator - trigger: (?m)^/test( | .* )hello-world,?($|\s.*) + trigger: (?m)^/test( | .* )build-rag-content-image,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build04 + context: ci/prow/images + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openstack-lightspeed-rag-content-main-images + rerun_command: /test images + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --target=[images] + command: + - ci-operator + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )images,?($|\s.*)