mirror of https://github.com/databricks/cli.git
6187803007
## Changes A bug in the code that pulls the remote state could cause the local state to be empty instead of a copy of the remote state. This happened only if the local state was present and stale when compared to the remote version. We correctly checked for the state serial to see if the local state had to be replaced but didn't seek back on the remote state before writing it out. Because the staleness check would read the remote state in full, copying from the same reader would immediately yield an EOF. ## Tests * Unit tests for state pull and push mutators that rely on a mocked filer. * An integration test that deploys the same bundle from multiple paths, triggering the staleness logic. Both failed prior to the fix and now pass. |
||
---|---|---|
.. | ||
libs/filer | ||
README.md |
README.md
Interface mocking
Use this directory to store mocks for interfaces in this repository.
Please use the same package structure for the mocks as the interface it is mocking.
See https://github.com/uber-go/mock for more information on how to generate mocks.