Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Jan 15, 2026

Vibe coded a solution to make this PR check hopefully much faster.

I'll revert the two dummy commits before merging.

@github-actions github-actions bot added Swift Rust Pull requests that update Rust code labels Jan 15, 2026
@hvitved hvitved force-pushed the shard-compile-queries branch from 0454861 to 5518795 Compare January 15, 2026 09:30
@hvitved hvitved marked this pull request as ready for review January 15, 2026 09:32
@hvitved hvitved requested review from a team as code owners January 15, 2026 09:32
Copilot AI review requested due to automatic review settings January 15, 2026 09:32
@hvitved hvitved requested a review from a team as a code owner January 15, 2026 09:32
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Jan 15, 2026
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 refactors the compile-queries.yml workflow to run query compilation in parallel shards based on language, improving performance by allowing each language to run independently in a matrix strategy. For pull requests, it detects which languages have changes and only runs compilation for those languages, while for pushes to main/rc branches, it runs all languages.

Changes:

  • Added a new detect-changes job that determines which languages have changes in a PR or runs all languages for main/rc branch pushes
  • Modified compile-queries job to use a matrix strategy based on detected languages
  • Updated cache keys, formatting checks, and compilation commands to be language-specific

Reviewed changes

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

File Description
.github/workflows/compile-queries.yml Implements sharded compilation by language with change detection for PRs
swift/ql/lib/codeql/swift/dataflow/internal/FlowSummaryImpl.qll Adds a test comment (to be reverted per PR description)
rust/ql/lib/codeql/rust/internal/typeinference/BlanketImplementation.qll Adds an extra period to a comment (to be reverted per PR description)
Comments suppressed due to low confidence (1)

.github/workflows/compile-queries.yml:39

  • When the languages array is empty, the expansion of "${languages[@]}" may cause issues in some shell configurations. Consider using ${languages[@]+"${languages[@]}"} or adding a conditional check to explicitly set an empty array when no languages are detected.
            echo "languages=$(jq -c -n '$ARGS.positional' --args "${languages[@]}")" >> $GITHUB_OUTPUT

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/**
* Holds if the argument type `at` does _not_ satisfy the first non-trivial blanket
* constraint of `impl`.
* constraint of `impl`..
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

Corrected double period '..' to single period '.' at end of comment.

Suggested change
* constraint of `impl`..
* constraint of `impl`.

Copilot uses AI. Check for mistakes.
redsun82
redsun82 previously approved these changes Jan 15, 2026
Copy link
Contributor

@redsun82 redsun82 left a comment

Choose a reason for hiding this comment

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

Ok as a stop gap solution, thanks!

@hvitved hvitved force-pushed the shard-compile-queries branch from 5518795 to b4bbafa Compare January 15, 2026 13:35
@github-actions github-actions bot removed Rust Pull requests that update Rust code Swift labels Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants