• Kubernetes Submit Queue's avatar
    Merge pull request #47645 from jsafrane/integration-test-speedup · d19a2841
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
    
    Speed up attach/detach controller integration tests
    
    Internal attach/detach controller timers should be configurable and tests should use much shorter values.
    
    `reconcilerSyncDuration` is deliberately left out of `TimerConfig` because it's the only one that's not a constant one, it's configurable by user.
    
    Fixes #47129 
    
    Before:
    ```
    --- PASS: TestPodDeletionWithDswp (63.21s)
    --- PASS: TestPodUpdateWithWithADC (13.68s)
    --- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (13.55s)
    --- PASS: TestPodAddedByDswp (183.01s)
    --- PASS: TestPersistentVolumeRecycler (12.55s)
    --- PASS: TestPersistentVolumeDeleter (12.54s)
    --- PASS: TestPersistentVolumeBindRace (3.51s)
    --- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
    --- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.54s)
    --- PASS: TestPersistentVolumeMultiPVs (3.05s)
    --- PASS: TestPersistentVolumeMultiPVsPVCs (4.36s)
    --- PASS: TestPersistentVolumeControllerStartup (7.29s)
    --- PASS: TestPersistentVolumeProvisionMultiPVCs (5.02s)
    --- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
    ok  	k8s.io/kubernetes/test/integration/volume	359.727s
    ```
    
    After:
    ```
    --- PASS: TestPodDeletionWithDswp (3.71s)
    --- PASS: TestPodUpdateWithWithADC (3.63s)
    --- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (3.70s)
    --- PASS: TestPodAddedByDswp (5.68s)
    --- PASS: TestPersistentVolumeRecycler (12.54s)
    --- PASS: TestPersistentVolumeDeleter (12.55s)
    --- PASS: TestPersistentVolumeBindRace (3.55s)
    --- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
    --- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.52s)
    --- PASS: TestPersistentVolumeMultiPVs (3.98s)
    --- PASS: TestPersistentVolumeMultiPVsPVCs (3.85s)
    --- PASS: TestPersistentVolumeControllerStartup (7.18s)
    --- PASS: TestPersistentVolumeProvisionMultiPVCs (5.23s)
    --- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
    ok  	k8s.io/kubernetes/test/integration/volume	103.267s
    ```
    
    PV controller tests are the slowest ones now.
    
    @kubernetes/sig-storage-pr-reviews 
    /assign @gnufied 
    
    ```release-note
    NONE
    ```
    d19a2841
Name
Last commit
Last update
..
bootstrap Loading commit data...
certificates Loading commit data...
cloud Loading commit data...
cronjob Loading commit data...
daemon Loading commit data...
deployment Loading commit data...
disruption Loading commit data...
endpoint Loading commit data...
garbagecollector Loading commit data...
history Loading commit data...
job Loading commit data...
namespace Loading commit data...
node Loading commit data...
podautoscaler Loading commit data...
podgc Loading commit data...
replicaset Loading commit data...
replication Loading commit data...
resourcequota Loading commit data...
route Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
statefulset Loading commit data...
ttl Loading commit data...
volume Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
client_builder.go Loading commit data...
controller_ref_manager.go Loading commit data...
controller_ref_manager_test.go Loading commit data...
controller_utils.go Loading commit data...
controller_utils_test.go Loading commit data...
doc.go Loading commit data...
lookup_cache.go Loading commit data...