Skip to content
Merged
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
2 changes: 1 addition & 1 deletion pipeline/integration/konflux-eval-pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
value: task
params:
- name: agent-image
value: quay.io/ecosystem-appeng/google-lightspeed-agent:on-pr-4af1ac0fab1c823cf2d034961c902a90c54ba4f4
value: quay.io/ecosystem-appeng/google-lightspeed-agent:176a268e783a84f903ce680a26e031294ea985f7
- name: llm-api-base
value: "http://litellm.ab-eval-flow.svc:4000"
- name: llm-model
Expand Down
2 changes: 1 addition & 1 deletion pipeline/tasks/konflux/cleanup-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ spec:
OC_REMOTE="oc --server=$CLUSTER_URL --token=$WORKLOAD_TOKEN --insecure-skip-tls-verify=true"

echo "Deleting: $AGENT_NAME in $NAMESPACE on $CLUSTER_URL"
$OC_REMOTE delete route/$AGENT_NAME -n $NAMESPACE --ignore-not-found=true
$OC_REMOTE delete deployment/$AGENT_NAME -n $NAMESPACE --ignore-not-found=true
$OC_REMOTE delete service/$AGENT_NAME -n $NAMESPACE --ignore-not-found=true
$OC_REMOTE delete pod -n $NAMESPACE -l abevalflow/temp=true,abevalflow/type=eval-job --ignore-not-found=true

echo "Cleanup complete"
37 changes: 10 additions & 27 deletions pipeline/tasks/konflux/deploy-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,40 +140,23 @@ spec:
ports:
- port: 8000
targetPort: 8000
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: $AGENT_NAME
labels:
abevalflow/temp: "true"
spec:
to:
kind: Service
name: $AGENT_NAME
port:
targetPort: 8000
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
YAML

TIMEOUT=$(params.readiness-timeout)

ENDPOINT="http://${AGENT_NAME}.${NAMESPACE}.svc:8000"

printf "Waiting for agent readiness"
for i in $(seq 1 $((TIMEOUT / 5))); do
if $OC_REMOTE rollout status deployment/$AGENT_NAME -n $NAMESPACE --timeout=5s >/dev/null 2>&1; then
ROUTE_HOST=$($OC_REMOTE get route $AGENT_NAME -n $NAMESPACE -o jsonpath='{.spec.host}' 2>/dev/null || echo "")
if [ -n "$ROUTE_HOST" ]; then
ENDPOINT="https://${ROUTE_HOST}"
if curl -skf "$ENDPOINT/.well-known/agent.json" > /dev/null 2>&1; then
echo " ready!"
echo -n "$ENDPOINT" > "$(results.agent-endpoint.path)"
echo -n "$AGENT_NAME" > "$(results.agent-name.path)"
echo -n "true" > "$(results.deployed.path)"
echo "Agent endpoint: $ENDPOINT"
exit 0
fi
READY=$($OC_REMOTE get deployment $AGENT_NAME -n $NAMESPACE -o jsonpath='{.status.readyReplicas}' 2>/dev/null || echo "0")
if [ "${READY:-0}" -ge 1 ]; then
echo " ready!"
echo -n "$ENDPOINT" > "$(results.agent-endpoint.path)"
echo -n "$AGENT_NAME" > "$(results.agent-name.path)"
echo -n "true" > "$(results.deployed.path)"
echo "Agent endpoint: $ENDPOINT"
exit 0
fi
fi
printf "."
Expand Down
2 changes: 1 addition & 1 deletion pipeline/tasks/konflux/emit-result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
NOTE="ABEvalFlow: recommendation=${REPORT_REC} (no scorecard)"

else
RESULT="ERROR"
RESULT="FAILURE"
NOTE="ABEvalFlow: no scorecard.json or report.json found"
fi

Expand Down
Loading
Loading