Skip to content

Conversation

@MichaelRFairhurst
Copy link
Collaborator

Previous publication didn't properly test modules with the latest codeql/util, thus missing a breaking change to DenseRank that affected some modules.

Publish a fix to this as 0.0.3 -- fixes the codeql/util constraint, and adapts modules to the new DenseRank API.

Previous publication didn't properly test modules with the latest codeql/util,
thus missing a breaking change to `DenseRank` that affected some modules.

Publish a fix to this as 0.0.3 -- fixes the codeql/util constraint, and adapts
modules to the new `DenseRank` API.
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 upgrades the qtil library to version 0.0.3 to address a breaking change in the CodeQL util library's DenseRank API. The changes adapt the codebase to use the new DenseRank1 module instead of DenseRank2 and update the API usage pattern throughout the modules.

Key changes:

  • Updates the DenseRank API usage in CondensedList.qll to use DenseRank1 instead of DenseRank2
  • Upgrades all package versions to 0.0.3 and updates dependency constraints
  • Updates all CodeQL dependency lock files to use newer versions compatible with the breaking change

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/qtil/list/CondensedList.qll Adapts DenseRank API usage to new DenseRank1 module and corrects API call patterns
src/qlpack.yml Updates main package version to 0.0.3 and constrains codeql/util dependency to >2.0.0
test/qtil/list/CondensedListTest.ql Fixes minor syntax error in test failure message
Multiple language-specific qlpack.yml files Updates package versions to 0.0.3 and dependency references
Multiple codeql-pack.lock.yml files Updates dependency versions to support new CodeQL util API

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

In the future, we should consider matrix tests to ensure we're compatible with
the ranges that we declare -- both in package versions, and against various CLI
versions.

For the meantime, the best approach is to test the oldest versions, and assume
forward compatibility. At least, that's what's best for codeql/util, if not for
the language packs where our support spans multiple major revisions.
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@MichaelRFairhurst MichaelRFairhurst merged commit 3509f2f into main Aug 24, 2025
10 checks passed
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