Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: lightspeed-agentic-console-pre-commits
spec:
description: |
This pipeline runs pre-commit checks for OpenShift Lightspeed Agentic Console.
params:
- name: SNAPSHOT
description: 'The JSON string representing the snapshot of the application under test.'
default: '{"components": [{"name":"test-app", "containerImage": "quay.io/example/repo:latest", "source": {"git": {"revision": "main"}}}]}'
- name: test-name
description: 'The name of the test corresponding to a defined Konflux integration test.'
default: 'lightspeed-agentic-console-pre-commits'
tasks:
- name: extract-snapshot-metadata
description: Extract console image and commit from SNAPSHOT input
params:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
taskSpec:
results:
- name: console-image
value: "$(steps.get-snapshot-images.results.console-image)"
- name: commit
value: "$(steps.get-snapshot-images.results.commit)"
params:
- name: SNAPSHOT
steps:
- name: get-snapshot-images
image: registry.redhat.io/openshift4/ose-cli:latest
env:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
results:
- name: console-image
type: string
description: "console image from snapshot"
- name: commit
type: string
description: "commit sha to be used in console tests"
script: |
dnf -y install jq
echo -n "$(jq -r --arg component_name "lightspeed-agentic-console" '.components[] | select(.name == $component_name) | .containerImage' <<< "$SNAPSHOT")" > $(step.results.console-image.path)
echo -n "$(jq -r --arg component_name "lightspeed-agentic-console" '.components[] | select(.name == $component_name) | .source.git.revision' <<< "$SNAPSHOT")" > $(step.results.commit.path)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- name: lint
description: Run static checks
runAfter:
- extract-snapshot-metadata
params:
- name: commit
value: $(tasks.extract-snapshot-metadata.results.commit)
taskSpec:
params:
- name: commit
steps:
- name: run-lint
env:
- name: COMMIT_SHA
value: $(params.commit)
image: mcr.microsoft.com/playwright:v1.60.0-noble
resources:
limits:
memory: 4Gi
script: |
#!/bin/bash
set -euo pipefail
cd /home
git clone https://github.com/openshift/lightspeed-agentic-console.git
cd lightspeed-agentic-console
git fetch origin "${COMMIT_SHA}"
git config advice.detachedHead false
git checkout "${COMMIT_SHA}"
echo "---------------------------------------------"
echo "node version: $(node -v)"
echo "npm version: $(npm -v)"
echo "---------------------------------------------"
NODE_OPTIONS=--max-old-space-size=4096 npm ci --omit=optional --no-fund
echo "---------------------------------------------"
npm run lint
echo "---------------------------------------------"
npm run test
echo "---------------------------------------------"
npm run i18n
3 changes: 2 additions & 1 deletion locales/en/plugin__lightspeed-agentic-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
"After execution, a separate verification agent with read-only cluster access independently checks whether the fix worked. It inspects actual cluster state, not the execution agent's self-reported results. The checks shown below are the analysis agent's recommendations. The verification agent uses its own judgment based on what it observes, and every check it runs is reported transparently in the Verification tab. If verification fails, and retries were selected at approval, the Lightspeed operator will automatically retry execution with the failure reasons included as context for the execution agent.": "After execution, a separate verification agent with read-only cluster access independently checks whether the fix worked. It inspects actual cluster state, not the execution agent's self-reported results. The checks shown below are the analysis agent's recommendations. The verification agent uses its own judgment based on what it observes, and every check it runs is reported transparently in the Verification tab. If verification fails, and retries were selected at approval, the Lightspeed operator will automatically retry execution with the failure reasons included as context for the execution agent.",
"Age": "Age",
"Agent tiers define the model and settings used at each stage of a proposal workflow.": "Agent tiers define the model and settings used at each stage of a proposal workflow.",
"Agentic system is suspended": "Agentic system is suspended",
"Agents": "Agents",
"AI Hub": "AI Hub",
"Alert Diagnosis: {{name}}": "Alert Diagnosis: {{name}}",
"Alert rule created successfully": "Alert rule created successfully",
"All operations are halted and new proposals will be terminated. Remove or update the AgenticOLSConfig to resume.": "All operations are halted and new proposals will be terminated. Remove or update the AgenticOLSConfig to resume.",
"Analysis (seconds)": "Analysis (seconds)",
"Analysis did not complete — no proposal was generated.": "Analysis did not complete — no proposal was generated.",
"Analysis Sandbox": "Analysis Sandbox",
Expand All @@ -27,7 +29,6 @@
"Approve the escalation step for proposal {{name}}. The agent will research the issue, draft a support case, and file it.": "Approve the escalation step for proposal {{name}}. The agent will research the issue, draft a support case, and file it.",
"Approve Verification": "Approve Verification",
"Approve with {{num}} retries": "Approve with {{num}} retries",
"Approve with retries": "Approve with retries",
"Auto-scroll": "Auto-scroll",
"Automatic": "Automatic",
"Before": "Before",
Expand Down
Loading