[IMP] runbot: permit to qualify build errors #970
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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