Repository navigation
feat: show worker name, as well as platform, teams, tags, on GUI for put/get/task steps. - #4519
evanchaoli wants to merge 1 commit into
Conversation
…put/get/task steps. Resolve concourse#4517 Close concourse#4519 Signed-off-by: Chao Li <[email protected]>
4bd2b49 to
f092b3b
Compare
| if err != nil { | ||
| return err | ||
| } | ||
| step.delegate.Stderr().Write([]byte(fmt.Sprintf("Chosen worker %s: %s\n", chosenWorker.Name(), chosenWorker.Description()))) |
There was a problem hiding this comment.
what is the reasoning behind using stderr vs stdout here? Thx.
There was a problem hiding this comment.
@xtremerui There are some discussions in PR #4398 between @vito and me. I believe Concourse generated logs (sys log) should go to stderr. Going forward, @vito is thinking to add a separate log event channel to print Concourse generated logs.
|
While I do like showing worker info for steps, I would like to put it into a more structure way like creating an event type for it or put the worker info into |
|
@xtremerui I agree, UX was planning to take on #4337 and we decided to keep stderr/out clean and structure the data in the db. I don't think we should be writing this kind of info there especially since we're currently working to integrate multiple runtime backends (Kubernetes). We need a generic way to show runtime metadata. |
|
@xtremerui Current |
|
@kcmannem I guess it would take time to get features you mentioned done. Once those are out, worker info is shown with some way else, we can revert this change. But this PR will provide a quick way for OPs people to see worker info, which would be super helpful. |
|
@evanchaoli I believe the UX team might be working on this next. Its high on their list of todos. This information is available to query from the db if needed. Users probably won't care about seeing every tasks runtime info but only care when concourse breaks. I don't want to optimize for second scenario when there is a workaround available. |
|
@kcmannem Looks like #4337 is going to show initialization info with a tooltip, so I want to confirm that, as tooltip will be refreshed as initialization going forward, will all information shown by tooltip will also print to build logs? Also, @vito, what do you think about printing chosen worker to build log? |
|
@evanchaoli the point of #4337 is to better structure this kind of info in the db. It makes it available for both fly and the webpage to take advantage and display this UI in a more appropriate manner. I understand this is something a lot of users want (including ourselves), I've only pushed back since its something we're tackling very soon. |
|
@evanchaoli I don't really like the idea of printing logs into the task's output; this should be done with progress or status indicators. I would rather everyone focus on #4337 (whether we get to it or someone in the community kicks it off), as we've already got the ball rolling in terms of design and strategy. We could maybe even re-use this pattern in order to split out the image fetching logs as a separate sub-task with its own progress. At that point we'll be in a world where In general we try to avoid "quick fix" bugfixes or "quick and dirty" features if there's already a plan for a better design in sight. I would rather work towards the end goal, because if we adopt quick-and-dirty solutions it can easily result in de-prioritization of the better version because the need is diminished. |
|
OK, then I give up this PR. |
Resolve #4517
Signed-off-by: Chao Li [email protected]
Screen shot of my test result: