Skip to content

Conversation

@bjlittle
Copy link
Member

@bjlittle bjlittle commented Oct 13, 2016

The missing part of the new image test work-flow, to allow developers to create missing/new image test expected result files and associated entries in the imagerepo.json file.

@bjlittle bjlittle added this to the v1.11 milestone Oct 13, 2016
lock = filelock.FileLock(fname)
# The imagerepo.json file is a critical resource, so ensure thread
# safe read/write behaviour via platform independent file locking.
with lock.acquire(timeout=600):
Copy link
Member Author

@bjlittle bjlittle Oct 13, 2016

Choose a reason for hiding this comment

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

@marqh A suitably high timeout ...

Having the graphics tests fighting over the imagerepo.lock doesn't seem to impact the overall running time of the tests in travis ... but it's hard to tell due to the variable loads on travis.

I don't think this is a problem, but we could choose to only acquire a lock if the IRIS_TEST_CREATE_MISSING environment variable is set - as this means there could be potential writing to the imagerepo.json.

In travis the IRIS_TEST_CREATE_MISSING environment variable should never be set. So there is the opportunity to avoid any potential lock contention overhead that may be incurred.

My expectation is that the IRIS_TEST_CREATE_MISSING environment variable will only be set by the developer on their desktop when needed.

@bjlittle bjlittle mentioned this pull request Oct 13, 2016
@bjlittle
Copy link
Member Author

This PR requires some extra work ... in-bound

@bjlittle
Copy link
Member Author

@marqh Ping ...

@bjlittle
Copy link
Member Author

@marqh LGTM

@bjlittle bjlittle mentioned this pull request Oct 14, 2016
@bjlittle bjlittle force-pushed the check-graphic-create-missing branch from 39db672 to 915be32 Compare October 14, 2016 13:16
@bjlittle
Copy link
Member Author

@marqh Rebased and good to go ...

@marqh
Copy link
Member

marqh commented Oct 14, 2016

thanks @bjlittle

@marqh marqh merged commit 5a80a11 into SciTools:master Oct 14, 2016
@marqh marqh mentioned this pull request Oct 27, 2016
@bjlittle bjlittle deleted the check-graphic-create-missing branch November 3, 2017 14:32
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