Skip to content

Swift: Make file checking in tests more strict #19344

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

jketema
Copy link
Contributor

@jketema jketema commented Apr 22, 2025

With Swift 6.1 the extractor will start to extract files outside of the test directory. These files and their elements we do not want to see in our tests.

Targeting main with this PR to ensure we do not break something by accident in the upgrade.

With Swift 6.1 the extractor will start to extract files outside of the test
directory. These files and their elements we do not want to see in our tests.
@github-actions github-actions bot added the Swift label Apr 22, 2025
@jketema jketema marked this pull request as ready for review April 22, 2025 09:10
@Copilot Copilot AI review requested due to automatic review settings April 22, 2025 09:10
@jketema jketema requested a review from a team as a code owner April 22, 2025 09:10
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.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (8)
  • swift/ql/test/TestUtils.qll: Language not supported
  • swift/ql/test/library-tests/elements/decl/enumdecl/enumdecl.ql: Language not supported
  • swift/ql/test/library-tests/elements/decl/function/function.ql: Language not supported
  • swift/ql/test/library-tests/elements/type/nominaltype/nominaltype.ql: Language not supported
  • swift/ql/test/library-tests/elements/type/nominaltype/nominaltypedecl.ql: Language not supported
  • swift/ql/test/library-tests/elements/type/numerictype/numerictype.ql: Language not supported
  • swift/ql/test/library-tests/elements/type/pointertypes/pointertypes.ql: Language not supported
  • swift/ql/test/query-tests/Diagnostics/Info.ql: Language not supported

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.

Thanks!

@jketema jketema merged commit 375ec8f into github:main Apr 22, 2025
16 checks passed
@jketema jketema deleted the swift-files branch April 22, 2025 13:33
jketema added a commit to jketema/codeql that referenced this pull request Apr 22, 2025
With Swift 6.1 the extractor will start to extract files outside of the test
directory. These files and their elements we do not want to see in our tests.

Test forgotten in github#19344
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants