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

     1  presubmits:
     2    kubernetes/test-infra:
     3    # pull-test-infra-bazel is deprecated, leave it here just in case. Will be
     4    # completely removed once bazel footprint is removed from test-infra
     5    - name: pull-test-infra-bazel
     6      cluster: eks-prow-build-cluster
     7      branches:
     8      - master
     9      always_run: false
    10      optional: true
    11      decorate: true
    12      labels:
    13        preset-service-account: "true"
    14        preset-bazel-scratch-dir: "true"
    15      spec:
    16        containers:
    17        - image: gcr.io/k8s-testimages/launcher.gcr.io/google/bazel:v20220314-46af1b01a6-test-infra
    18          command:
    19          - hack/bazel.sh
    20          args:
    21          - test
    22          - --config=ci
    23          - --nobuild_tests_only
    24          - //...
    25          env:
    26          - name: BAZEL_FETCH_PLEASE
    27            value: //...
    28          resources:
    29            requests:
    30              cpu: "4"
    31              memory: "8Gi"
    32            limits:
    33              cpu: "4"
    34              memory: "8Gi"
    35      annotations:
    36        testgrid-dashboards: presubmits-test-infra
    37        testgrid-tab-name: bazel
    38  
    39    - name: pull-test-infra-gubernator
    40      cluster: eks-prow-build-cluster
    41      branches:
    42      - master
    43      run_if_changed: 'gubernator|config/prow/config.yaml|config/jobs/.+\.yaml'
    44      decorate: true
    45      labels:
    46        preset-service-account: "true"
    47      spec:
    48        containers:
    49        - image: gcr.io/k8s-testimages/gubernator:v20230111-cd1b3caf9c
    50          command:
    51          - ./gubernator/test-gubernator.sh
    52          env:
    53          - name: WORKSPACE
    54            value: "/workspace"
    55          resources:
    56            requests:
    57              cpu: "4"
    58              memory: "8Gi"
    59            limits:
    60              cpu: "4"
    61              memory: "8Gi"
    62      annotations:
    63        testgrid-dashboards: presubmits-test-infra
    64        testgrid-tab-name: gubernator
    65  
    66    # Please keep this in sync with the `ci-test-infra-prow-checkconfig` job
    67    - name: pull-test-infra-prow-checkconfig
    68      cluster: eks-prow-build-cluster
    69      decorate: true
    70      run_if_changed: '^(config/prow/(config|plugins).yaml$|config/jobs/.*.yaml$)'
    71      spec:
    72        containers:
    73        - image: gcr.io/k8s-prow/checkconfig:v20240517-ea10bd814
    74          command:
    75          - checkconfig
    76          args:
    77          - --config-path=config/prow/config.yaml
    78          - --job-config-path=config/jobs
    79          - --plugin-config=config/prow/plugins.yaml
    80          - --strict
    81          - --warnings=mismatched-tide-lenient
    82          - --warnings=tide-strict-branch
    83          - --warnings=needs-ok-to-test
    84          - --warnings=validate-owners
    85          - --warnings=missing-trigger
    86          - --warnings=validate-urls
    87          - --warnings=unknown-fields
    88          - --warnings=duplicate-job-refs
    89          - --warnings=unknown-fields-all
    90          - --warnings=non-decorated-jobs
    91          - --warnings=valid-decoration-config
    92          resources:
    93            requests:
    94              cpu: "1"
    95              memory: "2Gi"
    96            limits:
    97              cpu: "1"
    98              memory: "2Gi"
    99      annotations:
   100        testgrid-dashboards: presubmits-test-infra
   101    - name: pull-test-infra-unit-test-race-detector-nonblocking
   102      cluster: eks-prow-build-cluster
   103      branches:
   104      - master
   105      always_run: true
   106      decorate: true
   107      optional: true
   108      skip_report: false
   109      labels:
   110        # Python unit tests run in docker.
   111        preset-dind-enabled: "true"
   112      spec:
   113        containers:
   114        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-test-infra
   115          command:
   116          - runner.sh
   117          args:
   118          - make
   119          - unit
   120          env:
   121          - name: PROW_UNIT_TEST_EXTRA_FLAGS
   122            value: "-race"
   123          # docker-in-docker needs privileged mode
   124          securityContext:
   125            privileged: true
   126          resources:
   127            requests:
   128              cpu: "8"
   129              memory: "8Gi"
   130            limits:
   131              cpu: "8"
   132              memory: "8Gi"
   133      annotations:
   134        testgrid-dashboards: presubmits-test-infra
   135        testgrid-tab-name: unit-test-race-detector-nonblocking
   136    - name: pull-test-infra-unit-test
   137      cluster: eks-prow-build-cluster
   138      branches:
   139      - master
   140      always_run: true
   141      decorate: true
   142      labels:
   143        # Python unit tests run in docker.
   144        preset-dind-enabled: "true"
   145      spec:
   146        containers:
   147        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-test-infra
   148          command:
   149          - runner.sh
   150          args:
   151          - make
   152          - unit
   153          # docker-in-docker needs privileged mode
   154          securityContext:
   155            privileged: true
   156          resources:
   157            requests:
   158              cpu: "8"
   159              memory: "8Gi"
   160            limits:
   161              cpu: "8"
   162              memory: "8Gi"
   163      annotations:
   164        testgrid-dashboards: presubmits-test-infra
   165        testgrid-tab-name: unit-test
   166    # The following test builds the images specified in .k8s-prow-images.yaml
   167    - name: pull-test-infra-misc-image-build-test
   168      cluster: eks-prow-build-cluster
   169      branches:
   170      - ^master$
   171      run_if_changed: '^(\.ko\.yaml|hack/(make-rules|prowimagebuilder)|label_sync/.+\.go|robots/commenter|robots/pr-creator|robots/issue-creator|testgrid/cmd|gcsweb)'
   172      decorate: true
   173      labels:
   174        # Building deck requires docker for typescript compilation.
   175        preset-dind-enabled: "true"
   176      spec:
   177        containers:
   178        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-test-infra
   179          command:
   180          - runner.sh
   181          args:
   182          - make
   183          - build-misc-images
   184          # docker-in-docker needs privileged mode
   185          securityContext:
   186            privileged: true
   187          resources:
   188            requests:
   189              # This job is very CPU intensive as it builds images in parallel.
   190              cpu: "14"
   191              memory: "16Gi"
   192            limits:
   193              cpu: "14"
   194              memory: "16Gi"
   195      annotations:
   196        testgrid-dashboards: presubmits-test-infra
   197        testgrid-tab-name: misc-image-build-test
   198    - name: pull-test-infra-verify-lint
   199      cluster: eks-prow-build-cluster
   200      branches:
   201      - master
   202      always_run: true
   203      decorate: true
   204      labels:
   205        # Enable dind for linters that required docker to run, for example typescript.
   206        preset-dind-enabled: "true"
   207      spec:
   208        containers:
   209        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-test-infra
   210          command:
   211          - runner.sh
   212          args:
   213          - make
   214          - verify
   215          # docker-in-docker needs privileged mode
   216          securityContext:
   217            privileged: true
   218          resources:
   219            requests:
   220              cpu: "8"
   221              memory: "8Gi"
   222            limits:
   223              cpu: "8"
   224              memory: "8Gi"
   225      annotations:
   226        testgrid-dashboards: presubmits-test-infra
   227        testgrid-tab-name: verify-test
   228    - name: pull-test-infra-verify-cri-o
   229      cluster: eks-prow-build-cluster
   230      branches:
   231      - master
   232      run_if_changed: 'jobs\/e2e_node\/crio\/'
   233      decorate: true
   234      labels:
   235        preset-service-account: "true"
   236        preset-dind-enabled: "true"
   237      spec:
   238        containers:
   239        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-test-infra
   240          command:
   241          - runner.sh
   242          args:
   243          - make
   244          - verify
   245          - -C
   246          - jobs/e2e_node/crio
   247          # docker-in-docker needs privileged mode
   248          securityContext:
   249            privileged: true
   250          resources:
   251            requests:
   252              cpu: "4"
   253              memory: "8Gi"
   254            limits:
   255              cpu: "4"
   256              memory: "8Gi"
   257      annotations:
   258        testgrid-dashboards: presubmits-test-infra
   259        testgrid-tab-name: verify-cri-o