Skip to content
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

[IMP] runbot: refactor build error models #967

Merged
merged 7 commits into from
Nov 14, 2024

Conversation

Xavier-Do
Copy link
Contributor

@Xavier-Do Xavier-Do commented Oct 22, 2024

The initial idea to link an error to another one was a quick solution to group them if they where related, but this became challenging to compute metada regarding errors.

  • The displayed error message was not always consistent with the real root cause/the error that lead here.
  • The aggregates (lets says, linked buils ids) could be the one of the error, or from all error messages. Same for the versions, first seen, ..
    This is confusing to knwo what is the leist we are managing and what is the expecte result to display

Main motivation:
on a standard error page (will be changed to "assignment"), we want to have the list of error message that is related to this one. We want to know for each message (a real build error) what is the version, first seen, ...
This will give more flexibility on the display,

The assigned person/team/test-tags, ... are moved to this model
The appearance data remains on the build error but are aggregate on the assignation.

@C3POdoo C3POdoo requested a review from a team October 22, 2024 13:20
@Xavier-Do Xavier-Do force-pushed the 17.0-next-build-error-model-xdo branch 6 times, most recently from e7f0bd0 to b1722e8 Compare November 5, 2024 13:31
build_count = 0
first_seen_build_id = first_seen_date = last_seen_build_id = last_seen_date = None
if error_id in vals_by_error:
error_vals = [vals_by_error[error_id] for error_id in all_errors]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
error_vals = [vals_by_error[error_id] for error_id in all_errors]
error_vals = [vals_by_error[error_id] for error_id in all_errors if error_id in vals_by_error]

To avoid script failure when to the error has no build linked.

Xavier-Do and others added 4 commits November 13, 2024 09:28
The initial idea to link an error to another one was a quick solution
to group them if they where related, but this became challenging
to copute metada regarding errors.

- The displayed error message was not always consistent with the real
root cause/the error that lead here.
- The aggregates (lets says, linked buils ids) could be the one of the
error, or from all error messages. Same for the versions, first seen, ..
This is confusing to knwo what is the leist we are managing and what is
the expecte result to display

Main motivation:
on a standard error page (will be changed to "assignment"), we want to
have the list of error message that is related to this one. We want to
know for each message (a real build error) what is the version,
first seen, ...
This will give more flexibility on the display,

The assigned person/team/test-tags, ... are moved to this model
The appearance data remains on the build error but are aggregate on the
assignation.
Fix a failure when a build error is not linked to any build. It happens
when a build error was merged into another.
@d-fence d-fence force-pushed the 17.0-next-build-error-model-xdo branch from 7bb9a8d to e3602e5 Compare November 13, 2024 10:35
@d-fence d-fence force-pushed the 17.0-next-build-error-model-xdo branch from 2fa1203 to 6beede9 Compare November 13, 2024 12:56
@d-fence d-fence merged commit 3197f75 into 17.0 Nov 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants