Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into releases/v3 #2819

Merged
merged 19 commits into from
Mar 24, 2025
Merged

Merge main into releases/v3 #2819

merged 19 commits into from
Mar 24, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 24, 2025

Merging e0ea141 into releases/v3.

Conductor for this PR is @cklin.

Contains the following pull requests:

Please do the following:

  • Ensure the CHANGELOG displays the correct version and date.
  • Ensure the CHANGELOG includes all relevant, user-facing changes since the last release.
  • Check that there are not any unexpected commits being merged into the releases/v3 branch.
  • Ensure the docs team is aware of any documentation changes that need to be released.
  • Mark the PR as ready for review to trigger the full set of PR checks.
  • Approve and merge this PR. Make sure Create a merge commit is selected rather than Squash and merge or Rebase and merge.
  • Merge the mergeback PR that will automatically be created once this PR is merged.
  • Merge all backport PRs to older release branches, that will automatically be created once this PR is merged.

NlightNFotis and others added 19 commits March 19, 2025 11:56
Mergeback v3.28.12 refs/heads/releases/v3 into main
Co-authored-by: Andrew Eisenberg <[email protected]>
Co-authored-by: Andrew Eisenberg <[email protected]>
build: sync some utility just instructions I had locally
This commit changes overlay database creation to use the
--overlay-changes flag. It also implements Git-based file change
detection to generate the list of files to extract for the overlay
database.
Support diff-informed queries under Default Setup
Overlay databases: use --overlay-changes
Diff-informed analysis: fix empty PR handling
@cklin cklin marked this pull request as ready for review March 24, 2025 13:23
@Copilot Copilot bot review requested due to automatic review settings March 24, 2025 13:23
@cklin cklin requested a review from a team as a code owner March 24, 2025 13:23
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR merges a commit from main into the releases/v3 branch, integrating several changes from multiple pull requests. Key updates include new and improved tests for the overlay database and Git utilities, enhancements for diff‐informed analysis through improved pull request branch extraction and handling, and adjustments to CodeQL command configuration to support overlay modes.

Reviewed Changes

Copilot reviewed 24 out of 26 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/overlay-database-utils.test.js Added tests for overlay changes file generation.
src/overlay-database-utils.test.ts Introduced TypeScript tests for overlay database utilities.
src/git-utils.test.ts Expanded tests for Git utilities, including encoded file path cases.
src/git-utils.ts and lib/git-utils.js Updated export and stub usage for helper functions.
src/codeql.ts & lib/codeql.js Modified CodeQL command construction to support overlay database modes.
src/analyze.ts & lib/analyze-action.ts Added pull request branch retrieval and diff-informed analysis support.
CHANGELOG.md Updated release notes for version 3.28.13 and indicated no user facing changes.
Files not reviewed (2)
  • justfile: Language not supported
  • package.json: Language not supported
Comments suppressed due to low confidence (2)

src/analyze.ts:530

  • [nitpick] The logic handling empty diff ranges (assigning ranges = [{ path: "", startLine: 0, endLine: 0 }]) is duplicated; consider extracting this block into a shared utility to improve maintainability.
if (ranges.length === 0) {

src/overlay-database-utils.ts:91

  • [nitpick] Similar empty diff range handling logic appears here; refactoring this into a common helper could reduce code duplication and improve clarity.
if (!data) {

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@cklin cklin merged commit 1b549b9 into releases/v3 Mar 24, 2025
265 checks passed
@cklin cklin deleted the update-v3.28.13-e0ea14102 branch March 24, 2025 13:42
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.

4 participants