Skip to content

[CI Visibility] Fix CODEOWNERS parser correctness and normalize CI source paths - #9099

Draft
tonyredondo wants to merge 14 commits into
masterfrom
tony/ci-visibility-codeowners-parser-fixes
Draft

[CI Visibility] Fix CODEOWNERS parser correctness and normalize CI source paths#9099
tonyredondo wants to merge 14 commits into
masterfrom
tony/ci-visibility-codeowners-parser-fixes

Conversation

@tonyredondo

@tonyredondo tonyredondo commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary of changes

  • Fix CODEOWNERS matching to follow GitHub and GitLab semantics.
  • Normalize compiler-recorded source paths so CI Visibility can resolve repository files and their owners.

Reason for change

CI Visibility uses CODEOWNERS metadata to determine test ownership. The existing parser diverged from GitHub and GitLab behavior in several cases, which could assign incorrect owners.

Additionally, source paths recorded by compilers in CI can contain agent-specific relative prefixes, causing valid repository files to fall outside the CODEOWNERS root during path resolution.

Implementation details

  • Separate GitHub and GitLab rule evaluation:
    • GitHub uses the last matching rule globally.
    • GitLab evaluates sections independently, supports default owners, and keeps exclusions scoped to their section.
  • Correct matching for rooted and unrooted patterns, directory patterns, wildcards, globstars, comments, case sensitivity, and Windows path separators.
  • Add a regex timeout so pathological CODEOWNERS patterns cannot block the instrumented process.
  • Anchor unresolved relative source paths using the longest existing suffix under the CODEOWNERS root.
  • Keep absolute paths outside the repository, bare filenames, and non-existent suffixes from being re-anchored.

Test coverage

  • Added specification-focused tests for GitHub and GitLab CODEOWNERS behavior.
  • Added tests against this repository's CODEOWNERS file and real-world CODEOWNERS examples.
  • Extended CI source-path fallback tests, including Azure Pipelines compiler paths and paths outside the repository.

Other details

No public API or dependency changes.

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (9099) and master.

✅ No regressions detected

📄 View the full report (charts + all metrics) →

@pr-commenter

pr-commenter Bot commented Aug 22, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-22 18:51:49

Comparing candidate commit 29e64a5 in PR branch tony/ci-visibility-codeowners-parser-fixes with baseline commit e476ea7 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 61 known flaky benchmarks, 65 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5752.549op/s; -5468.391op/s] or [-6.567%; -6.243%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-9103.432op/s; -8703.961op/s] or [-10.794%; -10.320%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • 🟥 throughput [-9111.827op/s; -7753.937op/s] or [-9.265%; -7.884%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+1.605KB; +1.605KB] or [+48.760%; +48.776%]
  • 🟥 execution_time [+316.925ms; +322.879ms] or [+157.269%; +160.224%]
  • 🟥 throughput [-73.358op/s; -68.646op/s] or [-13.199%; -12.351%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 allocated_mem [+1.011KB; +1.011KB] or [+37.485%; +37.498%]
  • 🟥 execution_time [+375.915ms; +378.453ms] or [+296.995%; +299.001%]
  • 🟩 throughput [+65.326op/s; +69.481op/s] or [+8.613%; +9.161%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 allocated_mem [+1.091KB; +1.091KB] or [+40.454%; +40.465%]
  • 🟥 execution_time [+389.815ms; +394.287ms] or [+344.972%; +348.929%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+4.725KB; +4.726KB] or [+99.482%; +99.497%]
  • 🟥 throughput [-60442.095op/s; -60032.857op/s] or [-47.027%; -46.709%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+3.848KB; +3.848KB] or [+81.379%; +81.391%]
  • 🟩 execution_time [-15.948ms; -11.763ms] or [-7.448%; -5.494%]
  • 🟥 throughput [-60001.337op/s; -57231.786op/s] or [-43.798%; -41.776%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+4.576KB; +4.576KB] or [+98.954%; +98.966%]
  • 🟥 throughput [-48567.552op/s; -46320.469op/s] or [-43.911%; -41.879%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.348KB; +1.348KB] or [+109.063%; +109.078%]
  • 🟥 throughput [-289947.362op/s; -284360.329op/s] or [-29.605%; -29.035%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+511 bytes; +512 bytes] or [+41.822%; +41.834%]
  • 🟩 execution_time [-26.552ms; -21.692ms] or [-11.841%; -9.674%]
  • 🟥 throughput [-100943.249op/s; -74863.106op/s] or [-10.784%; -7.998%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.312KB; +1.312KB] or [+108.600%; +108.616%]
  • 🟥 throughput [-163527.412op/s; -147320.714op/s] or [-23.496%; -21.167%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72498.614op/s; -71685.851op/s] or [-48.791%; -48.244%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73103.301op/s; -70221.301op/s] or [-46.514%; -44.681%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-57062.561op/s; -54440.389op/s] or [-45.458%; -43.369%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+327156.276op/s; +342447.693op/s] or [+10.909%; +11.419%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-19.288ms; -14.937ms] or [-8.891%; -6.885%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟩 allocated_mem [-13.759KB; -13.756KB] or [-42.324%; -42.316%]
  • 🟥 execution_time [+299.672ms; +300.380ms] or [+149.736%; +150.090%]
  • 🟩 throughput [+951.864op/s; +978.707op/s] or [+10.513%; +10.810%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+299.100ms; +302.356ms] or [+150.837%; +152.479%]
  • 🟩 throughput [+2272.475op/s; +2498.956op/s] or [+17.381%; +19.113%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟩 allocated_mem [-13.722KB; -13.718KB] or [-42.341%; -42.329%]
  • 🟥 execution_time [+300.640ms; +303.341ms] or [+151.439%; +152.800%]
  • 🟩 throughput [+1896.394op/s; +2028.779op/s] or [+18.309%; +19.587%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+295.469ms; +297.121ms] or [+145.123%; +145.934%]
  • 🟩 throughput [+536.389op/s; +548.428op/s] or [+14.220%; +14.539%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+299.922ms; +303.119ms] or [+146.621%; +148.184%]
  • 🟩 throughput [+2562.130op/s; +2615.951op/s] or [+37.223%; +38.005%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+301.554ms; +302.669ms] or [+150.716%; +151.273%]
  • 🟩 throughput [+1357.892op/s; +1374.164op/s] or [+26.953%; +27.276%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • 🟩 execution_time [-148.146µs; -143.966µs] or [-30.416%; -29.558%]
  • 🟩 throughput [+865.729op/s; +894.416op/s] or [+42.165%; +43.562%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0

  • 🟩 execution_time [-137.030µs; -110.301µs] or [-31.428%; -25.298%]
  • 🟩 throughput [+840.658op/s; +964.345op/s] or [+36.548%; +41.926%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • 🟩 execution_time [-143.108µs; -121.120µs] or [-30.661%; -25.950%]
  • 🟩 throughput [+781.198op/s; +863.928op/s] or [+36.062%; +39.881%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • 🟩 execution_time [-127.739µs; -123.617µs] or [-34.489%; -33.376%]
  • 🟩 throughput [+1364.345op/s; +1411.185op/s] or [+50.529%; +52.264%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟩 execution_time [-105.600µs; -82.038µs] or [-33.713%; -26.191%]
  • 🟩 throughput [+1250.173op/s; +1450.464op/s] or [+38.972%; +45.215%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • 🟩 execution_time [-136.833µs; -114.427µs] or [-37.432%; -31.303%]
  • 🟩 throughput [+1313.618op/s; +1451.324op/s] or [+47.141%; +52.082%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.785ms; +300.568ms] or [+149.623%; +150.014%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • unstable execution_time [+308.666ms; +379.057ms] or [+335.378%; +411.861%]
  • 🟩 throughput [+841.286op/s; +1055.024op/s] or [+6.913%; +8.669%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • 🟥 execution_time [+371.954ms; +376.136ms] or [+282.421%; +285.597%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+332.550ms; +388.437ms] or [+152.903%; +178.600%]
  • 🟥 throughput [-564.035op/s; -506.142op/s] or [-51.107%; -45.861%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • unstable execution_time [+200.545ms; +333.827ms] or [+85.464%; +142.263%]
  • 🟥 throughput [-673.719op/s; -590.216op/s] or [-44.937%; -39.368%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+333.119ms; +341.202ms] or [+199.244%; +204.078%]
  • 🟥 throughput [-355.986op/s; -320.038op/s] or [-24.787%; -22.284%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+300.903ms; +303.240ms] or [+151.529%; +152.706%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+301.798ms; +303.585ms] or [+151.232%; +152.127%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+300.757ms; +303.840ms] or [+151.088%; +152.636%]
  • 🟩 throughput [+24551.445op/s; +31691.532op/s] or [+5.172%; +6.676%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.869ms; +303.144ms] or [+151.086%; +152.229%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+298.214ms; +300.647ms] or [+147.454%; +148.657%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+302.019ms; +305.963ms] or [+153.076%; +155.076%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+304.088ms; +308.009ms] or [+152.625%; +154.592%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+296.554ms; +299.730ms] or [+147.805%; +149.388%]
  • 🟩 throughput [+37459.051op/s; +45287.632op/s] or [+7.438%; +8.993%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+298.916ms; +302.032ms] or [+148.708%; +150.258%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.313ms; -12.637ms] or [-7.586%; -5.876%]
  • 🟩 throughput [+19175.012op/s; +26189.195op/s] or [+5.260%; +7.184%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+8.920µs; +54.235µs] or [+2.203%; +13.396%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-24.649KB; -24.627KB] or [-8.991%; -8.983%]
  • unstable execution_time [-30.937µs; +26.351µs] or [-6.114%; +5.208%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • 🟩 allocated_mem [-18.636KB; -18.619KB] or [-6.794%; -6.787%]
  • unstable execution_time [-72.404µs; -11.109µs] or [-12.547%; -1.925%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • unstable execution_time [+10.205µs; +17.034µs] or [+24.121%; +40.263%]
  • 🟥 throughput [-6482.520op/s; -4235.844op/s] or [-27.289%; -17.832%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • unstable execution_time [-13.544µs; -5.906µs] or [-21.013%; -9.163%]
  • unstable throughput [+1392.330op/s; +3055.344op/s] or [+8.542%; +18.746%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.073ms; +304.198ms] or [+153.190%; +153.759%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+301.038ms; +303.771ms] or [+153.227%; +154.618%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+300.812ms; +304.442ms] or [+150.593%; +152.411%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.520ms; +301.469ms] or [+149.284%; +150.255%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+301.102ms; +303.635ms] or [+151.199%; +152.471%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+303.262ms; +305.914ms] or [+153.795%; +155.140%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.518ms; +301.648ms] or [+149.900%; +150.464%]
  • 🟩 throughput [+61014967.705op/s; +61371486.004op/s] or [+44.435%; +44.695%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • 🟥 execution_time [+416.174ms; +419.564ms] or [+517.587%; +521.802%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.116ms; +300.433ms] or [+149.192%; +149.849%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+67372.302op/s; +89698.874op/s] or [+6.290%; +8.375%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 throughput [+59034.258op/s; +72296.671op/s] or [+5.863%; +7.180%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+41618.363op/s; +49355.398op/s] or [+7.557%; +8.962%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@tonyredondo

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 29e64a5575

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// resolution fails, anchor the path by finding the longest suffix that exists under the
// CODEOWNERS root, independently of the CI provider layout that produced the prefix.
codeOwnersRelativePath = null;
if (StringUtil.IsNullOrWhiteSpace(sourceFilePath) || Path.IsPathRooted(sourceFilePath))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject absolute URIs before suffix anchoring

When sourceFilePath is an absolute URI such as file:///outside/tracer/test/Foo.cs or an HTTP document URL, the outer method initially recognizes it as absolute, but after relative-path validation fails it calls this fallback. This guard checks only Path.IsPathRooted, so the URI is split into segments and can be re-anchored whenever its suffix exists in the checkout, falsely assigning repository CODEOWNERS to an external source. Apply the same Uri.TryCreate(..., UriKind.Absolute, ...) rejection used by the caller before attempting suffix matching.

Useful? React with 👍 / 👎.

rx = rx.Replace("\\*", "[^/]*"); // single‑level wildcard
// A slash right after ** means it can match zero or more intermediate directories:
// `a/**/b` must also match `a/b`.
rx = rx.Replace("§§DOUBLESTAR§§/", "(?:.*/)?");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restrict zero-directory globstars to whole path components

When a CODEOWNERS pattern contains **/ inside a path component, such as /foo**/bar, this unconditional replacement treats it as a globstar directory component and makes the slash optional, so the rule incorrectly matches /foobar. Consecutive stars only have zero-or-more-directory semantics when ** is a complete path component; otherwise they are ordinary within-component wildcards and the following slash must remain required.

Useful? React with 👍 / 👎.

Comment on lines +413 to +416
// Patterns whose last segment is wildcard-free also own everything inside a matched
// directory (e.g. `**/logs` owns `/build/logs/error.txt`), while wildcard segments like
// `docs/*` match individual entries only.
return _isDirectoryPattern && MatchesAncestor(path);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Stop ancestor retries after a regex timeout

For a pathological GitHub directory-style rule and a deeply nested source path, IsMatch(path) converts a three-second timeout into an ordinary false, after which this branch retries the same regex once for every ancestor. A single rule can therefore block the instrumented customer process for roughly three seconds per path component, defeating the timeout's protection; propagate the timeout result so the entire entry evaluation stops instead of entering MatchesAncestor.

AGENTS.md reference: AGENTS.md:L219-L225

Useful? React with 👍 / 👎.

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.

1 participant