Skip to content

Add direct coverage tests for Hashtable.D2.Entry#11794

Open
dougqh wants to merge 1 commit into
masterfrom
dougqh/coverage-fix-d2-entry
Open

Add direct coverage tests for Hashtable.D2.Entry#11794
dougqh wants to merge 1 commit into
masterfrom
dougqh/coverage-fix-d2-entry

Conversation

@dougqh

@dougqh dougqh commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What This Does

  • Adds direct tests for D2.Entry.matches() (true and false branches) and D2.Entry.hash() to HashtableD2Test
  • The existing D2 operation tests call matches() indirectly, but the false branch is not guaranteed to fire since different key pairs typically hash to different buckets

Motivation

Code coverage

tag: no release note
tag: ai generated

🤖 Generated with Claude Code

Tests matches() with both true and false branches, and hash() for
consistency and key-sensitivity, since existing D2 operation tests
don't guarantee the false branch fires (different key pairs hash
to different buckets, so matches() is never called with a mismatch).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dougqh dougqh added tag: flaky test Flaky tests type: enhancement Enhancements and improvements comp: core Tracer core labels Jun 29, 2026
@dougqh dougqh marked this pull request as ready for review June 29, 2026 21:31
@dougqh dougqh requested a review from a team as a code owner June 29, 2026 21:31
@dougqh dougqh requested a review from mcculls June 29, 2026 21:31
@dd-octo-sts dd-octo-sts Bot added the tag: ai generated Largely based on code generated by an AI or LLM label Jun 29, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)

Suite Status
Startup 🟡 warning

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.77 s 14.71 s [-0.7%; +1.5%] (no difference)
startup:insecure-bank:tracing:Agent 13.70 s 13.77 s [-1.6%; +0.6%] (no difference)
startup:petclinic:appsec:Agent 17.44 s 17.02 s [+1.4%; +3.6%] (significantly worse)
startup:petclinic:iast:Agent 17.43 s 17.54 s [-1.5%; +0.2%] (no difference)
startup:petclinic:profiling:Agent 17.49 s 17.36 s [-0.3%; +1.7%] (no difference)
startup:petclinic:sca:Agent 17.58 s 17.52 s [-0.6%; +1.2%] (no difference)
startup:petclinic:tracing:Agent 16.48 s 16.07 s [-3.0%; +8.1%] (unstable)

Commit: efd1054a · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core tag: ai generated Largely based on code generated by an AI or LLM tag: flaky test Flaky tests type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants