Skip to content

Cleanup extract to toolcache feature flag #3021

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

Merged
merged 6 commits into from
Aug 11, 2025

Conversation

henrymercer
Copy link
Contributor

This has been rolled out for a couple of months without any issues, so remove the feature flag and clean up the old code paths.

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.

@henrymercer henrymercer requested a review from a team as a code owner August 8, 2025 10:27
@Copilot Copilot AI review requested due to automatic review settings August 8, 2025 10:27
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 removes the "extract to toolcache" feature flag that has been successfully rolled out for several months, simplifying the CodeQL bundle extraction code by eliminating the conditional behavior.

  • Removes the ExtractToToolcache and ZstdBundleStreamingExtraction feature flags from the feature flags system
  • Simplifies CodeQL bundle extraction logic by removing the conditional paths and always using the new extraction behavior
  • Updates function signatures across the codebase to remove the now-unnecessary features parameter

Reviewed Changes

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

Show a summary per file
File Description
src/feature-flags.ts Removes the ExtractToToolcache and ZstdBundleStreamingExtraction feature flag definitions
src/setup-codeql.ts Removes feature flag parameter and simplifies downloadCodeQL function by removing conditional extraction logic
src/upload-lib.ts Removes features parameter from initCodeQL call
src/init.ts Removes features parameter from initCodeQL function signature
src/init-action.ts Removes features parameter from initCodeQL call
src/codeql.ts Removes features parameter from setupCodeQL function signature
src/setup-codeql.test.ts Updates test calls to remove features parameter
src/codeql.test.ts Removes feature-related test utilities and updates test calls
lib/*.js Generated JavaScript files mirroring the TypeScript changes
Comments suppressed due to low confidence (7)

src/codeql.test.ts:170

  • Extra blank line added on line 169. This appears to be an unintentional formatting change that should be removed.
      false,

src/codeql.test.ts:204

  • Extra blank line added on line 203. This appears to be an unintentional formatting change that should be removed.
      false,

src/codeql.test.ts:287

  • Extra blank line added on line 286. This appears to be an unintentional formatting change that should be removed.
          false,

src/codeql.test.ts:320

  • Extra blank line added on line 319. This appears to be an unintentional formatting change that should be removed.
      false,

src/codeql.test.ts:357

  • Extra blank line added on line 357. This appears to be an unintentional formatting change that should be removed.
      false,

src/codeql.test.ts:391

  • Extra blank line added on line 391. This appears to be an unintentional formatting change that should be removed.
      false,

src/codeql.test.ts:427

  • Extra blank line added on line 427. This appears to be an unintentional formatting change that should be removed.
      false,

Copy link
Member

@mbg mbg left a comment

Choose a reason for hiding this comment

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

All LGTM, thanks!

Minor point: Reviewing the commit that removes the extract-directly-to-toolcache FF would have benefitted from a link to #2631 in the commit message or PR description to point at the context for this to make it quicker to review.

@mbg
Copy link
Member

mbg commented Aug 11, 2025

Looks like the PR checks also need updating

@henrymercer henrymercer merged commit 5b6f1d2 into main Aug 11, 2025
280 checks passed
@henrymercer henrymercer deleted the henrymercer/cleanup-extract-to-toolcache branch August 11, 2025 12:46
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.

2 participants