Skip to content

Conversation

@mahadzaryab1
Copy link
Collaborator

Which problem is this PR solving?

Description of the changes

How was this change tested?

  • CI

Checklist

Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
@mahadzaryab1 mahadzaryab1 added the changelog:experimental Change to an experimental part of the code label Jan 12, 2026
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner January 12, 2026 00:27
@dosubot dosubot bot added the area/storage label Jan 12, 2026
@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.47%. Comparing base (2eb6685) to head (32d7039).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7865      +/-   ##
==========================================
- Coverage   95.49%   95.47%   -0.02%     
==========================================
  Files         305      305              
  Lines       16174    16192      +18     
==========================================
+ Hits        15445    15460      +15     
- Misses        571      573       +2     
- Partials      158      159       +1     
Flag Coverage Δ
badger_v1 9.22% <ø> (+0.02%) ⬆️
badger_v2 1.93% <ø> (-0.01%) ⬇️
cassandra-4.x-v1-manual 13.64% <ø> (+0.05%) ⬆️
cassandra-4.x-v2-auto 1.92% <ø> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.92% <ø> (-0.01%) ⬇️
cassandra-5.x-v1-manual 13.64% <ø> (+0.05%) ⬆️
cassandra-5.x-v2-auto 1.92% <ø> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.92% <ø> (-0.01%) ⬇️
clickhouse 1.98% <ø> (-0.01%) ⬇️
elasticsearch-6.x-v1 17.61% <ø> (+0.06%) ⬆️
elasticsearch-7.x-v1 17.64% <ø> (+0.06%) ⬆️
elasticsearch-8.x-v1 17.79% <ø> (+0.06%) ⬆️
elasticsearch-8.x-v2 1.93% <ø> (-0.01%) ⬇️
elasticsearch-9.x-v2 1.93% <ø> (-0.01%) ⬇️
grpc_v1 8.61% <ø> (-0.25%) ⬇️
grpc_v2 1.93% <ø> (-0.01%) ⬇️
kafka-3.x-v2 2.04% <ø> (+0.10%) ⬆️
memory_v2 1.93% <ø> (-0.01%) ⬇️
opensearch-1.x-v1 17.68% <ø> (+0.06%) ⬆️
opensearch-2.x-v1 17.68% <ø> (+0.06%) ⬆️
opensearch-2.x-v2 1.93% <ø> (-0.01%) ⬇️
opensearch-3.x-v2 1.93% <ø> (-0.01%) ⬇️
query 1.93% <ø> (-0.01%) ⬇️
tailsampling-processor 0.55% <ø> (-0.01%) ⬇️
unittests 94.13% <ø> (-0.02%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link

github-actions bot commented Jan 12, 2026

Metrics Comparison Summary

Total changes across all snapshots: 0

Detailed changes per snapshot

summary_metrics_snapshot_cassandra

📊 Metrics Diff Summary

Total Changes: 0

  • 🆕 Added: 0 metrics
  • ❌ Removed: 0 metrics
  • 🔄 Modified: 0 metrics
  • 🚫 Excluded: 106 metrics

summary_metrics_snapshot_cassandra

📊 Metrics Diff Summary

Total Changes: 0

  • 🆕 Added: 0 metrics
  • ❌ Removed: 0 metrics
  • 🔄 Modified: 0 metrics
  • 🚫 Excluded: 106 metrics

summary_metrics_snapshot_cassandra

📊 Metrics Diff Summary

Total Changes: 0

  • 🆕 Added: 0 metrics
  • ❌ Removed: 0 metrics
  • 🔄 Modified: 0 metrics
  • 🚫 Excluded: 106 metrics

summary_metrics_snapshot_cassandra

📊 Metrics Diff Summary

Total Changes: 0

  • 🆕 Added: 0 metrics
  • ❌ Removed: 0 metrics
  • 🔄 Modified: 0 metrics
  • 🚫 Excluded: 53 metrics

➡️ View full metrics file

Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Copilot AI review requested due to automatic review settings January 17, 2026 15:07
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the snapshot testing infrastructure for ClickHouse tracestore unit tests to support multiple queries per test. The change modifies the verifyQuerySnapshot function to accept variadic query parameters and updates the snapshot file naming convention to include a sequential index suffix.

Changes:

  • Modified verifyQuerySnapshot function to accept multiple queries via variadic parameters
  • Updated snapshot file naming to include a _1, _2, etc. suffix indicating query execution order
  • Regenerated all existing snapshot files with the new _1 suffix to maintain compatibility

Reviewed changes

Copilot reviewed 1 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/storage/v2/clickhouse/tracestore/driver_test.go Updated verifyQuerySnapshot function to handle multiple queries with indexed filenames, added comprehensive documentation
internal/storage/v2/clickhouse/tracestore/snapshots/TestWriter_Success_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestGetTraces_Success/single_span_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestGetTraces_Success/multiple_spans_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestGetServices/successfully_returns_services_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestGetOperations/successfully_returns_operations_for_all_kinds_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestGetOperations/successfully_returns_operations_by_kind_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestFindTraces_WithFilters_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestFindTraces_Success/single_span_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestFindTraces_Success/multiple_spans_1.sql Regenerated snapshot file with new naming convention (_1 suffix)
internal/storage/v2/clickhouse/tracestore/snapshots/TestFindTraceIDs_1.sql Regenerated snapshot file with new naming convention (_1 suffix)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mahadzaryab1 mahadzaryab1 added this pull request to the merge queue Jan 17, 2026
Merged via the queue into jaegertracing:main with commit afdf1c3 Jan 17, 2026
60 checks passed
Manik2708 pushed a commit to Manik2708/jaeger that referenced this pull request Jan 20, 2026
…eries (jaegertracing#7865)

## Which problem is this PR solving?
- Towards jaegertracing#7134 

## Description of the changes
- This is a follow-up to
jaegertracing#7839 to have the snapshot
testing handle multiple queries executed within a single test in
preparation for jaegertracing#7839. The snapshot files will now be indexed to see the
order in which the queries were executed.

## How was this change tested?
- CI

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

---------

Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/storage changelog:experimental Change to an experimental part of the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants