tektoncd/pipeline

Improve unit test coverage of caching implementation.

开放

#9,274 创建于 2025年12月31日

 (8 条评论) (0 个反应) (1 位负责人)Go (1,943 个派生)auto 404
area/testinghelp wantedkind/cleanupkind/tep

仓库指标

星标
 (9,013 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Unit Test Coverage

Ensure comprehensive unit test coverage for all resolver cache logic. Achieve near 100% test coverage on new cache-related code paths. Many tests are already implemented, so this one is more of a sanity check.

[Update 05.12]: Check if there are duplicated tests in any of the existing cache tests and remove those. And check if any of the existing tests are not testing actual behavior. Those can also be removed.

Areas to verify:

  • All cache operation paths in pkg/remoteresolution/resolver/framework/cache/
  • Cache mode resolution logic (parameter → ConfigMap → default hierarchy)
  • Cache key generation for different parameter types
  • Edge cases (empty cache, cache misses, eviction scenarios)
  • Concurrent access patterns

How to Contribute

Read the parent issue https://github.com/tektoncd/pipeline/issues/9228#issue-3725752696.

贡献者指南