Skip to content

docs(benchmark): point the adapter tests link at a revision that has them - #1100

Merged
matthyx merged 1 commit into
kubescape:mainfrom
VISHNU0906:docs/1099-ttlcache-tests-link
Nov 16, 2026
Merged

matthyx merged 1 commit into
kubescape:mainfrom
VISHNU0906:docs/1099-ttlcache-tests-link

Conversation

@VISHNU0906

@VISHNU0906 VISHNU0906 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Overview

The "Adapter behavior tests" link in benchmark/ttlcache-expiration.md was pinned to 349273d, which is older than TestSetReclaimsOneExpiredEntry and TestRenewalChangesExpirationOrder. This points it at 7d71f56 (the merge of #1098), where both tests exist. The other links to 349273d point at the original evaluation and methodology docs, so I left them as they are.

How to Test

Open the updated link and check that cache_test.go at that revision has both tests (lines 151 and 171).

Related issues

Fixes #1099

cc @matthyx

Summary by CodeRabbit

  • Documentation
    • Updated the cited behavior-test link to reference a newer revision. The adapter description and the documented behavior remain unchanged.

…them

The Adapter behavior tests link in benchmark/ttlcache-expiration.md
pinned 349273d, which predates TestSetReclaimsOneExpiredEntry and
TestRenewalChangesExpirationOrder. Point it at 7d71f56, the merge of
the adapter change, which contains both tests.

Signed-off-by: KVR Vishnu <46535652+VISHNU0906@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The TTL expiration benchmark documentation now links to commit 7d71f56924b18bf00884fa7798b6090b5323e737 for the adapter behavior tests. The surrounding description is unchanged.

Changes: Benchmark documentation

Layer / File(s) Summary
Update the behavior-test link
benchmark/ttlcache-expiration.md
The link now points to commit 7d71f56924b18bf00884fa7798b6090b5323e737.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: anamasgard

Merge Risk: Minimal · up to ed7e2

This updates a documentation link to point at a revision containing the cited adapter behavior tests. It has no production impact and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says the PR points the adapter tests link at a revision that contains those tests. The raw summary confirms that the only change in benchmark/ttlcache-expiration.md is the test link's commit…
Linked Issues check Passed [#1099] requires the "Adapter behavior tests" link in benchmark/ttlcache-expiration.md to point to a revision that contains TestSetReclaimsOneExpiredEntry and TestRenewalChangesExpirationOrder. At hea…
Out of Scope Changes check Passed The whole-PR change is a single-line edit in benchmark/ttlcache-expiration.md that replaces the commit in one link (349273d to 7d71f56). This edit directly implements #1099. The head file still link…
Full details: Title check

Explanation

The title says the PR points the adapter tests link at a revision that contains those tests. The raw summary confirms that the only change in benchmark/ttlcache-expiration.md is the test link's commit hash, moved from 349273d to 7d71f56. The PR objectives say this new revision is the merge of #1098 and contains TestSetReclaimsOneExpiredEntry and TestRenewalChangesExpirationOrder, which matches the title's purpose. The title is specific and describes the single change. Its 'docs(benchmark):' prefix is a conventional-commit style scope and does not affect the assessment.

Full details: Linked Issues check

Explanation

[#1099] requires the "Adapter behavior tests" link in benchmark/ttlcache-expiration.md to point to a revision that contains TestSetReclaimsOneExpiredEntry and TestRenewalChangesExpirationOrder. At head, that link targets commit 7d71f56 at internal/ttlcache/cache_test.go. Reading that path at the merge base (7d71f56, the same commit) shows both test functions present. The file read did not report line numbers, so the claimed lines 151 and 171 were not verified exactly. The requirement is a revision that contains the tests, and that is met. The whole-PR diff tool was unavailable. The check relies on the head file read and the supplied change summary (+1/-1 in one file), which is consistent with the head content. This is a non-coding documentation link fix, so the coding requirement is satisfied only by the link target containing the required tests, which it does.

Full details: Out of Scope Changes check

Explanation

The whole-PR change is a single-line edit in benchmark/ttlcache-expiration.md that replaces the commit in one link (349273d to 7d71f56). This edit directly implements #1099. The head file still links other evidence to 349273d (the original evaluation, process-tree constructor, and methodology links), which matches the PR description's stated intent to leave those unchanged. No unrelated files or hunks were identified in the supplied summary. The diff tool was unavailable, so completeness relies on the supplied summary of +1/-1.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: da062c26-39e0-483e-8d02-47bea934a6e9
Commits

Reviewing files that changed from the base of the PR and between 7d71f56 and ed7e280.

Files selected for processing: 1

  • benchmark/ttlcache-expiration.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@matthyx matthyx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head ed7e2804602e2b423880643ea6e330fed9e1d32d against main at 7d71f56924b18bf00884fa7798b6090b5323e737.

This change is needed for #1099: the previous link target 349273dd does not contain TestSetReclaimsOneExpiredEntry or TestRenewalChangesExpirationOrder; the new target contains both (verified in internal/ttlcache/cache_test.go). The diff changes only this benchmark documentation link and does not affect runtime behavior.

History: the stale-link concern originated as an inline CodeRabbit comment on merged #1098 and is tracked by #1099. Related #1018/#1098 discussions raised performance and workload blockers for the experimental cache; those were addressed before merge, and production remains on Hashicorp, so those findings do not block this documentation-only correction. Searches for TTL-cache/expiration PRs and issues found #1018, #1098, #1099, and #1014; indexed search is bounded and not exhaustive. No duplicate or superseding fix was found.

No blockers or nonblocking follow-ups remain for this PR. All checks passed, including the gated Go build/unit workflow, component-test matrix, benchmark, CodeQL, CodeRabbit, DCO, and GitGuardian. The test target was verified directly; no separate local test run was needed for this link-only change.

Verdict: Approve.

@matthyx
matthyx merged commit 3990222 into kubescape:main Nov 16, 2026
39 checks passed
@matthyx matthyx moved this to To Archive in KS PRs tracking Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Archive

Development

Successfully merging this pull request may close these issues.

Correct the TTL expiration benchmark test link

2 participants