Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of .stestr caching for linux py37 job (#7053)
In the linux py37 CI job ever since #6175 we build an sdist and then install that in a venv manually in a test /tmp directory we create for running the tests. However, as part of that we were handling the .stestr history caching incorrectly. We cache the .stestr directory's times.dbm files (which contain a record of the most recent run time for each test) to provide scheduler hints to stest in future runs. But, instead of updating the .stestr cache with the data from the run we were just re-populating the data we pulled from the cache. This has also been somewhat error prone because in some cases the cache isn't downloaded correctly and will cause an error when we try to remove unecessary files from the cache and the .stestr directory doesn't exist, presumably because azure didn't pull it from the cache correctly. This commit fixes the issue by updating the generate results post processing step to correctly copy the most recent data to the cached path after the run. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information