Skip to content

C++ modifier and bug_gen_modal updates#234

Merged
AlienKevin merged 23 commits intoSWE-bench:mainfrom
AlienKevin:kevin/cpp2
Mar 9, 2026
Merged

C++ modifier and bug_gen_modal updates#234
AlienKevin merged 23 commits intoSWE-bench:mainfrom
AlienKevin:kevin/cpp2

Conversation

@AlienKevin
Copy link
Collaborator

No description provided.

AlienKevin and others added 23 commits February 18, 2026 17:05
RepoProfile previously used multiprocessing.Lock for each registered profile instance. On this machine, profile registration can hit OS semaphore limits and fail with '[Errno 28] No space left on device' during SemLock allocation.

Switching to threading.Lock preserves the in-process critical section semantics used by clone/cache initialization while avoiding per-profile OS semaphore allocation. This keeps profile resolution stable for local bug-gen/validation entrypoints and removes a non-deterministic local runtime failure mode.
Ninjacc60300a was validating with './build/ninja_test' only. Post-patch validation could therefore run a stale prebuilt binary and miss source-level mutations.

Update test_cmd to rebuild first (make -j$(nproc)) and then run ninja_test so validation exercises patched sources.
- test_cmd now rebuilds hash_test + string_view_sso_test before ctest to ensure source patches affect validation results

- bug generation excludes non-covered trees (/src and non-base helio dirs) to focus on the tested surface

Run stats: 398 generated, 398 validated, 1 valid (0.3% pass)
Made-with: Cursor
…vin/cpp2

# Conflicts:
#	swesmith/profiles/cpp.py
#	tests/profiles/test_profiles_cpp.py
@AlienKevin AlienKevin merged commit 65b31a1 into SWE-bench:main Mar 9, 2026
3 checks passed
Copy link

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

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: 450682ecd1

ℹ️ 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".

Comment on lines 436 to +438
dirs_exclude: list[str] = [],
dirs_include: list[str] = [],
files_exclude: list[str] = [],

Choose a reason for hiding this comment

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

P2 Badge Keep extract_entities override signatures aligned

Adding files_exclude to RepoProfile.extract_entities introduces a runtime API mismatch because the language-specific overrides in swesmith/profiles/javascript.py, swesmith/profiles/typescript.py, and swesmith/profiles/cpp.py still use the old signature; calling profile.extract_entities(files_exclude=[...]) on those profiles now raises TypeError: unexpected keyword argument. This breaks the new exclusion feature for common profile types and will fail any generic caller that relies on the base-class interface.

Useful? React with 👍 / 👎.

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

❌ Patch coverage is 97.44681% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
swesmith/bug_gen/procedural/cpp/operations.py 96.51% 3 Missing ⚠️
swesmith/bug_gen/procedural/cpp/control_flow.py 94.59% 2 Missing ⚠️
swesmith/profiles/base.py 80.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
swesmith/bug_gen/procedural/base.py 97.95% <100.00%> (+0.18%) ⬆️
swesmith/bug_gen/procedural/cpp/__init__.py 100.00% <ø> (ø)
...ts/bug_gen/procedural/cpp/test_cpp_control_flow.py 100.00% <100.00%> (ø)
...ests/bug_gen/procedural/cpp/test_cpp_operations.py 100.00% <100.00%> (ø)
swesmith/profiles/base.py 82.72% <80.00%> (-0.14%) ⬇️
swesmith/bug_gen/procedural/cpp/control_flow.py 94.77% <94.59%> (-0.07%) ⬇️
swesmith/bug_gen/procedural/cpp/operations.py 92.85% <96.51%> (+1.74%) ⬆️
🚀 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.

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