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

Fix sprintf format in TemplateTests::getDebuggingInfo #2846

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Dec 24, 2024

When looking at the remaining test failures when running on .NET 8 I noticed that some of the test error messages contained

...Debugging Info: Fake.DotNet.Cli.IntegrationTests.TemplateTests+getDebuggingInfo@58-2 Result: ...

and I think that '+getDebuggingInfo' is because the sprintf in getDebuggingInfo contains 3 %s but only two parameters, so it's actually being treated as a partially applied function by the string interpolcation in isProcessSucceeded rather than a string?

Looks like it's been like that for some time - not sure what the original intent was

When looking at the remaining test failures when running on .NET 8 I noticed that some of the test error messages contained

...Debugging Info: Fake.DotNet.Cli.IntegrationTests.TemplateTests+getDebuggingInfo@58-2 Result: ...

and I think that '+getDebuggingInfo' is because the sprintf in getDebuggingInfo contains 3 %s but only two parameters, so it's actually being treated as a partially applied function by the string interpolcation in isProcessSucceeded rather than a string?

Looks like it's been like that for some time - not sure what the original intent was
@Numpsy
Copy link
Contributor Author

Numpsy commented Dec 24, 2024

Example of the existing test output when an error occurs: https://github.com/fsprojects/FAKE/actions/runs/11109335183/job/30864439817?pr=2818#step:9:8381

Copy link
Contributor

Test Results

    9 files  ±0      9 suites  ±0   43m 59s ⏱️ + 2m 57s
  439 tests ±0    439 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 251 runs  ±0  1 251 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 298d448. ± Comparison against base commit 048b97b.

@xperiandri xperiandri merged commit 83c7b22 into fsprojects:master Jan 8, 2025
5 checks passed
@Numpsy Numpsy deleted the fix+sprintf branch January 8, 2025 11:08
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.

2 participants