Skip to content

MOB-53647 Aggregator: skip labels without dash in extend-aggregation - #2021

Closed
devership16 wants to merge 2 commits into
masterfrom
MOB-53647_eft_bug_fix
Closed

MOB-53647 Aggregator: skip labels without dash in extend-aggregation#2021
devership16 wants to merge 2 commits into
masterfrom
MOB-53647_eft_bug_fix

Conversation

@devership16

Copy link
Copy Markdown
Collaborator

Summary

  • Defensive fix in __extend_reported_data: skip labels without - separator instead of crashing with ValueError: substring not found
  • When extend-aggregation: true is injected by the BZM backend, labels without a -state suffix (e.g. selenium test labels like test_index) caused key.rindex('-') to crash taurus

Root Cause

isTransactionFilterAllowed() (a.blazemeter.com) was broadened to include selenium executors, which set hasTransactionsFilter = trueTaurusExecutorConfiguration injected extend-aggregation: trueConsolidatingAggregator.__extend_reported_data() crashed on labels without -.

Companion PHP fix: Blazemeter/a.blazemeter.com (narrows isTransactionFilterAllowed() to BBT-only selenium).

Test plan

  • test_extend_data_labels_without_dash — new unit test for labels without -
  • test_extend_data and test_extend_data_avg — existing tests still pass

🤖 Generated with Claude Code

Guard __extend_reported_data against labels that lack a '-state' suffix.
When extend-aggregation is true and a label has no dash, key.rindex('-')
raises ValueError crashing taurus. This defensive fix skips such labels.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@devership16
devership16 requested review from henrychv and pjain05 and a balanced review from Copilot September 2, 2026 10:19
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.19%. Comparing base (806cb89) to head (7cabd23).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2021      +/-   ##
==========================================
+ Coverage   88.19%   88.19%   +0.01%     
==========================================
  Files          75       75              
  Lines       21162    21164       +2     
==========================================
+ Hits        18661    18663       +2     
  Misses       2501     2501              

☔ 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Skipped labels can cause existing overall KPI data to be silently erased.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Prevents extended aggregation from crashing on labels without state suffixes.

Changes:

  • Skips labels lacking -.
  • Adds regression coverage for undashed labels.
File summaries
File Description
bzt/modules/aggregator.py Adds defensive label handling.
tests/unit/modules/test_consolidatingAggregator.py Adds regression test.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread bzt/modules/aggregator.py
Comment thread tests/unit/modules/test_consolidatingAggregator.py Outdated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@devership16 devership16 closed this Sep 2, 2026
@devership16
devership16 deleted the MOB-53647_eft_bug_fix branch September 2, 2026 11:04
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.

3 participants