Skip to content

Feature/ai for cpp#51

Merged
Malkovsky merged 3 commits into
mainfrom
feature/ai_for_cpp
May 28, 2026
Merged

Feature/ai for cpp#51
Malkovsky merged 3 commits into
mainfrom
feature/ai_for_cpp

Conversation

@Malkovsky
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@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: 89a2a14804

ℹ️ 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 +671 to +675
if node.get("kind") != "DeclRefExpr":
continue
referenced = node.get("referencedDecl")
if isinstance(referenced, dict) and isinstance(referenced.get("name"), str):
return referenced["name"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Extract actual callee for member-call edges

call_expr_callee_name() returns the first DeclRefExpr it sees, which is often the receiver variable for CXXMemberCallExpr (e.g. a in a.run()), not the called function. That builds an incorrect call graph (caller -> a instead of caller -> run), so reverse propagation can miss benchmark functions that are only transitively impacted through member-function calls. This leads to false negatives in affected_benchmarks and can skip relevant perf checks.

Useful? React with 👍 / 👎.

Comment on lines +775 to +776
if callee == "register_op":
literal_values = string_literals_in_node(subnode)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Detect dynamic benchmarks registered via RegisterOp

Dynamic benchmark names are only captured when the callee equals register_op, but this codebase registers them via RegisterOp/benchmark::RegisterBenchmark (e.g. in src/benchmarks/rmm_benchmark_base.h). As written, those benchmark names are never added to benchmark_names/affected_names, so changed RmM benchmark code can be reported as having no affected benchmark targets (filtered out later when names are empty), producing false negatives.

Useful? React with 👍 / 👎.

Comment on lines +701 to +702
for match in re.finditer(r"register_op\(\s*\"([^\"]+)\"", text):
names.add(match.group(1))
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 Expand source fallback beyond BENCHMARK/register_op pattern

The source fallback extractor only recognizes BENCHMARK(...) and lowercase register_op(...), so it misses dynamic registrations done through RegisterOp/benchmark::RegisterBenchmark. In fallback paths (AST errors or infra fallback), this can leave affected_benchmarks empty for dynamically-registered suites, degrading scope selection and causing conservative or incorrect benchmark targeting.

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.58%. Comparing base (4ea1aaf) to head (89a2a14).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #51   +/-   ##
=======================================
  Coverage   89.58%   89.58%           
=======================================
  Files          15       15           
  Lines        4416     4416           
  Branches      814      814           
=======================================
  Hits         3956     3956           
  Misses        280      280           
  Partials      180      180           
Flag Coverage Δ
gcov 89.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@Malkovsky Malkovsky merged commit 0a7ff89 into main May 28, 2026
6 checks passed
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.

1 participant