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

SparseSetTests: Ensure no edits remain before merge #515

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

derrickstolee
Copy link
Contributor

Something strange happens with the MergeChangesOutOfTheConeWithConflict
when run in sequence with the other tests in this class. Some edited
files from previous tests cause confusion when running 'git merge'.

For some reason, this is causing a behavior change with the
sparse-index, but it seems that either behavior would be acceptable
here.

Another thing we could do is remove the ShouldContain("Merge conflict")
line and the test passes that way, too. This seems like a more robust
solution.

This will resolve the last failing test in microsoft/git#388 for Linux and macOS.

There is one more strange error happening on Windows. Will investigate.

Something strange happens with the MergeChangesOutOfTheConeWithConflict
when run in sequence with the other tests in this class. Some edited
files from previous tests cause confusion when running 'git merge'.

For some reason, this is causing a behavior change with the
sparse-index, but it seems that either behavior would be acceptable
here.

Another thing we could do is remove the `ShouldContain("Merge conflict")`
line and the test passes that way, too. This seems like a more robust
solution.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Copy link
Contributor

@jeffhostetler jeffhostetler left a comment

Choose a reason for hiding this comment

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

I'm rubberstamping this. I'm not sure why the reset is needed. It seems like the above checkout should have given you clean state.

@derrickstolee derrickstolee merged commit 089296f into microsoft:main Jun 23, 2021
@derrickstolee
Copy link
Contributor Author

It seems like the above checkout should have given you clean state.

The previous tests leave the working directory in a modified state and the git checkout commands keep those modifications (it is confusing).

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