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

     1  presubmits:
     2    kubernetes/kubernetes:
     3    - name: pull-kubernetes-verify
     4      cluster: eks-prow-build-cluster
     5      always_run: true
     6      decorate: true
     7      skip_branches:
     8      - release-\d+.\d+ # per-release job
     9      annotations:
    10        fork-per-release: "true"
    11        testgrid-num-failures-to-alert: '10'
    12        testgrid-alert-stale-results-hours: '24'
    13        testgrid-create-test-group: 'true'
    14      path_alias: k8s.io/kubernetes
    15      labels:
    16        preset-service-account: "true"
    17        preset-dind-enabled: "true"
    18      spec:
    19        containers:
    20        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    21          imagePullPolicy: Always
    22          command:
    23          - runner.sh
    24          args:
    25          - ./hack/jenkins/verify-dockerized.sh
    26          env:
    27          - name: EXCLUDE_TYPECHECK
    28            value: "y"
    29          - name: EXCLUDE_GODEP
    30            value: "y"
    31          - name: EXCLUDE_GOLANGCI_LINT
    32            value: "y"
    33          - name: KUBE_VERIFY_GIT_BRANCH
    34            value: master
    35          - name: REPO_DIR
    36            value: /workspace/k8s.io/kubernetes
    37          # docker-in-docker needs privileged mode
    38          securityContext:
    39            privileged: true
    40          resources:
    41            # Consider reducing memory limits after govet memory usage issue is
    42            # addressed in https://github.com/kubernetes/kubernetes/issues/93822
    43            limits:
    44              cpu: 7
    45              memory: 12Gi
    46            requests:
    47              cpu: 7
    48              memory: 12Gi
    49    - name: pull-kubernetes-verify-lint
    50      cluster: eks-prow-build-cluster
    51      decorate: true
    52      # This job is running all required linter checks:
    53      # - baseline for all code
    54      # - stricter configuration for new or modified code in a pull request
    55      #
    56      # Both run in the same job to reuse the build and (to some extend)
    57      # golangci-lint cache. Testing the baseline is necessary because,
    58      # for example, a linter config change or tool update might cause
    59      # failures in existing, unmodified code.
    60      always_run: true
    61      optional: false
    62      skip_branches:
    63      - release-\d+.\d+ # per-release job
    64      annotations:
    65        fork-per-release: "true"
    66        testgrid-dashboards: sig-testing-misc
    67        description: Runs golangci-lint with a stricter configuration for new code.
    68        testgrid-alert-email: patrick.ohly@intel.com
    69        testgrid-num-failures-to-alert: "15"
    70      path_alias: k8s.io/kubernetes
    71      spec:
    72        containers:
    73        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    74          command:
    75          - make
    76          args:
    77          - verify
    78          - WHAT=golangci-lint golangci-lint-pr
    79          resources:
    80            # It peaks at around 7 cores of the EKS cluster. We can fit more jobs onto
    81            # a node without much slowdown by requesting one third of a node
    82            # (= 3 * 5 + 1 for kubelet).
    83            limits:
    84              cpu: 5
    85              memory: 12Gi
    86            requests:
    87              cpu: 5
    88              memory: 12Gi
    89    - name: pull-kubernetes-linter-hints
    90      cluster: eks-prow-build-cluster
    91      decorate: true
    92      always_run: true
    93      # This job will always remain optional because linting may fail because of issues that do not
    94      # need to be addressed. The job has to fail nonetheless to make it visible in GitHub that there
    95      # were such issues.
    96      optional: true
    97      skip_branches:
    98      - release-\d+.\d+ # per-release job
    99      annotations:
   100        fork-per-release: "true"
   101        testgrid-dashboards: sig-testing-misc
   102        description: Runs golangci-lint with a configuration for new code that reports also issues which do not need to be fixed.
   103        testgrid-alert-email: patrick.ohly@intel.com
   104        testgrid-num-failures-to-alert: "15"
   105      path_alias: k8s.io/kubernetes
   106      spec:
   107        containers:
   108        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   109          command:
   110          - make
   111          args:
   112          - verify
   113          - WHAT=golangci-lint-pr-hints
   114          resources:
   115            # It peaks at around 7 cores of the EKS cluster. We can fit more jobs onto
   116            # a node without much slowdown by requesting one third of a node
   117            # (= 3 * 5 + 1 for kubelet).
   118            limits:
   119              cpu: 5
   120              memory: 12Gi
   121            requests:
   122              cpu: 5
   123              memory: 12Gi
   124    - name: pull-kubernetes-verify-go-canary
   125      cluster: eks-prow-build-cluster
   126      always_run: false
   127      skip_report: false
   128      decorate: true
   129      annotations:
   130        testgrid-num-failures-to-alert: '10'
   131        testgrid-alert-stale-results-hours: '24'
   132        testgrid-create-test-group: 'true'
   133        testgrid-dashboards: sig-release-releng-informing, sig-testing-canaries
   134      path_alias: k8s.io/kubernetes
   135      labels:
   136        preset-service-account: "true"
   137        preset-dind-enabled: "true"
   138      spec:
   139        containers:
   140        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-go-canary
   141          imagePullPolicy: Always
   142          command:
   143          - runner.sh
   144          args:
   145          - ./hack/jenkins/verify-dockerized.sh
   146          env:
   147          - name: EXCLUDE_TYPECHECK
   148            value: "y"
   149          - name: EXCLUDE_GODEP
   150            value: "y"
   151          - name: KUBE_VERIFY_GIT_BRANCH
   152            value: master
   153          - name: REPO_DIR
   154            value: /workspace/k8s.io/kubernetes
   155          # docker-in-docker needs privileged mode
   156          securityContext:
   157            privileged: true
   158          resources:
   159            # Consider reducing memory limits after govet memory usage issue is
   160            # addressed in https://github.com/kubernetes/kubernetes/issues/93822
   161            limits:
   162              cpu: 7
   163              memory: 12Gi
   164            requests:
   165              cpu: 7
   166              memory: 12Gi
   167  periodics:
   168  - interval: 1h
   169    cluster: eks-prow-build-cluster
   170    name: ci-kubernetes-verify-master
   171    labels:
   172      preset-service-account: "true"
   173      preset-dind-enabled: "true"
   174    annotations:
   175      fork-per-release: "true"
   176      fork-per-release-periodic-interval: 2h 2h 6h 24h
   177      testgrid-dashboards: sig-release-master-blocking
   178      testgrid-tab-name: verify-master
   179      testgrid-alert-email: kubernetes-sig-testing-alerts@googlegroups.com, k8s-infra-oncall@google.com, release-managers+alerts@kubernetes.io
   180      description: "Ends up running: make verify"
   181    decorate: true
   182    extra_refs:
   183    - org: kubernetes
   184      repo: kubernetes
   185      base_ref: master
   186      path_alias: k8s.io/kubernetes
   187    spec:
   188      containers:
   189      - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   190        imagePullPolicy: Always
   191        command:
   192        - runner.sh
   193        args:
   194        - ./hack/jenkins/verify-dockerized.sh
   195        env:
   196        - name: EXCLUDE_READONLY_PACKAGE
   197          value: "y"
   198        - name: KUBE_VERIFY_GIT_BRANCH
   199          value: master
   200        - name: REPO_DIR
   201          value: /workspace/k8s.io/kubernetes
   202        # Consider removing after https://github.com/golang/go/issues/49035 is solved
   203        # See https://github.com/kubernetes/kubernetes/pull/108618
   204        - name: TYPECHECK_SERIAL
   205          value: "true"
   206        # docker-in-docker needs privileged mode
   207        securityContext:
   208          privileged: true
   209        resources:
   210          limits:
   211            cpu: 6
   212            memory: 24Gi
   213          requests:
   214            cpu: 6
   215            memory: 24Gi
   216  - interval: 6h
   217    name: kubernetes-verify-go-licenses-periodical
   218    cluster: eks-prow-build-cluster
   219    decorate: true
   220    decoration_config:
   221      timeout: 20m
   222    labels:
   223      preset-service-account: "true"
   224      preset-dind-enabled: "true"
   225    annotations:
   226      testgrid-create-test-group: "true"
   227      testgrid-dashboards: sig-testing-misc
   228      testgrid-alert-email: kubernetes-sig-testing-alerts@googlegroups.com
   229      description: "Verify licences for the upstream Kubernetes Project's go-packages to the CNCF approved list of licences."
   230    extra_refs:
   231    - org: kubernetes
   232      repo: kubernetes
   233      base_ref: master
   234      path_alias: k8s.io/kubernetes
   235    spec:
   236      containers:
   237      - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   238        imagePullPolicy: Always
   239        command:
   240        - runner.sh
   241        args:
   242        - ./hack/verify-licenses.sh
   243        env:
   244        - name: KUBE_VERIFY_GIT_BRANCH
   245          value: master
   246        - name: REPO_DIR
   247          value: /workspace/k8s.io/kubernetes
   248        resources:
   249          limits:
   250            cpu: 4
   251            memory: 4Gi
   252          requests:
   253            cpu: 4
   254            memory: 4Gi
   255        # docker-in-docker needs privileged mode
   256        securityContext:
   257          privileged: true