Skip to content
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

C#: Shorten test target names to make Windows happy. #18245

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

criemen
Copy link
Collaborator

@criemen criemen commented Dec 8, 2024

With this, we can finally re-enable the C# unit tests on Windows (no more bazel errors about path length limitations).

The target name appears 3/4 times in the relevant path, so shortening it from the original names to "t" fixes our long-path problem.

@github-actions github-actions bot added the C# label Dec 8, 2024
@criemen criemen force-pushed the criemen/csharp-win-tests branch from d8aeb70 to 18560cd Compare December 9, 2024 09:54
@criemen criemen marked this pull request as ready for review December 9, 2024 09:56
@criemen criemen requested review from a team as code owners December 9, 2024 09:56
@@ -4,7 +4,8 @@ load(
)

codeql_xunit_test(
name = "Semmle.Extraction.Tests",
# short name as we run into long path limitations on Windows
name = "t",
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use different short names for each project?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure! Let's see if 4 characters are too much already or not.

@criemen criemen force-pushed the criemen/csharp-win-tests branch from c739f19 to 798b86f Compare December 9, 2024 11:28
@criemen
Copy link
Collaborator Author

criemen commented Dec 9, 2024

It seems when I ported the test suite to Bazel, I forgot to enable Semmle.Util.Tests. Mea culpa!
I just discovered that, and the tests do fail on CI. I'll log a separate issue with your team about that, for now I've left the

@criemen criemen requested a review from michaelnebel December 9, 2024 11:28
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

LGTM!
Thx!! 🎅

@criemen criemen merged commit 57053e8 into main Dec 9, 2024
17 checks passed
@criemen criemen deleted the criemen/csharp-win-tests branch December 9, 2024 11:57
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