Skip to content

Better primer tests : more reliable, easier to understand, and more stable #7738

Open
@Pierre-Sassoulas

Description

@Pierre-Sassoulas

Current problem

  • New false positives can appear when a commit is added on one of the primed repository. we ignore ir when it's unrelated with the current MR then we never think about it again
  • When the primer crash there's no message given in the output, false positive unnecessary-list-index-lookup for enumerate #7685 (comment)
  • General lack of stability of primer due to caching or other issues
  • When the content of the message change but the location and symbol/msgid is the same there's a new message and deleted message so it's harder to see what happened .

Desired solution

  • Launch primer on fixed commit so we don't have unrelated change in every MR
  • Upgrade commit periodically (before release ?) so we actually check the new messages (false positive ?) at some point.
  • Better logging in case of crash with the traceback being correctly printed
  • Maybe more unit tests to reduce the number of hard to debug issue
  • Finish [primer] Create a class for easier comparison of pylint results #6984 to use a diff on modified message instead of having an addition and deletion
  • Use default values and not our own pylintrc values for more stability and to see what standard user without configuration would have

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions