Skip to content

integration: initialize SearchDepth and Attributes in testGetServices diagnostic query (#9485) - #9518

Open
SHIVANSH-ux-ys wants to merge 1 commit into
jaegertracing:mainfrom
SHIVANSH-ux-ys:fix-9485-testGetServices-diagnostic-query
Open

integration: initialize SearchDepth and Attributes in testGetServices diagnostic query (#9485)#9518
SHIVANSH-ux-ys wants to merge 1 commit into
jaegertracing:mainfrom
SHIVANSH-ux-ys:fix-9485-testGetServices-diagnostic-query

Conversation

@SHIVANSH-ux-ys

@SHIVANSH-ux-ys SHIVANSH-ux-ys commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Which problem is this PR solving?

Description of the changes

  • Initialized SearchDepth: 100 and Attributes: pcommon.NewMap() on tracestore.TraceQueryParams in testGetServices diagnostic query (internal/storage/integration/integration.go).
  • Prevents testGetServices from panicking due to nil pointer dereference on uninitialized Attributes when logging unexpected storage services.

How was this change tested?

  • Ran STORAGE=memory go test -v -run TestMemoryStorage ./internal/storage/integration.

Checklist

AI Usage in this PR

  • Light: AI provided minor assistance

@SHIVANSH-ux-ys
SHIVANSH-ux-ys requested a review from a team as a code owner September 9, 2026 04:05
… diagnostic query (jaegertracing#9485)

Signed-off-by: SHIVANSH-ux-ys <singaser78@gmail.com>
@SHIVANSH-ux-ys
SHIVANSH-ux-ys force-pushed the fix-9485-testGetServices-diagnostic-query branch from 93103ab to 61dfa5f Compare September 9, 2026 04:07
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.56%. Comparing base (e2cb556) to head (61dfa5f).
⚠️ Report is 46 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9518      +/-   ##
==========================================
+ Coverage   97.96%   98.56%   +0.60%     
==========================================
  Files         388      392       +4     
  Lines       20846    18374    -2472     
==========================================
- Hits        20422    18111    -2311     
+ Misses        286      263      -23     
+ Partials      138        0     -138     
Flag Coverage Δ
badger_direct 7.44% <ø> (+0.35%) ⬆️
badger_e2e 12.18% <ø> (+0.81%) ⬆️
cassandra-4.x-direct-manual 12.10% <ø> (+0.65%) ⬆️
cassandra-4.x-e2e-auto 18.52% <ø> (+1.31%) ⬆️
cassandra-4.x-e2e-manual 18.52% <ø> (+1.31%) ⬆️
cassandra-5.x-direct-manual 12.10% <ø> (+0.65%) ⬆️
cassandra-5.x-e2e-auto 18.52% <ø> (+1.31%) ⬆️
cassandra-5.x-e2e-manual 18.52% <ø> (+1.31%) ⬆️
clickhouse-direct 7.97% <ø> (+0.84%) ⬆️
clickhouse-e2e 14.05% <ø> (+1.40%) ⬆️
elasticsearch-7.x-direct 24.78% <ø> (+1.62%) ⬆️
elasticsearch-8.x-direct 24.82% <ø> (+1.64%) ⬆️
elasticsearch-8.x-e2e 23.44% <ø> (+2.86%) ⬆️
elasticsearch-9.x-direct 24.82% <ø> (+1.64%) ⬆️
elasticsearch-9.x-e2e 23.44% <ø> (+2.86%) ⬆️
grpc_direct 7.13% <ø> (+0.68%) ⬆️
grpc_e2e 13.35% <ø> (+1.16%) ⬆️
kafka-3.x-v2 24.21% <ø> (+3.01%) ⬆️
memory_v2 16.63% <ø> (+1.97%) ⬆️
opensearch-1.x-direct 24.78% <ø> (+1.60%) ⬆️
opensearch-2.x-direct 24.78% <ø> (+1.60%) ⬆️
opensearch-2.x-e2e 23.44% <ø> (+2.85%) ⬆️
opensearch-3.x-direct 24.78% <ø> (+1.60%) ⬆️
opensearch-3.x-e2e 23.44% <ø> (?)
query 13.30% <ø> (+1.18%) ⬆️
tailsampling-processor 7.04% <ø> (+0.58%) ⬆️
unittests 97.44% <ø> (+0.66%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

CI Summary Report

Metrics Comparison

⚠️ 4 metric change(s) detected (informational)

View changed metrics

For label-level diff details, open the CI run and expand the "Compare metrics and generate summary" step logs.

metrics_snapshot_kafka_v2⬇️ download diff
4 modified

  • otelcol_kafka_exporter_bytes
  • otelcol_kafka_exporter_bytes_uncompressed
  • otelcol_kafka_exporter_messages
  • otelcol_kafka_exporter_records

Code Coverage

✅ Coverage 98.7% (baseline 98.7%)

➡️ View CI run | View publish logs
2026-09-09 04:33:34 UTC

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.

[Bug]: testGetServices panics instead of logging unexpected services because its diagnostic query omits Attributes

1 participant