Skip to content

Conversation

@pp-mo
Copy link
Member

@pp-mo pp-mo commented May 9, 2019

An almost complete rewrite of iris.tests.test_image-json.
Instead of using the GitHub API to interrogate the test-iris-imagehash repo, we now just fetch an 'image listings file' which is basically the text of an ls *.png.
This is because the (unauthenticated) GitHub API access was proving very unreliable.

Note : relies on SciTools/test-iris-imagehash#23 , but that is already merged.

@pp-mo
Copy link
Member Author

pp-mo commented May 9, 2019

I think this is ready to go now.
However, there is still an outstanding problem with Sphinx doctests, addressed by #3310.
So we probably want that in first, and maybe rebase onto it.

@lbdreyer
Copy link
Member

I am going to respin the tests now that #3310 is merged

@lbdreyer lbdreyer added this to the v2.1.1 milestone May 10, 2019
'/gh-pages/v4_files_listing.txt')
req = requests.get(listingfile_uri)
if req.status_code != 200:
raise ValueError('Get failed on image listings file: {}'.format(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could capitalise GET to make it clear it is a http request. Otherwise, the error reads a bit funnily out of context

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I see what you mean 😁

@lbdreyer lbdreyer modified the milestones: v2.1.1, v2.2.1 May 10, 2019
@lbdreyer
Copy link
Member

Thanks for all your work on this @pp-mo!

It will be great to get this test running!

@lbdreyer lbdreyer merged commit 0165d44 into SciTools:v2.2.x May 10, 2019
@lbdreyer lbdreyer mentioned this pull request May 10, 2019
lbdreyer pushed a commit to lbdreyer/iris that referenced this pull request May 28, 2019
* Test-imagehash uris checked against listing file instead of github api listing.

* Licence header fix.

* Remove redundant import + skip; fix bytes decode; improve error message; clarify comments.

* Improved error message.
lbdreyer pushed a commit to lbdreyer/iris that referenced this pull request Jun 3, 2019
* Test-imagehash uris checked against listing file instead of github api listing.

* Licence header fix.

* Remove redundant import + skip; fix bytes decode; improve error message; clarify comments.

* Improved error message.
lbdreyer pushed a commit to lbdreyer/iris that referenced this pull request Jun 3, 2019
* Test-imagehash uris checked against listing file instead of github api listing.

* Licence header fix.

* Remove redundant import + skip; fix bytes decode; improve error message; clarify comments.

* Improved error message.
@pp-mo pp-mo deleted the imagehash_listfile_for_fixbranch branch October 6, 2021 13:29
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.

2 participants