Skip to content

Adapt to sourceLocationPrefix change in qltest#17536

Merged
hvitved merged 5 commits intogithub:mainfrom
hvitved:ql-test-source-root
Oct 4, 2024
Merged

Adapt to sourceLocationPrefix change in qltest#17536
hvitved merged 5 commits intogithub:mainfrom
hvitved:ql-test-source-root

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Sep 20, 2024

Previously, sourceLocationPrefix for databases created with codeql test run would be the path of the enclosing qlpack, which makes little sense. This PR adapts our QL code to changing sourceLocationPrefix to be the actual path of the test, similar to what would happen if one ran codeql database create on the test folder.

@github-actions github-actions bot added the Java label Sep 20, 2024
@hvitved hvitved force-pushed the ql-test-source-root branch from 8b4a142 to 074bea4 Compare September 20, 2024 12:41
@hvitved hvitved added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Sep 20, 2024
@hvitved hvitved force-pushed the ql-test-source-root branch 3 times, most recently from 1968a50 to bce4d35 Compare September 23, 2024 11:52
@hvitved hvitved force-pushed the ql-test-source-root branch from bce4d35 to 5416983 Compare September 23, 2024 12:43
@hvitved hvitved force-pushed the ql-test-source-root branch from 5416983 to 1ae0049 Compare September 23, 2024 14:39
@hvitved hvitved marked this pull request as ready for review September 24, 2024 07:14
@hvitved hvitved requested review from a team as code owners September 24, 2024 07:14
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Sep 24, 2024
@hvitved hvitved force-pushed the ql-test-source-root branch from 1ae0049 to 4e7fc0c Compare September 24, 2024 07:17
RasmusWL
RasmusWL previously approved these changes Sep 24, 2024
Copy link
Member

@RasmusWL RasmusWL left a comment

Choose a reason for hiding this comment

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

Python 👍

aschackmull
aschackmull previously approved these changes Sep 24, 2024
Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

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

Java 👍

jketema
jketema previously approved these changes Sep 24, 2024
Copy link
Contributor

@jketema jketema left a comment

Choose a reason for hiding this comment

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

C++ 👍

igfoo
igfoo previously approved these changes Sep 24, 2024
Copy link
Member

@igfoo igfoo left a comment

Choose a reason for hiding this comment

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

Kotlin changes look fine

@hvitved hvitved force-pushed the ql-test-source-root branch from 4e7fc0c to 3880a89 Compare September 25, 2024 12:59
@hvitved
Copy link
Contributor Author

hvitved commented Sep 25, 2024

Rebased to resolve sub module merge conflict on internal PR.

@hvitved hvitved dismissed stale reviews from jketema, aschackmull, RasmusWL, and igfoo via ccc939f September 26, 2024 10:53
@hvitved hvitved force-pushed the ql-test-source-root branch from 3880a89 to ccc939f Compare September 26, 2024 10:53
@hvitved hvitved requested a review from a team as a code owner September 26, 2024 10:53
@github-actions github-actions bot added the JS label Sep 26, 2024
@hvitved
Copy link
Contributor Author

hvitved commented Sep 26, 2024

Rebased again, and updated some JS expected test output.

@asgerf
Copy link
Contributor

asgerf commented Sep 26, 2024

JS 👍 once the tests pass

@hvitved hvitved force-pushed the ql-test-source-root branch from ccc939f to d0ca39f Compare October 4, 2024 06:35
@hvitved hvitved merged commit db5e452 into github:main Oct 4, 2024
@hvitved hvitved deleted the ql-test-source-root branch October 4, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ depends on internal PR This PR should only be merged in sync with an internal Semmle PR Java JS Kotlin no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants