k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes-sigs/cluster-api-provider-gcp/cluster-api-provider-gcp-presubmits-main.yaml (about)

     1  presubmits:
     2    kubernetes-sigs/cluster-api-provider-gcp:
     3    - name: pull-cluster-api-provider-gcp-test
     4      always_run: true
     5      optional: false
     6      decorate: true
     7      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
     8      cluster: eks-prow-build-cluster
     9      branches:
    10      - ^main$
    11      spec:
    12        containers:
    13        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
    14          command:
    15          - "./scripts/ci-test.sh"
    16          resources:
    17            limits:
    18              cpu: 4
    19              memory: 4Gi
    20            requests:
    21              cpu: 4
    22              memory: 4Gi
    23      annotations:
    24        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
    25        testgrid-tab-name: pr-test
    26    - name: pull-cluster-api-provider-gcp-build
    27      always_run: true
    28      optional: false
    29      decorate: true
    30      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
    31      cluster: eks-prow-build-cluster
    32      branches:
    33      - ^main$
    34      spec:
    35        containers:
    36        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
    37          command:
    38          - "./scripts/ci-build.sh"
    39          resources:
    40            limits:
    41              cpu: 4
    42              memory: 4Gi
    43            requests:
    44              cpu: 4
    45              memory: 4Gi
    46      annotations:
    47        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
    48        testgrid-tab-name: pr-build
    49    - name: pull-cluster-api-provider-gcp-make
    50      cluster: eks-prow-build-cluster
    51      always_run: true
    52      optional: false
    53      decorate: true
    54      labels:
    55        preset-dind-enabled: "true"
    56        preset-kind-volume-mounts: "true"
    57      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
    58      branches:
    59      - ^main$
    60      spec:
    61        containers:
    62        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
    63          # docker-in-docker needs privileged mode
    64          securityContext:
    65            privileged: true
    66          command:
    67          - "runner.sh"
    68          - "./scripts/ci-make.sh"
    69          resources:
    70            limits:
    71              cpu: 4
    72              memory: 4Gi
    73            requests:
    74              cpu: 4
    75              memory: 4Gi
    76      annotations:
    77        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
    78        testgrid-tab-name: pr-make
    79    - name: pull-cluster-api-provider-gcp-verify
    80      always_run: true
    81      optional: false
    82      decorate: true
    83      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
    84      cluster: eks-prow-build-cluster
    85      labels:
    86        # required for shellcheck in container.
    87        preset-dind-enabled: "true"
    88      branches:
    89      # The script this job runs is not in all branches.
    90      - ^main$
    91      spec:
    92        containers:
    93        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
    94          command:
    95          - "runner.sh"
    96          - "make"
    97          - "verify"
    98          securityContext:
    99            privileged: true
   100          resources:
   101            limits:
   102              cpu: 4
   103              memory: 4Gi
   104            requests:
   105              cpu: 4
   106              memory: 4Gi
   107      annotations:
   108        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   109        testgrid-tab-name: pr-verify
   110    - name: pull-cluster-api-provider-gcp-e2e-test
   111      cluster: k8s-infra-prow-build
   112      labels:
   113        preset-service-account: "true"
   114        preset-dind-enabled: "true"
   115        preset-kind-volume-mounts: "true"
   116      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   117      branches:
   118      - ^main$
   119      always_run: true
   120      optional: false
   121      decorate: true
   122      decoration_config:
   123        timeout: 3h
   124      spec:
   125        containers:
   126          - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   127            env:
   128              - name: "BOSKOS_HOST"
   129                value: "boskos.test-pods.svc.cluster.local"
   130            command:
   131              - "runner.sh"
   132              - "./scripts/ci-e2e.sh"
   133            # we need privileged mode in order to do docker in docker
   134            securityContext:
   135              privileged: true
   136            resources:
   137              requests:
   138                # these are both a bit below peak usage during build
   139                # this is mostly for building kubernetes
   140                memory: "9000Mi"
   141                # during the tests more like 3-20m is used
   142                cpu: 2000m
   143              limits:
   144                memory: "9000Mi"
   145                cpu: 2000m
   146      annotations:
   147        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   148        testgrid-tab-name: pr-e2e-test
   149    - name: pull-cluster-api-provider-gcp-conformance-ci-artifacts
   150      cluster: k8s-infra-prow-build
   151      labels:
   152        preset-service-account: "true"
   153        preset-dind-enabled: "true"
   154        preset-kind-volume-mounts: "true"
   155      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   156      branches:
   157      - ^main$
   158      always_run: false
   159      optional: true
   160      decorate: true
   161      decoration_config:
   162        timeout: 3h
   163      extra_refs:
   164      - org: kubernetes-sigs
   165        repo: image-builder
   166        base_ref: main
   167        path_alias: "sigs.k8s.io/image-builder"
   168      spec:
   169        containers:
   170          - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   171            env:
   172              - name: "BOSKOS_HOST"
   173                value: "boskos.test-pods.svc.cluster.local"
   174              - name: E2E_ARGS
   175                value: "-kubetest.use-ci-artifacts"
   176              - name: USE_CI_ARTIFACTS
   177                value: "true"
   178            command:
   179              - "runner.sh"
   180              - "./scripts/ci-conformance.sh"
   181              - "--init-image"
   182            # we need privileged mode in order to do docker in docker
   183            securityContext:
   184              privileged: true
   185            resources:
   186              requests:
   187                # these are both a bit below peak usage during build
   188                # this is mostly for building kubernetes
   189                memory: "9000Mi"
   190                # during the tests more like 3-20m is used
   191                cpu: 2000m
   192              limits:
   193                memory: "9000Mi"
   194                cpu: 2000m
   195      annotations:
   196        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   197        testgrid-tab-name: pr-conformance-ci-artifacts
   198    - name: pull-cluster-api-provider-gcp-conformance
   199      cluster: k8s-infra-prow-build
   200      labels:
   201        preset-service-account: "true"
   202        preset-dind-enabled: "true"
   203        preset-kind-volume-mounts: "true"
   204      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   205      branches:
   206      - ^main$
   207      always_run: false
   208      optional: true
   209      decorate: true
   210      decoration_config:
   211        timeout: 3h
   212      spec:
   213        containers:
   214          - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   215            env:
   216              - name: "BOSKOS_HOST"
   217                value: "boskos.test-pods.svc.cluster.local"
   218            command:
   219              - "runner.sh"
   220              - "./scripts/ci-conformance.sh"
   221            # we need privileged mode in order to do docker in docker
   222            securityContext:
   223              privileged: true
   224            resources:
   225              requests:
   226                # these are both a bit below peak usage during build
   227                # this is mostly for building kubernetes
   228                memory: "9000Mi"
   229                # during the tests more like 3-20m is used
   230                cpu: 2000m
   231              limits:
   232                memory: "9000Mi"
   233                cpu: 2000m
   234      annotations:
   235        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   236        testgrid-tab-name: pr-conformance
   237    - name: pull-cluster-api-provider-gcp-capi-e2e
   238      cluster: k8s-infra-prow-build
   239      labels:
   240        preset-service-account: "true"
   241        preset-dind-enabled: "true"
   242        preset-kind-volume-mounts: "true"
   243      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   244      branches:
   245      - ^main$
   246      always_run: false
   247      optional: true
   248      decorate: true
   249      decoration_config:
   250        timeout: 3h
   251      spec:
   252        containers:
   253          - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   254            env:
   255              - name: "BOSKOS_HOST"
   256                value: "boskos.test-pods.svc.cluster.local"
   257              - name: GINKGO_FOCUS
   258                value: "Cluster API E2E tests"
   259              - name: GINKGO_SKIP
   260                value: "\\[K8s-Upgrade\\]|API Version Upgrade"
   261            command:
   262              - "runner.sh"
   263              - "./scripts/ci-e2e.sh"
   264            securityContext:
   265              privileged: true
   266            resources:
   267              requests:
   268                memory: "9000Mi"
   269                cpu: 2000m
   270              limits:
   271                memory: "9000Mi"
   272                cpu: 2000m
   273      annotations:
   274        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   275        testgrid-tab-name: pr-capi-e2e-test
   276    - name: pull-cluster-api-provider-gcp-e2e-workload-upgrade
   277      cluster: k8s-infra-prow-build
   278      labels:
   279        preset-service-account: "true"
   280        preset-dind-enabled: "true"
   281        preset-kind-volume-mounts: "true"
   282      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   283      branches:
   284      - ^main$
   285      always_run: false
   286      optional: true
   287      decorate: true
   288      decoration_config:
   289        timeout: 3h
   290      spec:
   291        containers:
   292          - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   293            args:
   294              - runner.sh
   295              - "./scripts/ci-e2e.sh"
   296            env:
   297              - name: "BOSKOS_HOST"
   298                value: "boskos.test-pods.svc.cluster.local"
   299              - name: GINKGO_FOCUS
   300                value: "\\[K8s-Upgrade\\]"
   301            # we need privileged mode in order to do docker in docker
   302            securityContext:
   303              privileged: true
   304            resources:
   305              limits:
   306                memory: "9000Mi"
   307                cpu: 2000m
   308              requests:
   309                memory: "9000Mi"
   310                cpu: 2000m
   311      annotations:
   312        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   313        testgrid-tab-name: pr-e2e-upgrade
   314    - name: pull-cluster-api-provider-gcp-apidiff
   315      decorate: true
   316      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   317      always_run: true
   318      optional: true
   319      cluster: eks-prow-build-cluster
   320      labels:
   321        preset-service-account: "true"
   322      branches:
   323      - ^main$
   324      spec:
   325        containers:
   326        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   327          command:
   328            - runner.sh
   329          args:
   330            - ./scripts/ci-apidiff.sh
   331          resources:
   332            limits:
   333              cpu: 4
   334              memory: 4Gi
   335            requests:
   336              cpu: 4
   337              memory: 4Gi
   338      annotations:
   339        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   340        testgrid-tab-name: pr-apidiff-main
   341    - name: pull-cluster-api-provider-gcp-coverage
   342      always_run: false
   343      optional: true
   344      decorate: true
   345      path_alias: "sigs.k8s.io/cluster-api-provider-gcp"
   346      cluster: eks-prow-build-cluster
   347      extra_refs:
   348        - org: kubernetes
   349          repo: test-infra
   350          base_ref: master
   351          path_alias: k8s.io/test-infra
   352      spec:
   353        containers:
   354        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-1.29
   355          command:
   356          - runner.sh
   357          args:
   358          - bash
   359          - -c
   360          - |
   361            result=0
   362            ./scripts/ci-test-coverage.sh || result=$?
   363            cp coverage.* ${ARTIFACTS}
   364            cd ../../k8s.io/test-infra/gopherage
   365            GO111MODULE=on go build .
   366            ./gopherage filter --exclude-path="zz_generated,generated\.pb\.go"  "${ARTIFACTS}/coverage.out" > "${ARTIFACTS}/filtered.cov" || result=$?
   367            ./gopherage html "${ARTIFACTS}/filtered.cov" > "${ARTIFACTS}/coverage.html" || result=$?
   368            ./gopherage junit --threshold 0.05 "${ARTIFACTS}/filtered.cov" > "${ARTIFACTS}/junit_coverage.xml" || result=$?
   369            exit $result
   370          securityContext:
   371            privileged: true
   372          resources:
   373            limits:
   374              cpu: 4
   375              memory: 4Gi
   376            requests:
   377              cpu: 4
   378              memory: 4Gi
   379      annotations:
   380        testgrid-dashboards: sig-cluster-lifecycle-cluster-api-provider-gcp
   381        testgrid-tab-name: pr-coverage
   382        testgrid-alert-email: k8s-infra-staging-cluster-api-gcp@kubernetes.io