Skip to content

Basic support for overlay analysis #2940

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

Closed
wants to merge 14 commits into from
Closed

Basic support for overlay analysis #2940

wants to merge 14 commits into from

Conversation

cklin
Copy link
Contributor

@cklin cklin commented Jun 20, 2025

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

cklin added 14 commits June 20, 2025 07:14
This commit adds overlayDatabaseMode to AugmentationProperties and
creates a placeholder getOverlayDatabaseMode() function, with the
necessary inputs, to populate it.
This commit populates getOverlayDatabaseMode() in config-utils with the
same code from getOverlayDatabaseMode() in init.
This commit changes databaseInitCluster() to use overlayDatabaseMode
from AugmentationProperties instead of the overlayDatabaseMode
parameter. There is no behavior change because both overlayDatabaseMode
values are computed the same way.

The commit then cleans up the overlayDatabaseMode parameter and the code
paths that feed into it.
This commit changes getOverlayDatabaseMode so that, when
Feature.OverlayAnalysis is enabled, it calculates the overlay database
mode automatically based on analysis metadata. If we are analyzing the
default branch, use OverlayBase, and if we are analyzing a PR, use
Overlay.

If CODEQL_OVERLAY_DATABASE_MODE is set to a valid overlay database mode,
that environment variable still takes precedence.
This commit adds a useOverlayDatabaseCaching property to
AugmentationProperties to indicate whether the action should upload
overlay-base databases to the actions cache and to download a cached
overlay-base database when creating an overlay database.
@cklin cklin force-pushed the cklin/overlay-analysis branch from 573810e to 20e2680 Compare June 20, 2025 18:49
@cklin cklin marked this pull request as ready for review June 20, 2025 19:10
@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 19:10
@cklin cklin requested a review from a team as a code owner June 20, 2025 19:10
Copilot

This comment was marked as outdated.

@cklin cklin closed this Jun 20, 2025
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