-
Notifications
You must be signed in to change notification settings - Fork 300
Check graphic create missing #2192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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): |
There was a problem hiding this comment.
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.
|
This PR requires some extra work ... in-bound |
|
@marqh Ping ... |
|
@marqh LGTM |
39db672 to
915be32
Compare
|
@marqh Rebased and good to go ... |
|
thanks @bjlittle |
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.jsonfile.