Conversation
|
/test-performance |
|
🏁 Beep Boop! Performance testing for this PR has been initiated. Please check back later for results. Note that the query package generation step must complete before testing will start so it might be a minute. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The dataflow migration requires a change note under repository policy.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
What changed in this PR
Migrates STR30-C to the newer CodeQL dataflow API while retaining existing expected alerts.
Changes:
- Refactors string-literal source, sink, and flow modeling.
- Removes obsolete deprecation warnings from test expectations.
- Missing the required change note for altered query evaluation.
| File | Description |
|---|---|
DoNotAttemptToModifyStringLiterals.ql |
Migrates and simplifies dataflow logic. |
DoNotAttemptToModifyStringLiterals.expected |
Removes deprecated-module warnings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| import codingstandards.c.cert | ||
| import semmle.code.cpp.security.BufferWrite | ||
| import semmle.code.cpp.dataflow.DataFlow | ||
| import semmle.code.cpp.dataflow.new.DataFlow |
|
🏁 Beep Boop! Performance testing complete! See below for performance of the last 3 runs vs your PR. Times are based on predicate performance. You can find full graphs and stats in the PR that was created for this test in the release engineering repo. 🏁 Below are the slowest predicates for the last 2 releases vs this PR. |

Description
Migrates STR30-C to
semmle.code.cpp.dataflow.new.DataFlow.The migration preserves the existing alert set while substantially simplifying the query.
Handles direct writes separately from global flow, preventing use-use flow from producing duplicate source/write combinations.
Change request type
.ql,.qll,.qlsor unit tests)Rules with added or modified queries
Release change checklist
A change note (development_handbook.md#change-notes) is required for any pull request which modifies:
If you are only adding new rule queries, a change note is not required.
Author: Is a change note required?
🚨🚨🚨
Reviewer: Confirm that format of shared queries (not the .qll file, the
.ql file that imports it) is valid by running them within VS Code.
Reviewer: Confirm that either a change note is not required or the change note is required and has been added.
Query development review checklist
For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:
Author
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
Reviewer
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.