Skip to content

Remove unused C++ BMN FF #3039

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Remove unused C++ BMN FF #3039

wants to merge 2 commits into from

Conversation

mbg
Copy link
Member

@mbg mbg commented Aug 15, 2025

Setting CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE no longer has any effect. C++ BMN will work whenever build-mode: none is configured for it.

This PR removes a confusing log message that would result in Setting C++ build-mode: none to false getting logged whenever c-cpp was configured as language, regardless of what value was provided for the build-mode input.

Since the FF involved in the check isn't used elsewhere in the Action, this PR also removes it.

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.

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.

@mbg mbg requested a review from a team as a code owner August 15, 2025 20:12
@Copilot Copilot AI review requested due to automatic review settings August 15, 2025 20:12
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 unused C++ Build Mode None (BMN) feature flag and its associated logic. The feature flag CODEQL_EXTRACTOR_CPP_BUILD_MODE_NONE is no longer needed since C++ BMN now works automatically when build-mode: none is configured.

Key Changes

  • Removes confusing log message that would always appear when c-cpp was configured, regardless of the actual build-mode value
  • Eliminates the unused CppBuildModeNone feature flag from the feature flags enum and configuration
  • Cleans up related initialization logic in the init-action module

Reviewed Changes

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

File Description
src/init-action.ts Removes the C++ BMN environment variable setup logic and logging
src/feature-flags.ts Removes the CppBuildModeNone feature flag enum value and configuration
lib/init-action.js Generated JavaScript equivalent of TypeScript changes
lib/feature-flags.js Generated JavaScript equivalent of TypeScript changes

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@mbg mbg requested a review from henrymercer August 15, 2025 20:20
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