Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 9, 2025

The --intra-layer-parallelism flag is now enabled by default for all CodeQL CLI versions, so we no longer need to explicitly pass it when running codeql database run-queries.

This PR removes the flag from the databaseRunQueries method in src/codeql.ts and updates the corresponding test expectation in src/codeql.test.ts.

Changes Made

  • Removed "--intra-layer-parallelism" from the command arguments in the databaseRunQueries method
  • Updated the test error message expectation to match the new command format without the flag

Testing

All existing tests continue to pass (536/536), confirming that removing this flag doesn't break any functionality since the feature is enabled by default in modern CodeQL CLI versions.

The generated JavaScript files in the lib/ directory have been automatically updated to reflect these changes.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] The --intra-layer-parallelism is enabled by default for all CodeQL CLI versions so we no longer need to explicitly pass it. Can you make a PR to stop passing it and update the tests accordingly? Remove --intra-layer-parallelism flag from CodeQL CLI commands Sep 9, 2025
@Copilot Copilot AI requested a review from henrymercer September 9, 2025 16:54
Copilot finished work on behalf of henrymercer September 9, 2025 16:54
@henrymercer henrymercer marked this pull request as ready for review September 9, 2025 16:55
@henrymercer henrymercer requested a review from a team as a code owner September 9, 2025 16:55
@Copilot Copilot AI review requested due to automatic review settings September 9, 2025 16:55
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 deprecated --intra-layer-parallelism flag from CodeQL CLI commands since it's now enabled by default in all supported CodeQL CLI versions.

  • Removes explicit --intra-layer-parallelism flag from the databaseRunQueries method
  • Updates test expectations to reflect the new command format without the flag

Reviewed Changes

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

File Description
src/codeql.ts Removes the --intra-layer-parallelism flag from the databaseRunQueries command arguments
src/codeql.test.ts Updates test error message expectation to match new command format without the flag
lib/*.js Generated JavaScript files automatically updated (not reviewed per guidelines)

@henrymercer henrymercer requested review from nickrolfe and removed request for henrymercer September 9, 2025 17:13
@henrymercer henrymercer merged commit 31d3ae8 into main Sep 9, 2025
574 checks passed
@henrymercer henrymercer deleted the copilot/fix-9c4e2e82-c57a-4af0-8336-b8b24b72dba3 branch September 9, 2025 19:18
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.

3 participants