metadata: annotations: prow.k8s.io/context: pull-verify-tekton-yaml prow.k8s.io/job: pull-verify-tekton-yaml creationTimestamp: "2026-11-13T09:44:44Z" generation: 10 labels: component: jenkins created-by-prow: "true" created-by-tide: "true" env: cicd owner: wei_zheng prow.k8s.io/build-id: "2121177432231776256" prow.k8s.io/context: pull-verify-tekton-yaml prow.k8s.io/id: f8c638c7-a810-4974-828e-9f7fd04929e2 prow.k8s.io/job: pull-verify-tekton-yaml prow.k8s.io/refs.author: dillon-zheng prow.k8s.io/refs.base_ref: main prow.k8s.io/refs.org: PingCAP-QE prow.k8s.io/refs.pull: "5533" prow.k8s.io/refs.repo: ci prow.k8s.io/type: presubmit team: qe name: f8c638c7-a810-4974-828e-9f7fd04929e2 namespace: apps resourceVersion: "1794563106208463002" uid: 874515d1-8550-4719-926b-ae8568de8e02 spec: agent: kubernetes cluster: default context: pull-verify-tekton-yaml decoration_config: gcs_configuration: bucket: gs://prow-tidb-logs path_strategy: explicit gcs_credentials_secret: gcs-credentials utility_images: clonerefs: gcr.io/k8s-prow/clonerefs:v20230601-43eb1068e4 entrypoint: gcr.io/k8s-prow/entrypoint:v20230601-43eb1068e4 initupload: gcr.io/k8s-prow/initupload:v20230601-43eb1068e4 sidecar: gcr.io/k8s-prow/sidecar:v20230601-43eb1068e4 job: pull-verify-tekton-yaml max_concurrency: 1 namespace: prow-test-pods pod_spec: containers: - args: - | apk add --no-cache kubectl yq-go git changed_files=$(git diff --name-only --diff-filter=d "${PULL_BASE_SHA:?}" -- 'tekton/v1/**/*.yaml' \ | grep -v -E '(^|/)kustomization\.yaml$' | LC_ALL=C sort) if [ -z "$changed_files" ]; then echo "No changed Tekton YAML files to verify." exit 0 fi # No kubeconfig is mounted here, so `kubectl apply --dry-run=server` # can never reach an API server; that is why the old check could # only ever pass. Validate the manifests offline instead: YAML # parses, the resource is a Tekton kind, and it names itself. failed=0 for f in $changed_files; do echo "Validating: $f" # A manifest file may hold more than one document, so evaluate # every document and report the ones that are not a named Tekton # resource. Reading `.kind` once per file returned "Trigger # --- Trigger" for a two-document file. bad=$(yq e ' select( (((.kind // "") | test("^(Task|TaskRun|Pipeline|PipelineRun|StepAction|Trigger|TriggerTemplate|TriggerBinding|ClusterTriggerBinding|EventListener|Interceptor)$")) | not) or ((((.apiVersion // "") | length) == 0)) or ((((.metadata.name // "") | length) == 0)) ) | " invalid document: apiVersion=\"" + (.apiVersion // "") + "\" kind=\"" + (.kind // "") + "\" name=\"" + (.metadata.name // "") + "\""' "$f" 2>&1) || { echo " not valid YAML" printf '%s\n' "$bad" | sed 's/^/ /' failed=1 continue } if [ -n "$bad" ]; then printf '%s\n' "$bad" failed=1 fi done if [ "$failed" -eq 0 ]; then echo "All changed Tekton manifests passed structural validation." fi exit $failed command: - sh - -ce image: alpine:3.24 name: main resources: limits: cpu: 200m memory: 256Mi prowjob_defaults: tenant_id: GlobalDefaultID refs: base_ref: main base_sha: 88444bd5b0e327a3c5bd71916ffe0649c288eb61 org: PingCAP-QE pulls: - author: dillon-zheng head_ref: prep/ticse-dual-repo-ci number: 5533 sha: 8797b993b7e05a95060a56e2fa54bae92246256d title: 'feat(jobs): pre-enable pingcap/ticse with legacy CSE compatibility' repo: ci report: true rerun_command: /test pull-verify-tekton-yaml type: presubmit status: build_id: "2121177432231776256" completionTime: "2026-11-13T09:45:04Z" description: Job succeeded. pendingTime: "2026-11-13T09:44:44Z" pod_name: f8c638c7-a810-4974-828e-9f7fd04929e2 prev_report_states: gcsk8sreporter: success gcsreporter: success github-reporter: success startTime: "2026-11-13T09:44:44Z" state: success url: https://prow.tidb.net/view/gs/prow-tidb-logs/pr-logs/pull/PingCAP-QE_ci/5533/pull-verify-tekton-yaml/2121177432231776256