Skip to content

Conversation

mahadzaryab1
Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 commented Feb 11, 2025

Which problem is this PR solving?

Description of the changes

  • This is a prequel to [storage] Change storage extension to hold v2 factories #6699. This PR refactors v1adapter.Factory to conditionally propagate the implementations of storage.Purger and storage.SamplingStoreFactory. Without this change, the implementation of the aforementioned interfaces get lost when we wrap a v1 storage.Factory into the adapter..

How was this change tested?

  • Added unit tests

Checklist

Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.99%. Comparing base (74793b4) to head (acb71f9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6710      +/-   ##
==========================================
- Coverage   95.99%   95.99%   -0.01%     
==========================================
  Files         363      363              
  Lines       20568    20591      +23     
==========================================
+ Hits        19745    19766      +21     
- Misses        628      631       +3     
+ Partials      195      194       -1     
Flag Coverage Δ
badger_v1 9.80% <0.00%> (-0.03%) ⬇️
badger_v2 1.81% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.76% <0.00%> (-0.04%) ⬇️
cassandra-4.x-v2-auto 1.80% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.80% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.76% <0.00%> (-0.04%) ⬇️
cassandra-5.x-v2-auto 1.80% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.80% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 19.08% <0.00%> (-0.05%) ⬇️
elasticsearch-7.x-v1 19.16% <0.00%> (-0.05%) ⬇️
elasticsearch-8.x-v1 19.33% <0.00%> (-0.05%) ⬇️
elasticsearch-8.x-v2 1.81% <0.00%> (-0.01%) ⬇️
grpc_v1 10.77% <0.00%> (-0.03%) ⬇️
grpc_v2 7.78% <0.00%> (-0.02%) ⬇️
kafka-3.x-v1 10.09% <0.00%> (-0.03%) ⬇️
kafka-3.x-v2 1.81% <0.00%> (-0.01%) ⬇️
memory_v2 1.81% <0.00%> (-0.01%) ⬇️
opensearch-1.x-v1 19.21% <0.00%> (-0.05%) ⬇️
opensearch-2.x-v1 19.21% <0.00%> (-0.05%) ⬇️
opensearch-2.x-v2 1.81% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.48% <0.00%> (-0.01%) ⬇️
unittests 94.87% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
@mahadzaryab1 mahadzaryab1 changed the title [WIP] Conditionally implement interfaces in v1adapter factory [refactor] Conditionally implement interfaces in v1adapter factory Feb 12, 2025
@mahadzaryab1 mahadzaryab1 marked this pull request as ready for review February 12, 2025 02:00
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner February 12, 2025 02:00
@dosubot dosubot bot added the area/storage label Feb 12, 2025
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
@mahadzaryab1 mahadzaryab1 enabled auto-merge (squash) February 12, 2025 02:08
@mahadzaryab1 mahadzaryab1 merged commit fbdd15f into jaegertracing:main Feb 12, 2025
55 checks passed
@mahadzaryab1 mahadzaryab1 deleted the factory-interfaces branch February 12, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants