matplotlib / matplotlib/pytest-mpl
Improving hash library workflow
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 272
- Forks
- 53
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
For the current workflow, if there are hash library test failures for a pytest session, then these are easily discoverable thanks to the rich loveliness of the html figure comparison.
However, given any single hash library failure, the outcome is essentially three-fold:
- the graphic test has detected a genuine failure that requires to be resolved (somehow)
- the
toleranceof the test requires to be increased - a new hash value requires to be associated with the test and recorded in the hash library along with a new image
The choice of including or not including a new hash can result in a blend of the existing hash library and a new hash library (as opposed to accepting all new hashes).
We could extend the workflow to offer the user the choice to manually accept or reject any new proposed hashes. This would ease the burden of customising the hash library and also resolving any result-failed-diff.png images, all of which should then be placed under version control (somewhere).
We adopt this approach on SciTools/iris and SciTools/tephi, for example see https://github.com/SciTools/tephi/pull/78.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par examiner le workflow de session pytest, la gestion de la bibliothèque de hachage et les artefacts result-failed-diff.png décrits dans l’issue. Comparez l’approche utilisée dans SciTools/tephi pull request 78 ; le travail serait terminé lorsque les utilisateurs pourront accepter ou rejeter manuellement les hashes proposés et que les hashes et images résultants seront conservés sous contrôle de version.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- testing-qa, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100