Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull-kubernetes-integration: split into Go and cmd testing, for real #34394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Feb 22, 2025

It's annoying that pull-kubernetes-integration also runs "make test-cmd" because it makes the job run longer (which is a problem because it is one of the slowest, thus delaying merging of PRs) and because of the additional, confusing output produced by the shell scripts which test commands.

A trial run with canary jobs was successful. However, the test scripts then got renamed with an additional "test-" prefix. This has been taken account when modifying the actual jobs.

/hold

Let's merge during normal work hours (Monday?) when @aojea and I are around in case that something breaks.
We can also wait for @BenTheElder.

It's annoying that pull-kubernetes-integration also runs "make test-cmd"
because it makes the job run longer (which is a problem because it is one of
the slowest, thus delaying merging of PRs) and because of the additional,
confusing output produced by the shell scripts which tests commands.

A trial run with canary jobs was successful. However, the test scripts then
got renamed with an additional "test-" prefix. This has been taken account
when modifying the actual jobs.
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 22, 2025
@pohly
Copy link
Contributor Author

pohly commented Feb 22, 2025

cmd.yaml is a copy of integration.yaml with these differences:

*** config/jobs/kubernetes/sig-testing/integration.yaml	2025-02-22 13:27:18.918209019 +0100
--- config/jobs/kubernetes/sig-testing/cmd.yaml	2025-02-22 13:22:33.208869958 +0100
***************
*** 1,7 ****
  presubmits:
    kubernetes/kubernetes:
    # this replaces the bootstrap / scenario based job going forward
!   - name: pull-kubernetes-integration
      cluster: eks-prow-build-cluster
      always_run: true
      decorate: true
--- 1,7 ----
  presubmits:
    kubernetes/kubernetes:
    # this replaces the bootstrap / scenario based job going forward
!   - name: pull-kubernetes-cmd
      cluster: eks-prow-build-cluster
      always_run: true
      decorate: true
***************
*** 25,33 ****
          - name: KUBE_INTEGRATION_TEST_MAX_CONCURRENCY
            value: "8"
          - name: KUBE_TIMEOUT
!           value: "-timeout=1h30m"
          args:
!         - ./hack/jenkins/test-integration-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
--- 25,33 ----
          - name: KUBE_INTEGRATION_TEST_MAX_CONCURRENCY
            value: "8"
          - name: KUBE_TIMEOUT
!           value: "-timeout=30m"
          args:
!         - ./hack/jenkins/test-cmd-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
***************
*** 38,44 ****
            requests:
              cpu: 8
              memory: 20Gi
!   - name: pull-kubernetes-integration-canary
      cluster: eks-prow-build-cluster
      always_run: false # Only for canary!
      decorate: true
--- 38,44 ----
            requests:
              cpu: 8
              memory: 20Gi
!   - name: pull-kubernetes-cmd-canary
      cluster: eks-prow-build-cluster
      always_run: false # Only for canary!
      decorate: true
***************
*** 63,71 ****
          - name: KUBE_INTEGRATION_TEST_MAX_CONCURRENCY
            value: "8"
          - name: KUBE_TIMEOUT
!           value: "-timeout=1h30m"
          args:
!         - ./hack/jenkins/test-integration-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
--- 63,71 ----
          - name: KUBE_INTEGRATION_TEST_MAX_CONCURRENCY
            value: "8"
          - name: KUBE_TIMEOUT
!           value: "-timeout=30m"
          args:
!         - ./hack/jenkins/test-cmd-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
***************
*** 76,82 ****
            requests:
              cpu: 8
              memory: 20Gi
!   - name: pull-kubernetes-integration-go-compatibility
      cluster: k8s-infra-prow-build
      always_run: true
      decorate: true
--- 76,82 ----
            requests:
              cpu: 8
              memory: 20Gi
!   - name: pull-kubernetes-cmd-go-compatibility
      cluster: k8s-infra-prow-build
      always_run: true
      decorate: true
***************
*** 102,108 ****
          - name: KUBE_HACK_TOOLS_GOTOOLCHAIN
            value: auto
          args:
!         - ./hack/jenkins/test-integration-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
--- 102,108 ----
          - name: KUBE_HACK_TOOLS_GOTOOLCHAIN
            value: auto
          args:
!         - ./hack/jenkins/test-cmd-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
***************
*** 113,119 ****
            requests:
              cpu: 6
              memory: 15Gi
!   - name: pull-kubernetes-integration-go-canary
      cluster: k8s-infra-prow-build
      always_run: false
      skip_report: false
--- 113,119 ----
            requests:
              cpu: 6
              memory: 15Gi
!   - name: pull-kubernetes-cmd-go-canary
      cluster: k8s-infra-prow-build
      always_run: false
      skip_report: false
***************
*** 133,139 ****
          command:
          - runner.sh
          args:
!         - ./hack/jenkins/test-integration-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
--- 133,139 ----
          command:
          - runner.sh
          args:
!         - ./hack/jenkins/test-cmd-dockerized.sh
          # docker-in-docker needs privileged mode
          securityContext:
            privileged: true
***************
*** 147,153 ****
  periodics:
  - interval: 1h
    cluster: eks-prow-build-cluster
!   name: ci-kubernetes-integration-master
    decorate: true
    extra_refs:
    - org: kubernetes
--- 147,153 ----
  periodics:
  - interval: 1h
    cluster: eks-prow-build-cluster
!   name: ci-kubernetes-cmd-master
    decorate: true
    extra_refs:
    - org: kubernetes
***************
*** 161,176 ****
      fork-per-release: "true"
      fork-per-release-periodic-interval: 2h 2h 6h 24h
      testgrid-dashboards: sig-release-master-blocking
!     testgrid-tab-name: integration-master
      testgrid-alert-email: [email protected]
!     description: "Ends up running: make test-integration"
    spec:
      containers:
      - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20250212-16f67660c2-master
        command:
        - runner.sh
        args:
!       - ./hack/jenkins/test-integration-dockerized.sh
        env:
        - name: SHORT
          value: --short=false
--- 161,176 ----
      fork-per-release: "true"
      fork-per-release-periodic-interval: 2h 2h 6h 24h
      testgrid-dashboards: sig-release-master-blocking
!     testgrid-tab-name: cmd-master
      testgrid-alert-email: [email protected]
!     description: "Ends up running: make test-cmd"
    spec:
      containers:
      - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20250212-16f67660c2-master
        command:
        - runner.sh
        args:
!       - ./hack/jenkins/test-cmd-dockerized.sh
        env:
        - name: SHORT
          value: --short=false

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/config Issues or PRs related to code in /config area/jobs area/testgrid size/L Denotes a PR that changes 100-499 lines, ignoring generated files. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Feb 22, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pohly
Once this PR has been reviewed and has the lgtm label, please assign chases2 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

@pohly: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-test-infra-gubernator 28720ff link true /test pull-test-infra-gubernator

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config Issues or PRs related to code in /config area/jobs area/testgrid cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants