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
Original file line number Diff line number Diff line change
Expand Up @@ -72800,6 +72800,169 @@ periodics:
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: build09
cron: '@yearly'
decorate: true
decoration_config:
timeout: 12h0m0s
name: periodic-ci-openshift-release-main-claude-payload-agent-okd-scos
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --give-pr-author-access-to-namespace=true
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --input-hash=$(BUILD_ID)
- --input-hash=$(JOB_NAME)
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/usr/local/pull-secret
- --target=claude-payload-agent
command:
- ci-operator
env:
- name: PAYLOAD_TAG
- name: UNRESOLVED_CONFIG
value: |
resources:
'*':
requests:
cpu: 100m
memory: 200Mi
tests:
- as: claude-payload-agent
steps:
env:
PAYLOAD_TAG: "$(PAYLOAD_TAG)"
RELEASE_CONTROLLER_URL: "https://amd64.origin.releases.ci.openshift.org"
workflow: openshift-claude-payload
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: claude-payload-agent
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- 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: /usr/local/pull-secret
name: release-pull-secret
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: release-pull-secret
secret:
secretName: ci-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: build09
cron: '@yearly'
decorate: true
decoration_config:
timeout: 12h0m0s
name: periodic-ci-openshift-release-main-claude-payload-agent-okd-scos-no-slack
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --give-pr-author-access-to-namespace=true
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --input-hash=$(BUILD_ID)
- --input-hash=$(JOB_NAME)
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/usr/local/pull-secret
- --target=claude-payload-agent
command:
- ci-operator
env:
- name: PAYLOAD_TAG
- name: UNRESOLVED_CONFIG
value: |
resources:
'*':
requests:
cpu: 100m
memory: 200Mi
tests:
- as: claude-payload-agent
steps:
env:
PAYLOAD_TAG: "$(PAYLOAD_TAG)"
RELEASE_CONTROLLER_URL: "https://amd64.origin.releases.ci.openshift.org"
ENABLE_SLACK_NOTIFICATIONS: "false"
workflow: openshift-claude-payload
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: claude-payload-agent
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- 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: /usr/local/pull-secret
name: release-pull-secret
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: release-pull-secret
secret:
secretName: ci-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: app.ci
decorate: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ export PATH="/tmp/google-cloud-sdk/bin:${PATH}"
echo "gcloud CLI installed."

# Parse version and stream from payload tag
# Format: 4.22.0-0.nightly-2026-02-25-152806
# OCP format: 4.22.0-0.nightly-2026-02-25-152806
# OKD format: 4.22.0-0.okd-scos-nightly-2026-06-10-015300
# OKD CI fmt: 4.22.0-0.okd-scos-2026-06-10-003203
VERSION=$(echo "${PAYLOAD_TAG}" | grep -oP '^\d+\.\d+')
STREAM=$(echo "${PAYLOAD_TAG}" | grep -oP '\d+\.\d+\.\d+-\d+\.\K[a-z]+')
STREAM_NAME=$(echo "${PAYLOAD_TAG}" | sed 's/-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{6\}$//')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to have STREAM and STREAM_NAME separate as STREAM is referenced in a few more places: https://github.com/openshift/release/blame/main/ci-operator/step-registry/openshift/claude/payload/agent/openshift-claude-payload-agent-commands.sh#L126 . This PR probably needs to be rebased to pick that up eventhough it doesn't cause a conflict

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the changes.

STREAM=$(echo "${STREAM_NAME}" | sed 's/^[0-9]*\.[0-9]*\.[0-9]*-[0-9]*\.//')

RELEASE_CONTROLLER_URL="https://amd64.ocp.releases.ci.openshift.org"
STREAM_NAME="${VERSION}.0-0.${STREAM}"
RELEASE_CONTROLLER_URL="${RELEASE_CONTROLLER_URL:-https://amd64.ocp.releases.ci.openshift.org}"
API_URL="${RELEASE_CONTROLLER_URL}/api/v1/releasestream/${STREAM_NAME}/release/${PAYLOAD_TAG}"
PAYLOAD_URL="${RELEASE_CONTROLLER_URL}/releasestream/${STREAM_NAME}/release/${PAYLOAD_TAG}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ ref:
default: "/var/run/slack-webhook/url"
- name: GITHUB_TOKEN_PATH
default: "/var/run/github-token/token"
- name: RELEASE_CONTROLLER_URL
default: "https://amd64.ocp.releases.ci.openshift.org"
documentation: |-
Base URL of the release controller. Override for OKD with
https://amd64.origin.releases.ci.openshift.org.
- name: ENABLE_SLACK_NOTIFICATIONS
default: "true"
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
"prowJob": {
"name": "periodic-ci-openshift-release-main-okd-scos-4.22-e2e-aws-ovn-techpreview"
}
},
"claude-payload-agent": {
"async": true,
"multiJobAnalysis": true,
"optional": true,
"prowJob": {
"name": "periodic-ci-openshift-release-main-claude-payload-agent-okd-scos-no-slack"
}
},
"agent-single-node-ipv6": {
"optional": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
"version": "4.21"
}
}
},
"claude-payload-agent": {
"async": true,
"multiJobAnalysis": true,
"optional": true,
"prowJob": {
"name": "periodic-ci-openshift-release-main-claude-payload-agent-okd-scos-no-slack"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
"prowJob": {
"name": "periodic-ci-openshift-release-main-okd-scos-5.0-e2e-aws-ovn-techpreview"
}
},
"claude-payload-agent": {
"async": true,
"multiJobAnalysis": true,
"optional": true,
"prowJob": {
"name": "periodic-ci-openshift-release-main-claude-payload-agent-okd-scos-no-slack"
}
},
"agent-single-node-ipv6": {
"optional": true,
Expand Down