Suggested imagehash rework option #4602
Closed
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.
🚀 Pull Request
Description
Proposal of how to rework graphical testing, based on discussion on #4465.
For now, do people like this approach? Broadly:
imagerepo.json
stores a list of known good files for each test, and the known hashes for each file.imagehash_update.py
can be used to updateimagerepo.json
(which holds all historically known hashes as well as the current one).idiff.py
).I envisage that you won't normally want to update imagehashes from dependency changes on a feature branch, and we'll instead do a quick fix branch then everyone can rebase to fix their graphical tests. We could put the functionality into
test-iris-imagehash
instead of Iris if that works better, though that would mean keepingimagerepo.json
there instead so maybe not?To do if people like the broad idea:
imagerepo.json
to include the alternative names that images have in thetest-iris-imagehash
repo currently (v3 vs v4)imagerepo.json
)idiff.py
andimagehash_update.py
or make them different modes of the same scriptimagehash_update.py
to use most sensible defaults, potentially pull images off the web etc.test-iris-imagehash
Consult Iris pull request check list