-
Notifications
You must be signed in to change notification settings - Fork 106
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
builds listed out of order in build-task list-builds table output #93
Comments
Proposal: order by status then by build id desc |
Builds returned by the service are ordered by the timestamp (aka, build id) when they are triggered. To me a stable ordering makes more sense as a few implementations (e.g., show logs of the last updated build) would be tricky and confusing otherwise. Client, if interested in a certain value of a certain column, can apply either a server side filter by specifying, for example, |
@djyou there's definitely a bug in the above because it doesn't do what you're saying. It's not being sorted by timestamp, The current |
@ehotinger They are ordered by record's last updated timestamp. The above example means The problem with ordering by status is that, given we have 8 statuses, if I have many The fact that we support both server and client side filtering already provides enough flexibility and any additional (implicit) ordering done by us would be confusing IMO. |
Because the last updated timestamp isn't shown in the output, it's not readily apparent in the table view why it's ordered this way. What about ordering by build start time (descending)? |
|
A potential drawback to start-time-descending format would be that a long-running build could get pushed further down the list, and eventually get hidden by the later N builds (and stay there, even after it completes). With the last-updated ordering, it'd pop to the top when it completes. |
Sorry for the spam--one other option: order by duration, then last updated. This would pop currently running builds to the top (since duration is null), but preserve the current last updated sort for all other builds, regardless of status. |
I think we all agree we'll need the ability to filter and change ordering. The question seems to be, what should the default be. |
@SteveLas It's been merged and will be released soon by CLI team. You can run the docker image https://github.com/Azure/azure-cli#docker or install Edge release https://github.com/Azure/azure-cli#edge-builds for now. |
@djyou, can we tweak this a bit to show ordering based on initial queue date? When using watch, the ordering bounces and it's a bit confusing to track. |
This has been fixed from the server side, now list builds are ordered by their |
When viewing the list of builds with
az acr build-task list-builds [...] -o table
, builds that are running aren't listed at the top of the list. This makes it more difficult to notice which build is latest, and which (if any) are currently running.Example output below. Notice that the currently running build, aa8, is listed after the previous build, aa7.
The text was updated successfully, but these errors were encountered: