k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes/sig-testing/apidiff.yaml (about)

     1  presubmits:
     2    kubernetes/kubernetes:
     3    - name: pull-kubernetes-apidiff
     4      cluster: eks-prow-build-cluster
     5      # A job which automatically runs for changes in staging and then only
     6      # diffs staging might be useful. For now, this checks everything and
     7      # has to be started manually with:
     8      #   /test pull-kubernetes-apidiff
     9      always_run: false
    10      optional: true
    11      decorate: true
    12      annotations:
    13        # The apidiff.sh script uses the latest revision of apidiff.
    14        # There is no guarantee that this will continue to work for
    15        # older branches, so let's not even create per-release
    16        # copies of this job.
    17        fork-per-release: "false"
    18        testgrid-dashboards: sig-testing-misc
    19        testgrid-create-test-group: 'true'
    20      path_alias: k8s.io/kubernetes
    21      spec:
    22        containers:
    23        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    24          imagePullPolicy: Always
    25          command:
    26          - runner.sh
    27          args:
    28          - /bin/sh
    29          - -c
    30          # PULL_BASE_SHA is the revision on the target branch that the
    31          # PR gets merged into. What we want instead is the revision at
    32          # which the PR branch diverged from the target branch.
    33          # We get that from "git merge-base".
    34          - "./hack/apidiff.sh -r $(git merge-base ${PULL_BASE_SHA} ${PULL_PULL_SHA}) -t ${PULL_PULL_SHA}"
    35          env:
    36          - name: REPO_DIR
    37            value: /workspace/k8s.io/kubernetes
    38          resources:
    39            # Memory limits are derived from pull-kubernetes-verify, with less CPUs.
    40            limits:
    41              cpu: 2
    42              memory: 12Gi
    43            requests:
    44              cpu: 2
    45              memory: 12Gi
    46  
    47  # A periodic job which shows API diffs for staging repos since the last release
    48  # might be useful. Not done yet.