Skip to content

LCORE-1249: enhanced existing DB benchmarks to run against small DB#1116

Merged
tisnik merged 1 commit intolightspeed-core:mainfrom
tisnik:lcore-1249-tests-for-small-db
Feb 8, 2026
Merged

LCORE-1249: enhanced existing DB benchmarks to run against small DB#1116
tisnik merged 1 commit intolightspeed-core:mainfrom
tisnik:lcore-1249-tests-for-small-db

Conversation

@tisnik
Copy link
Contributor

@tisnik tisnik commented Feb 8, 2026

Description

LCORE-1249: enhanced existing DB benchmarks to run against small DB

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

  • Assisted-by: N/A
  • Generated by: N/A

Related Tickets & Documents

  • Related Issue #LCORE-1249

Summary by CodeRabbit

  • Tests
    • Enhanced benchmark test coverage for database operations across multiple database size scenarios (empty, small, and larger datasets).

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 8, 2026

Walkthrough

The benchmark test module is restructured to differentiate database size scenarios. Existing small-database tests are renamed to empty-database tests, and new small-database tests are introduced using a newly defined constant. This expands coverage across store, update, and list operations with empty and small database variants.

Changes

Cohort / File(s) Summary
Benchmark Test Restructuring
tests/benchmarks/test_app_database.py
Introduced SMALL_DB_RECORDS_COUNT constant and expanded test coverage by renaming existing tests to *_empty_db variants and adding corresponding *_small_db tests for store, update, and list operations. Updated docstrings to document empty, small, middle, and large benchmark targets.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: enhancing existing database benchmarks to support small DB scenarios alongside empty DB scenarios.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
tests/benchmarks/test_app_database.py (1)

252-266: Docstring for update_user_conversation has an inaccurate parameter description.

The docstring says id (Optional[str]): Optional explicit ID … but the signature declares id: str (required, not optional). This is pre-existing, but since you're touching adjacent code, a quick fixup would be nice.

📝 Suggested docstring fix
-        id (Optional[str]): Optional explicit ID to assign to the new conversation.
-            If not provided, a generated suid will be used.
+        id (str): ID of the existing conversation to update.

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@tisnik tisnik force-pushed the lcore-1249-tests-for-small-db branch from f07e179 to c269e46 Compare February 8, 2026 08:59
@tisnik
Copy link
Contributor Author

tisnik commented Feb 8, 2026

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 8, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tisnik tisnik merged commit 139c0c0 into lightspeed-core:main Feb 8, 2026
21 of 22 checks passed
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.

1 participant