-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring scripts so the build server can run each in-step
- Loading branch information
Showing
3 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like reinventing the target dependencies in powershell.
I assume it has something to do with QED, but can you explain the problem? Maybe we can find a solution in FAKE.
/cc @half-ogre
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@forki I wanted to run build steps independent of eachother, for a couple of reasons:
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's interesting. We tried to cache output data, but in practice we sometimes look on the live output in order to identify problems. At the moment I tend to trace as much as possible. What's the reason you want to hide it?
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm making a broad generalization here that "on the build server you only really care about output when things go wrong"
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep that's what I meant. But adding another possible error source is maybe not a good idea.
That said, if we want to support parallel targets again (see fsprojects/FAKE#201) then caching the target output is one step in this direction.
We could support such a mode in FAKE if that helps.
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I do love the goal of having one big build chain that runs every time, the way it enforces prerequisites means that I can't run individual steps.
It's a bit Danger Zone but I'm not that fussed by it.
Thoughts?
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really feel this way. When the build is green, I ignore it all, so if it's there it'll just be ignored anyway.
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So do we actually care about the build output being nicely formatted like this?
How would you like it to be presented?
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shiftkey I don't feel strongly about it, at least yet. At the moment I just want to see it working.
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this for a while and I think it's not good to hide build output. When something goes wrong I need the whole output since the error is not always in the last target but often hidden somewhere else.
I propose a different strategy. Teamcity uses different tracing levels to indicate the importance of a build output line. By default only important lines and errors are shown. But if you want you can always press "display all messages".
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw: a lot of the FAKE tasks are already optimized in this way.
7c64e06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that.