Skip to content

Propose pinned P3 benchmark corpus - #9

Merged
EhsanAzish80 merged 1 commit into
mainfrom
bench/harness
Dec 4, 2026
Merged

EhsanAzish80 merged 1 commit into
mainfrom
bench/harness

Conversation

@EhsanAzish80

Copy link
Copy Markdown
Owner

Summary

Proposes the pinned 50-repository P3 benchmark corpus for review. This PR does not start the overnight replay.

The corpus is JSON-compatible YAML so the base install needs no YAML dependency. A small validator makes the approval constraints executable.

Corpus shape

  • 15 Python, 12 TypeScript/JavaScript, 8 Go, 8 Swift, 7 Rust
  • 50 immutable 40-character SHAs, pinned on 2026-12-04
  • every repository has at least 3 years of history and at least 2,000 commits
  • recent merged-PR sampling demonstrates 16 repositories with merge commits, 36 with squash merges, and 33 with rebase merges
  • exactly 10 held-out repositories selected by random.Random(20261204) over the case-insensitive sorted corpus; the seed and selected list are recorded
  • Django is excluded because Fixed #N does not identify bug-only tickets offline

Fix-message audit

For each candidate I downloaded a commit-only, tree-filtered history (up to 5,000 commits), ran Devscope's current is_fix_message, and drew a deterministic 20-match sample seeded by SHA-256 of the repository name.

The recorded real_fixes count is a conservative pre-screen that rejects cosmetic, dependency, release, documentation, CI and test-only subjects. Borderline samples were inspected before inclusion. Every proposed repository has:

  • at least 5% fix-pattern matches
  • at least 15/20 usable subjects in the deterministic sample

Rejected during preflight:

  • boto/boto3 (0.8% matches)
  • fastapi/fastapi (2.8% matches)
  • celery/celery (10/20 usable sample)
  • tokio-rs/tokio (14/20 usable sample)
  • encode/httpx, pmndrs/zustand, labstack/echo, stretchr/testify, rs/zerolog, spf13/cobra, and Alamofire/Alamofire (below the 2,000-commit floor)

Review flags

  • prettier/prettier and nicklockwood/SwiftFormat: formatter projects; verify mass-format commits are covered by blame-ignore history.
  • vercel/next.js and swiftlang/swift-syntax: recheck generated-code share before the full run.
  • No corpus entry silently relies on resolving issue type online.

Validation

  • pytest -q: 212 passed, 6 skipped
  • ruff check src tests: passed
  • mypy src: passed in strict mode
  • wheel build: passed; devscope/bench/corpus.yaml is included

Approval gate

Please review src/devscope/bench/corpus.yaml. The overnight P3 run remains blocked while status is proposal-awaiting-approval. Candidate changes will recompute the holdout from the same fixed seed rather than hand-picking replacements.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🔍 Devscope Health Check

Devscope: A · Low risk · Easy onboarding · 0.56 test-file ratio · 0.04s ⚡

Updated: Fri, 04 Dec 2026 15:22:25 GMT

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.92308% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/devscope/bench/corpus.py 76.00% 12 Missing ⚠️

📢 Thoughts on this report? Let us know!

@EhsanAzish80
EhsanAzish80 merged commit 806ba8e into main Dec 4, 2026
5 checks passed
@EhsanAzish80
EhsanAzish80 deleted the bench/harness branch December 4, 2026 15:44
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.

2 participants