Skip to content

Slow unit tests #37555

@howardjohn

Description

@howardjohn

The following tests take >1s:

  • TestReleaseOnCancellation_ConfigMaps 1.00s
  • TestReleaseOnCancellation_Endpoints 1.00s
  • TestReleaseOnCancellation_Leases 1.00s
  • TestTokenExchangePluginWithCache 1.00s
  • Test_tokenSupplier_GetRequestMetadata 1.00s
  • TestRunComponentsAfterStart/RunComponentAsyncAndWait 1.01s
  • TestSleepCheckInstall 1.01s
  • TestStsCache 1.01s
  • TestGetFederatedToken 1.02s
  • TestRunComponentsAfterStart 1.02s
  • TestGetCNIConfigFilepath 1.03s
  • TestSendPushesManyPushes 1.03s
  • TestClient 1.06s
  • TestStsFlow 1.06s
  • TestTrailingWhitespace 1.06s
  • TestLeaderElectionNoPermission 1.08s
  • TestSDS 1.08s
  • TestWorkloadAgentGenerateSecret/no_plugin 1.09s
  • TestAdsPushScoping/Add_an_unmatched_Sidecar_config 1.10s
  • TestAdsPushScoping/Add_a_unscopedname_not_match_service 1.10s
  • TestAdsPushScoping/Add_a_unscopedns_not_match_service 1.10s
  • TestAdsPushScoping/Add_destination_rule_to_an_unscoped_service 1.10s
  • TestAdsPushScoping/Add_instances_to_an_unscoped_service 1.10s
  • TestAdsPushScoping/Add_virtual_service_to_an_unscoped_service 1.10s
  • TestAdsPushScoping/Delete_destination_rule_of_a_unscoped_service 1.10s
  • TestAdsPushScoping/Delete_virtual_service_of_a_unscoped_service 1.10s
  • TestAdsPushScoping/Remove_a_unscopedname_not_match_service 1.10s
  • TestAdsPushScoping/Remove_a_unscopedns_not_match_service 1.10s
  • TestTokenExchangePlugin 1.15s
  • TestSidecarTemplate/sidecar_template 1.18s
  • TestStartEnvoyShouldSucceed 1.22s
  • TestInstallPackagePath/install_package_path#02 1.23s
  • TestJwtPubKeyRefreshWithNetworkError 1.25s
  • TestAgent/Token_exchange_with_credential_fetcher_downtime 1.32s
  • TestGetProxyServiceInstancesWithMultiIPsAndTargetPorts 1.32s
  • TestInstallPackagePath/install_package_path 1.36s
  • TestWorkloadAgentGenerateSecret 1.38s
  • TestScrtUpdated 1.40s
  • TestInstallPackagePath/install_package_path#01 1.41s
  • TestAutoregistrationLifecycle/garbage_collected_if_pilot_stops_after_disconnect 1.50s
  • TestNetworkUpdateTriggers 1.51s
  • TestCitadelClient 1.53s
  • TestCitadelClient/retry 1.53s
  • TestInstall 1.60s
  • TestHotRestart 1.62s
  • TestExtraConfigmap 1.63s
  • TestEds 1.81s
  • TestGenerateMutatingWebhook 1.85s
  • TestAutoregistrationLifecycle/garbage_collected_if_pilot_and_workload_stops_simultaneously_before_pilot_can_do_anything 2.00s
  • TestTcpEchoServer 2.00s
  • TestUpdateAll 2.00s
  • TestWaitCmd/case_0_x_wait_--generation=2_--timeout=2s_virtual-service_foo.default 2.00s
  • TestGoogleCASClient 2.01s
  • TestIstiodCipherSuites/client_and_istiod_cipher_suites_mismatch 2.01s
  • TestWaitCmd/case_4_x_wait_--timeout_2s_virtual-service_bar.default 2.02s
  • TestWasmHTTPFetch/download_retry 2.04s
  • TestConfigSelectors 2.12s
  • TestEndpointSliceFromMCSShouldBeIgnored 2.12s
  • TestCheckDuplicateCSR 2.50s
  • TestSignCSR 2.53s
  • TestIstiodCipherSuites/client_and_istiod_cipher_suites_match 2.54s
  • TestNewServer 2.62s
  • TestProxyCachedToken 2.76s
  • TestAddMeshConfigUpdate 2.92s
  • TestGatewayHostnames 3.00s
  • TestGatewayHostnames/re-resolve_after_TTL 3.00s
  • TestReadSignedCertificate 3.00s
  • TestGoogleCAClient 3.05s
  • TestWebhookSelector 3.18s
  • TestProxySTS 3.27s
  • TestIstiodCipherSuites/default_cipher_suites 3.29s
  • TestGenCertKeyFromOptions 3.51s
  • TestAutoregistrationLifecycle 4.01s
  • TestWaitCmd 4.03s
  • TestServerCachedToken 4.49s
  • TestServerShortLivedCachedToken 4.55s
  • TestK8sSign 5.00s
  • TestWasmCache/download_failure 5.41s
  • TestWasmCache 5.46s
  • TestAgent 5.74s
  • TestWasmHTTPFetch/download_max_retry 6.02s
  • TestRenewToken 7.64s
  • TestIstiodCipherSuites 7.84s
  • TestWasmHTTPFetch 8.07s
  • TestTokenFetchFailureTwo 11.02s
  • TestTokenFetchFailureOne 11.06s
  • TestAdsPushScoping 12.46s https://github.com/istio/istio/pull/37572/files
  • TestTokenFetchTimeoutTwo 14.02s
  • TestTokenFetchTimeoutOne 14.05s
  • TestK8sSignWithMeshConfig 25.01s Speed up TestK8sSignWithMeshConfig #37640

These should be optimized.

It is recommended to run https://github.com/istio/istio/wiki/Test-Flakes#reproducing-test-flakes locally before fixing anything to ensure that changes (such as lowering timeouts, etc) do not make things flaky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates a PR/Issue that needs community helplifecycle/staleproofIndicates a PR or issue has been deemed to be immune from becoming stale and/or automatically closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions