Skip to content

Conversation

twoGiants
Copy link
Member

Changes

This PR takes the state of PR #8825, starting from commit f817655 (actually 087c5a5 but the first is the big important one) and adds the re-work from the second review of @twoGiants on top of it.

All resolved comments are marked with a 👍 and a "resolved" comment.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • pre-commit Passed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

brianwcook and others added 6 commits August 4, 2025 13:28
This commit adds caching for bundle and git resolvers to reduce
chances of being rate limited by registries and git forges.

- Add cache interface and in-memory implementation
- Add cache configuration options to docs
- Add a simple 'always on or off' option for cluster resolver
- Add documentation for cache configuration

Signed-off-by: Brian Cook <[email protected]>
- Remove dead GetGlobalCache function and globalCache variable
- Update tests to use dependency injection cache instead of global cache
- Add cache clearing in test setup to ensure test isolation
- Fix all GetGlobalCache references in cache_test.go and resolver tests

This resolves the shared cache state issue that was causing e2e test
failures (TestPropagatedParams, TestLargerResultsSidecarLogs) by ensuring
each test gets a clean cache state.
Summary:
- changed year in new files to 2025
- change `key` to package scope
- change constants to package scope
- remove err from GenerateCacheKey
- remove error return from GenerateCacheKey
  - => now many tests and code is broken
- revert `BundleResolverName` removal
- revert rename to resolver_test.go
- remove commented test
- simplify if condition

Signed-off-by: Stanislav Jakuschevskij <[email protected]>
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Sep 30, 2025
@tekton-robot tekton-robot requested a review from jerop September 30, 2025 14:11
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign jeromeju after the PR has been reviewed.
You can assign the PR to them by writing /assign @jeromeju in a comment when ready.

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

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

linux-foundation-easycla bot commented Sep 30, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Sep 30, 2025
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/remoteresolution/cache/injection/cache.go Do not exist 0.0%
pkg/remoteresolution/resolver/framework/cache.go Do not exist 0.0%
pkg/remoteresolution/resolver/framework/reconciler.go 75.3% 73.8% -1.6
pkg/remoteresolution/resolver/http/resolver.go 88.9% 100.0% 11.1
pkg/resolution/resolver/bundle/bundle.go 71.1% 71.4% 0.4
pkg/resolution/resolver/bundle/params.go 87.9% 86.1% -1.8
pkg/resolution/resolver/cluster/resolver.go 80.4% 79.9% -0.6
pkg/resolution/resolver/git/resolver.go 84.9% 84.3% -0.6

@waveywaves
Copy link
Member

waveywaves commented Sep 30, 2025

@twoGiants I have been updating the original PR

@waveywaves
Copy link
Member

I will contribute here instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesnt merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

4 participants