Skip to content

Conversation

@nickrolfe
Copy link
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.

@github-actions github-actions bot added the size/S Should be easy to review label Dec 11, 2025
@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
Copy link
Contributor

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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Should be easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants