GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Clean up `JavaMinimizeDependencyJars` feature flag by nickrolfe · Pull Request #3352 · github/codeql-action

Conversation

@nickrolfe

@nickrolfe nickrolfe commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

The feature flag has been fully rolled out for some time, so we can simplify the code.

At the same time, stop using the minify- prefix for dependency cache keys.

There is still some Java-specific code to set the corresponding extractor option. I've left a TODO comment and will open an internal issue for a more principled way of handling that.


Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

The feature flag being removed is fully rolled out, so this PR should have no observable effects.

Which use cases does this change impact?

Workflow types:

  • Advanced setup - Impacts users who have custom CodeQL workflows.
  • Managed - Impacts users with dynamic workflows (Default Setup, CCR, ...).

Products:

  • Code Scanning - The changes impact analyses when analysis-kinds: code-scanning.
  • Code Quality - The changes impact analyses when analysis-kinds: code-quality.
  • CCR - The changes impact analyses for Copilot Code Reviews.
    • I don't know about this one.

Environments:

  • Dotcom - Impacts CodeQL workflows on github.com.

How did/will you validate this change?

  • Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files).
  • End-to-end tests - I am depending on PR checks (i.e. tests in pr-checks).

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix.

How will you know if something goes wrong after this change is released?

  • Telemetry - I rely on existing telemetry or have made changes to the telemetry.
    • Dashboards - I will watch relevant dashboards for issues after the release. Consider whether this requires this change to be released at a particular time rather than as part of a regular release.
    • Alerts - New or existing monitors will trip if something goes wrong with this change.

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the size/S Should be easy to review label Dec 11, 2025
@nickrolfe
Clean up JavaMinimizeDependencyJars feature flag
805b7e1
@nickrolfe
nickrolfe force-pushed the nickrolfe/jar-min-ff-cleanup branch from 379e7cb to 805b7e1 Compare December 11, 2025 10:47
@nickrolfe
nickrolfe marked this pull request as ready for review December 11, 2025 11:15
@nickrolfe
nickrolfe requested a review from a team as a code owner December 11, 2025 11:15
Copilot AI review requested due to automatic review settings December 11, 2025 11:15
Copilot started reviewing on behalf of nickrolfe December 11, 2025 11:15
View session
Copilot AI reviewed Dec 11, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this 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 removes the fully rolled-out JavaMinimizeDependencyJars feature flag and simplifies the associated code. The feature flag check is replaced with a direct CodeQL version check (>= 2.23.0), and the special "minify-" cache key prefix for Java dependency caching is removed in favor of a consistent cache key format.

Key changes:

  • Replaced feature flag check with direct version check in init-action logic
  • Removed feature flag definition and configuration from feature-flags module
  • Simplified cache key generation by removing Java-specific "minify-" prefix handling
  • Removed tests for the deleted feature flag functionality

Reviewed changes

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

Show a summary per file
File Description
src/init-action.ts Replaced feature flag check with CodeQL version check (>= 2.23.0) for enabling Java dependency jar minimization; added TODO for future refactoring
src/feature-flags.ts Removed JavaMinimizeDependencyJars enum value and its configuration entry
src/dependency-caching.ts Removed Java-specific logic for "minify-" prefix handling and simplified cache key assembly
src/dependency-caching.test.ts Removed tests for the deleted Java minimization feature flag
lib/*.js Auto-generated JavaScript files reflecting the TypeScript source changes

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer
henrymercer previously approved these changes Dec 15, 2025
View reviewed changes
Comment thread src/init-action.ts Outdated
);
} else if (
(await features.getValue(Feature.JavaMinimizeDependencyJars, codeql)) &&
(await codeQlVersionAtLeast(codeql, "2.23.0")) && // First version of the extractor to safely support this option

@henrymercer henrymercer Dec 15, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit, non-blocking: this might be slightly clearer as a constant at the top of the file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nickrolfe reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nickrolfe
nickrolfe dismissed henrymercer’s stale review via 4828993 December 16, 2025 15:52
henrymercer
henrymercer previously approved these changes Dec 16, 2025
View reviewed changes
mbg
mbg previously approved these changes Dec 16, 2025
View reviewed changes
Comment thread src/init-action.ts Outdated
Comment on lines +91 to +92
/** First version of CodeQL where the Java extractor safely supports the option to minimize dependency jars. */
export const CODEQL_VERSION_JAR_MINIMIZATION = "2.23.0";

@mbg mbg Dec 16, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Minor: Thanks for extracting this into a constant. Some extra thoughts:

  • It may be good to extend the comment to highlight that some CLI versions before 2.23.0 support JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS but that there was a subsequent fix/improvement in 2.23.0.
  • No strong feelings, but I wonder if it would be cleaner to have this in a different file / keep the FF around but enable it by default.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@nickrolfe nickrolfe Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I've updated the comment, as you suggested.

For your other point, I'll defer to you and Henry to make a decision.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mbg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@henrymercer henrymercer Dec 16, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We have most of the CLI versions in codeql.ts, although there is one exception CODEQL_VERSION_ZSTD_BUNDLE which lives in setup-codeql.ts to avoid circular imports. It would be slightly better to move this to codeql.ts for consistency but I think there are few practical implications: if we're going to deprecate a CodeQL version we're going to search the codebase for CODEQL_VERSION_.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@nickrolfe nickrolfe Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

OK, I'll merge what's here, but feel free to follow up and rearrange the code as you see fit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nickrolfe
Extract version number to constant
d29eddb
@nickrolfe
nickrolfe dismissed stale reviews from mbg and henrymercer via d29eddb December 16, 2025 16:18
@nickrolfe
nickrolfe force-pushed the nickrolfe/jar-min-ff-cleanup branch from 4828993 to d29eddb Compare December 16, 2025 16:18
henrymercer
henrymercer approved these changes Dec 16, 2025
View reviewed changes
@nickrolfe
nickrolfe merged commit 998798e into main Dec 16, 2025
@nickrolfe
nickrolfe deleted the nickrolfe/jar-min-ff-cleanup branch December 16, 2025 17:25
This was referenced Dec 16, 2025
Merge main into releases/v4 #3371
Merged
Merge releases/v4 into releases/v3 #3373
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@henrymercer henrymercer henrymercer approved these changes
@mbg mbg mbg left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size/S Should be easy to review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@nickrolfe @mbg @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.