← 输入框|github.com|刷新
Skip to content

Fix check-query-ids reporting files as duplicates of themselves - #22898

Merged
asgerf merged 1 commit into
github:mainfrom
asgerf:fix-check-query-ids
Oct 27, 2026
Merged

asgerf merged 1 commit into
github:mainfrom
asgerf:fix-check-query-ids

Conversation

@asgerf

@asgerf asgerf commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Path().glob("**/src/**/*.ql") returns the same file twice when its path contains two src folders. This resulted in spurious failures for files are under javascript/ql/src/experimental/heuristics/ql/src/....

Should fix the spurious CI failure seen in #22879

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@asgerf
asgerf marked this pull request as ready for review October 27, 2026 08:21
@asgerf
asgerf requested a review from a team as a code owner October 27, 2026 08:21
Copilot AI max review requested due to automatic review settings October 27, 2026 08:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues blocking the query-path deduplication change.

No open issues 🎉

What changed in this PR

Fixes false duplicate-query-ID reports when a query’s path contains multiple src directories.

Changes:

  • Deduplicates glob results so each query file is checked only once.
  • Sorts paths for deterministic processing and documents the glob behavior.
File Description
misc/​scripts/​check-query-ids.py Deduplicates and sorts discovered query paths to prevent self-duplicate reports.

Review effort: Max

@asgerf
asgerf merged commit 2864ac8 into github:main Oct 27, 2026
7 checks passed
@geoffw0

geoffw0 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Thanks, I think I've seen this issue a few times in recent days.

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.

4 participants