-
Notifications
You must be signed in to change notification settings - Fork 586
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
FAKE5 Targets always complete as "Failed" #1929
Comments
Can you elaborate a bit I don't get it. Maybe a screenshot/sample/command line you use would help? |
Sure, our scripts are open source, so if you look at this repo https://github.com/15below/Build.Tools/tree/NewTools Started |
Looking at the logs for https://ci.appveyor.com/project/matthid/fake-6w516/build/1.0.1571 it would seem that you get (Success). I wonder if there is something in the code for the target which sets the status... |
So it seems to be a minor annoyance - fake printing the wrong stuff, correct? |
I think this is related to 9d29f00. Idea is to report "tasks" as failed when |
@matthid correct it is a minor issue, as build passes fine. |
Instead of using a disposable, cant u just wrap everything in a function that forces u to return succes/failure and handle the try catch finally inside whatever calls the function. That way you cant forget to call MarkSucces(). I am pretty sure most people will just forget to call it. As in |
Yes we could add that as additional API, because we no longer do breaking changes at this point. |
Actually I failed two times because the default should be |
Can someone please explain how I should be writing the target then to use mark success. As I'm a bit confused and can't see in docs |
Sorry I didn’t make that clear. I think it is an internal bug. Just tried to clarify the issue and reasoning if someone wants to step in |
But if I have a target which I only do private stuff in, I don't want it to report warning if it was ok. Imo, if it has an error thrown, it's error. |
Ok but it’s not so easy to detect. But yeah I guess we just need to fix this bug and it will be fine again |
Psudo code: Try Might not even need the with as default is failure |
I found the problem and it is fixed with rc13 |
Description
The logging of a target always finished with "Finished (Failed) 'TargetName' in
It would appear the the default state on tracing is Failed, and this is never set to success in the target helper if it runs to completion.
The text was updated successfully, but these errors were encountered: