Skip to content

Verify genome cache LRU eviction order - #1368

Open
simplyshree wants to merge 1 commit into
malariagen:masterfrom
simplyshree:test/1244-lru-cache-order
Open

simplyshree wants to merge 1 commit into
malariagen:masterfrom
simplyshree:test/1244-lru-cache-order

Conversation

@simplyshree

@simplyshree simplyshree commented Oct 25, 2026 •

Copy link
Copy Markdown

Summary

Adds regression coverage for true LRU access ordering in Annotator._load_genome_seq. The test confirms that re-accessing chr1 keeps it cached while chr2 is evicted after loading chr3 with a cache size of 2.

Verification

  • ruff check tests/test_veff.py
  • python -m compileall -q tests/test_veff.py

Closes #1244

@simplyshree

simplyshree commented Oct 25, 2026 •

Copy link
Copy Markdown
Author

@jonbrenas, @tristanpwdennis could you please review this focused test addition for issue #1244? It verifies that _load_genome_seq retains the recently used chromosome and evicts the least recently used one.

@simplyshree simplyshree changed the title test: verify genome cache LRU eviction order Verify genome cache LRU eviction order Oct 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve LRU cache test coverage by validating eviction order in load_genome_seq (test_veff.py)

1 participant