-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Build: plan for better description of build state and build status #9110
Comments
Note: this is just for planning for now, but want at least the discussion on our roadmap. I'm happy to pair on planning, @humitos |
I wrote my thoughts about build's states and build's user-facing messages in #3399 (comment) |
Another note: It seems I don't have any ideas for how I'd change the implementation, but if I could only make one change, dropping In the conversation about adding a I think a build state "cancelled" makes sense, as it implies a separate final state without a success/failure, much like all the other states do not imply a success/failure. |
I'm not considering dropping The main change I'm planning here is that "the build process itself" would be able to attach a new notifications to the build by creating a |
I'm breaking this conversation out from #9100, which was around a few buggy sort of issues for build state. We had some great points pop up in #9100 though, but they are longer term and a larger project.
Let's discuss those more here!
Note: we continued discussing this in #9100, so you'll want to review there first
To start, @humitos pointed out a previous discussion, at #7123 (comment):
I believe what we are describing so far is consolidating all of the attributes/methods around build status/state/failed/success into these two concepts (this is just a loose approximation):
Additional notes
Notes so far on implementation details:
Build.statuses
is the most important. That is, which to show to the user as the main failure, the top most failure, or which status takes precedence in status display -- for example, if aBuild.statuses = [BuildConfigWarning, BuildTimedOutError]
orBuild.statuses = [BuildConcurrencyRetryStatus, BuildSuccessfulStatus]
Build.status = [BuildSuccessful] is the one I'm not sold on. Though it's a little redundant,
Build.success = True` is explicit and easy to query.Build.status
a JSON field.Needed
The text was updated successfully, but these errors were encountered: