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: permit to qualify build errors #970

Open
wants to merge 3 commits into
base: 17.0
Choose a base branch
from

Conversation

d-fence
Copy link
Contributor

@d-fence d-fence commented Oct 25, 2024

Identifying build errors by fingerprint is not enough. Most of the times we want to link build errors based on some criteria.

With this commit, a build error can be qualified by using regular expressions that will extract informations.

Those informations will be stored in a jsondict field. That way, we can find simmilar build errors when they share some qualifiers.

To extract information, the regular expression must use named group patterns.

e.g:
^Tour (?P<tour_name>\w+) failed at step (?P<tour_step>.+)

The above regular expression should extract the tour name and tour step from a build error and store them like:
{ "tour_name": "article_portal_tour", "tour_step": "clik on 'Help'" }

The field can be queried to find similar errors. Also, a button is added on the Build Error Form to search for errors that share the same qualifiers.

TODO

  • Decide if we can select the source field or if it will be always based on the content field
  • Decide if we store the regex_id alongside with the qualifier (probably not a good idea)

@C3POdoo C3POdoo requested a review from a team October 25, 2024 13:55
Identifying build errors by fingerprint is not enough.
Most of the times we want to link build errors based on some criteria.

With this commit, a build error can be qualified by using regular
expressions that will extract informations.

Those informations will be stored in a jsondict field. That way, we can
find simmilar build errors when they share some qualifiers.

To extract information, the regular expression must use named group
patterns.

e.g:
`^Tour (?P<tour_name>\w+) failed at step (?P<tour_step>.+)`

The above regular expression should extract the tour name and tour step
from a build error and store them like:
`{ "tour_name": "article_portal_tour", "tour_step": "clik on 'Help'" }`

The field can be queried to find similar errors. Also, a button is added
on the Build Error Form to search for errors that share the same
qualifiers.
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.

1 participant