Skip to content

[deep-report] Implement the two stub schema-validation benchmarks and add b.ReportAllocs() to critical benchmarks #38648

Closed as not planned

Description

@github-actions

Description

The Repository Quality report (#38628) found pkg/parser/frontmatter_benchmark_test.go ends with two comment-only stubs — BenchmarkValidateSchema (line 172) and BenchmarkValidateSchema_Complex (line 174) — so the schema-validation hot path is currently unmeasured. Separately, 77/93 benchmarks (83%) omit b.ReportAllocs(), making allocation regressions invisible.

Scope

  1. Implement the two stub benchmarks in pkg/parser/frontmatter_benchmark_test.go (simple + complex schema-validation inputs), following the exemplary pattern in compiler_performance_benchmark_test.go (b.ReportAllocs(), b.ResetTimer()).
  2. Add b.ReportAllocs() to the 14 critical benchmarks selected by the bench-performance make target (narrow scope, not all 93).

Expected Impact

Makes the schema-validation hot path measurable and surfaces allocation regressions in the critical-path benchmarks used by daily monitoring.

Suggested Agent

copilot-swe-agent.

Estimated Effort

Fast (< 1 hour).

Data Source

DeepReport run 2026-06-11; Repository Quality report #38628.

Generated by 🔬 DeepReport - Intelligence Gathering Agent · 221.4 AIC · ⌖ 11.9 AIC · ⊞ 10.6K · ◷

  • expires on Jun 13, 2026, 8:08 AM UTC-08:00

Activity

  1. Copilot commented on Jun 11, 2026

    Copilot
    Contributor

    The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: 0F80:1A8D13:2523499:8C06193:6A2B3B05)

  2. github-actions commented on Jun 11, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · 25.7 AIC · ⌖ 4.43 AIC · ⊞ 22.6K · ◷

  3. github-actions commented on Jun 13, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-06-13T16:08:22.798Z.

    Closed by Workflow

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions