Skip to content
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

SecondCloneSucceedsWithMissingTrees: Attempt 2 #336

Merged
merged 2 commits into from
Oct 4, 2018

Conversation

derrickstolee
Copy link
Contributor

The previous approach to this test relied on deleting packfiles from the shared object cache. That failed on Windows because the .idx files have restrictive permissions that cause the delete to fail.

Instead, use the loose object downloads to hydrate the commit and root tree for the WellKnownBranch and then do a clone pointing at that branch. This should trigger the failure case.

Resolves #330

Copy link
Contributor

@sanoursa sanoursa left a comment

Choose a reason for hiding this comment

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

This test looks great. Were you able to confirm that it fails without the previous fix?

@derrickstolee
Copy link
Contributor Author

I can only run the functional tests through PR builds, so I'm adding a commit that takes the fix out to verify the test fails.

@derrickstolee derrickstolee force-pushed the checkout-gaps branch 4 times, most recently from c3551e9 to 6adbbd4 Compare October 4, 2018 20:21
The previous approach to this test relied on deleting packfiles from the shared object cache. That failed on Windows because the .idx files have restrictive permissions that cause the delete to fail.

Instead, use the loose object downloads to hydrate the commit and root tree for the WellKnownBranch and then do a clone pointing at that branch. This should trigger the failure case.
This doesn't match, as we expect it to!
@derrickstolee
Copy link
Contributor Author

Ok. I finally got a failed test for the right reason:

Cannot clone @ /GVFS.FT/test/a30714a88c364624a9ad
Error: Could not complete checkout of branch: FunctionalTests/20170602, fatal: unable to read tree 47334ac02e57e3ae53cf4f272a8764fcaa98c57b

Trying again with the fix to ensure it passes.

@derrickstolee derrickstolee merged commit a3cb262 into microsoft:master Oct 4, 2018
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.

3 participants