-
Notifications
You must be signed in to change notification settings - Fork 66
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
Run functional tests against Scalar-in-C #505
Run functional tests against Scalar-in-C #505
Conversation
8a222f5
to
d482d92
Compare
The prefetch refs moved in Git v2.32.0 in response to interactions with custom refspecs. This re-inserted the word "remotes" into the refspec used to fetch the prefetch refs. Signed-off-by: Derrick Stolee <[email protected]>
As is frequently the case with upstream reviews, extensive changes are necessary, and one such change was to move FSMonitor from command modes (à la `--start`, `--stop`) to subcommands (`start`, `stop`, without the double-dash). Therefore we must adjust downstream projects such as Scalar's Functional Test suite accordingly. Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
008db08
to
694234c
Compare
We expect microsoft/git to be installed on the PATH, so use that as our source for Scalar, not the recent build of the .NET project.
Signed-off-by: Derrick Stolee <[email protected]>
@derrickstolee FYI I rebased this onto I also used the opportunity to reorder and squash and drop some commits. Most notably, there were some extra files in ade3040 (e.g. a full Git for Windows installer); Would you mind verifying that I did not mess up when I turned it into 39ef264? |
Directory.Build.props
Outdated
@@ -36,14 +36,15 @@ | |||
|
|||
<!-- Version information --> | |||
<ScalarVersion>0.2.173.2</ScalarVersion> | |||
<MinimumGitVersion>v2.25.0.vfs.1.1</MinimumGitVersion> |
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.
I see we are adding this even though it is present further down. Something to clean up when we actually merge this.
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.
Hmm. Let me try to remove it.
public static string GetInternalParameter() | ||
{ | ||
return $"\"{{\\\"ServiceName\\\":\\\"{ScalarServiceProcess.TestServiceName}\\\"," + | ||
"\\\"StartedByService\\\":false}\""; | ||
return "\"{}\""; | ||
} |
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.
I think we should be able to delete this entirely.
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.
Let's try that.
Signed-off-by: Derrick Stolee <[email protected]>
Remove tests that check behavior that is unnecessary now: 1. Clones can happen anywhere. The virtualization is gone, so we don't need to worry about collisions this way. Allow users to create confusing setups. 2. We should not be locked to the strange output from previous Scalar commands. Specifically, the cache server output doesn't need to be so specific. We know from the Git tests that setting the cache server works. Signed-off-by: Derrick Stolee <[email protected]>
These tests are unnecessary now because we rely upon the Git commands themselves. The C port of Git has dropped the --batch-size parameter, and that is fine. It only existed for testing purposes, anyway.
This relies on a brittle output check. We have better tests for this in the Git codebase.
We have control over this in the Git maintenance steps. No need to check these tests.
This functionality is mostly replaced by 'git maintenance run' and we have Git tests that check 'scalar run' now.
These have different behavior now that we use the Git norms. Instead rely on the Git tests.
Signed-off-by: Johannes Schindelin <[email protected]>
The C version of Scalar reports the paths with a forward slash as directory separator, even on Windows. Signed-off-by: Johannes Schindelin <[email protected]>
The way Git creates alternate files can include a trailing newline, when the .NET implementation of Scalar did not.
This fits Git's die() error code. Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
This flag is not implemented in the C version of Scalar because there is no Scalar service anymore: all of the scheduled tasks are handled by `git maintenance` instead.
The `vsts/info` endpoint always requires authentication. In the .NET version, this is handled by Scalar directly, but in the C version, authentication is handled by the `gvfs-helper`. Since this only really matters in CI (interactive usage of Scalar with Azure Repos will ask the user to authenticate, but that's handled conveniently by the credential helper), we added support to skip that endpoint via the environment variable `SCALAR_TEST_SKIP_VSTS_INFO`. Signed-off-by: Johannes Schindelin <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
… tests We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo. Signed-off-by: Derrick Stolee <[email protected]>
We were using derrickstolee/scalar:test-scalar-in-c as a temporary branch while we review microsoft/scalar#505 and ensure that it works as a vehicle for tests in microsoft/git. That work is complete, so let's update our ref to point to the official repo.
The latest
vfs-2.32.0
branch inmicrosoft/git
includes the Scalar CLI, so start testing that version of Scalar instead of the .NET version from this repo.