| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Ensures the CodeQL init step avoids the unsupported “overlay-only” mode by falling back to a full non-overlay analysis when diff-informed analysis was expected but didn’t produce the pr-diff-range.json output.
Changes:
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/init-action.ts | Adds a guard to revert overlay mode to non-overlay when diff-informed output is missing. |
| src/diff-informed-analysis-utils.ts | Introduces hasDiffRangesJsonFile() helper for detecting persisted diff ranges output. |
| lib/init-action.js | Generated build output reflecting the TypeScript changes (not reviewed). |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for refactoring some of the logic out of init-action and into revertOverlayModeIfDiffInformedUnavailable, as well as adding tests!
I am still not convinced by the high-level approach here, though. If I see the flow correctly, the key events are:
This seems a bit (unnecessarily) convoluted to me. I am wondering if:
What do you think?
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for all the iteration here! I have a couple of specific comments, but the most important one is more general: should we be running overlay when diff-informed is disabled (when shouldRun is false)? My understanding is overlay has only been validated for diff-informed analyses. So I think we want to disable overlay if diff-informed can't be run in any circumstance, whether that is because the diff-ranges can't be computed, or because we can't determine the branch information?
Sorry, something went wrong.
Makes sense 👍🏻 |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks pretty much ready to merge. Couple of comments, and could we also add a short changelog note about the fact that for performance and accuracy reasons, overlay analysis will now only be enabled when diff-informed analysis is enabled?
Sorry, something went wrong.
Added the changelog note and made the minor adjustments as requested 👍🏻 |
Sorry, something went wrong.
There was a problem hiding this comment.
Echoing what Henry said: thanks for all the iterations on this! I think the implementation is much better now as a result. I don't see any further issues, so it should be good to merge once the merge conflict is resolved.
Sorry, something went wrong.
…llback * origin/main: (40 commits) Bump the npm-minor group across 1 directory with 3 updates Bump actions/create-github-app-token Nit: Tweak JSDoc for `getRawLanguagesNoAutodetect` Enable only `code-scanning` Use overlay-aware version for code scanning exclusively Add changelog entry Rebuild Bump five transitive dependencies Throw error if multiple analysis kinds are specified Bump fast-xml-builder from 1.1.5 to 1.2.0 Improve tests Improve error message Remove dead code Remove `makeOverlayMatchFeatures` indirection Add JSDoc for `getRawLanguagesNoAutodetect` Enable overlay-aware version selection in `setup-codeql` Minor: Introduce constant to avoid duplication Improve changelog note Rebuild Update changelog and version after v4.35.4 ... # Conflicts: # lib/init-action.js # src/diff-informed-analysis-utils.test.ts
There was a problem hiding this comment.
![]()
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When overlay analysis is enabled for a PR but diff-informed analysis fails (e.g. deleted branch, API error, too many changed files), the action previously continued with overlay-only analysis. This is an untested combination that can produce inaccurate results. Now we fall back to a full non-overlay analysis instead.
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Workflow types:
Products:
Environments:
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist