acoustic-carpenter-78188
06/11/2026, 5:12 PMmain is red: the test (flytestdlib) job fails to build (run).
#7402 migrated the autorefresh caches from the deprecated workqueue.RateLimiter to workqueue.TypedRateLimiter[*Batch], but TestEnqueueBatches_MarksSingleItemBatchHead (added concurrently in another PR) still constructs the untyped workqueue.DefaultControllerRateLimiter(). Both PRs passed CI individually; the combination broke the build of flytestdlib/autorefreshcache and `flytestdlib/cache`:
flytestdlib/autorefreshcache/auto_refresh_test.go:291:63: cannot use rateLimiter (variable of interface type workqueue.RateLimiter) as workqueue.TypedRateLimiter[*Batch] value in argument to newAutoRefreshCacheWithClock
flytestdlib/cache/in_memory_auto_refresh_test.go:352:61: cannot use rateLimiter (variable of interface type workqueue.RateLimiter) as workqueue.TypedRateLimiter[*Batch] value in argument to NewInMemoryAutoRefresh
What changes were proposed in this pull request?
Use workqueue.DefaultTypedControllerRateLimiter[*Batch]() in the two missed test call sites, matching the migration #7402 applied to every other call site in these files. No production code changes.
How was this patch tested?
go test ./flytestdlib/autorefreshcache/... ./flytestdlib/cache/...
ok github.com/flyteorg/flyte/v2/flytestdlib/autorefreshcache 0.406s
ok github.com/flyteorg/flyte/v2/flytestdlib/cache 0.672s
TestEnqueueBatches_MarksSingleItemBatchHead passes in both packages, and a repo-wide grep confirms no remaining deprecated `DefaultControllerRateLimiter`/`RateLimiter` usages.
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
flyteorg/flyteacoustic-carpenter-78188
06/11/2026, 5:17 PM