kubernetes-sigs / cli-utils

This repo contains binaries that built from libraries in cli-runtime.
Apache License 2.0
154 stars 77 forks source link

chore: add stress test #565

Closed karlkfi closed 2 years ago

karlkfi commented 2 years ago

Use make test-stress to run the stress test. Takes ~15m on my machine (Apply + Destroy).

Liujingfang1 commented 2 years ago

There is a merge conflict.

karlkfi commented 2 years ago

Weird... those pass locally.

E0311 01:23:04.735548   10292 task.go:263] Unknown object UID from ResourceCache (status: InProgress): default_foo_apps_Deployment
E0311 01:23:15.076888   10292 task.go:263] Unknown object UID from ResourceCache (status: InProgress): default_foo_apps_Deployment
E0311 01:23:15.077201   10292 task.go:263] Unknown object UID from ResourceCache (status: InProgress): default_secret__Secret
--- FAIL: TestApplier (11.13s)
    --- FAIL: TestApplier/apply_resource_with_existing_object_belonging_to_different_inventory (0.08s)
        applier_test.go:1499: Expected status event not received: &testutil.ExpStatusEvent{Identifier:object.ObjMetadata{Namespace:"default", Name:"foo", GroupKind:schema.GroupKind{Group:"apps", Kind:"Deployment"}}, Status:"Current", Error:error(nil)}
FAIL
coverage: 72.3% of statements
FAIL    sigs.k8s.io/cli-utils/pkg/apply 15.9[97](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cli-utils/565/cli-utils-presubmit-master/1502092437772832768#1:build-log.txt%3A97)s

/test cli-utils-presubmit-master

Liujingfang1 commented 2 years ago

Thank you for adding more tests!

/lgtm /approve

k8s-ci-robot commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: karlkfi, Liujingfang1

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

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes-sigs/cli-utils/blob/master/OWNERS)~~ [Liujingfang1] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment