-
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
Delete most of the Scalar product code #511
Conversation
4146108
to
c4afa8e
Compare
fadeb83
to
399d676
Compare
@derrickstolee you should be able to delete the signing and MSBuild projects too.. they're only used for signing and generating code for the non-existent product respectively 😁 |
@mjcheetham: I'm worried that without it I won't get anything that downloads the |
5d2cc2f
to
50119d6
Compare
The obvious thing of deleting the project failed, so I'm going to leave that one to another PR (if at all) because it's not as simple as the other projects. |
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
50119d6
to
75d70c1
Compare
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'm rubber stamping this. I looked thru things and it all looks good. I'm not sure what's happening with the builds failing on 1 machine and/or the signing thing.
In my opinion, our functional tests are a little more flaky in the C port, so we will want to resolve some of those issues in the coming weeks. |
I fear you are right. My take on it is that it was my mistake to rely on the global config so much. In typical usage scenarios, this does not matter: users do not concurrently register a dozen enlistments. But the Functional Tests do. To some extent, the problem was alleviated by my patch that asks for a back-off strategy to be used when creating that write lock. I expect the remaining problems to be rooted in the lack of a read lock. That is, when we read the global Git config, we do not expect there to be any problems. And those problems would only occur on Windows, anyway: on Linux/macOS, the In contrast, on Windows there is the potential that a different process is holding a lock on that file (I still suspect Defender to interfere here, but it could potentially be the My best guess is that we should actually implement a back-off strategy with a very short time-out in struct back_off_t back_off;
back_off_init(&back_off, time_out_ms);
do {
file = _wfreopen(wfilename, wotype, stream);
if (file || errno != EPERM)
break;
} while (back_off_sleep(&back_off)); This is still a bit clunky, and could potentially be wrapped in a macro, somewhat similar to how |
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.
The diff looks really awesome!
**Scalar has moved!** We deleted the product code in #511. (There was actually a too-aggressive deletion of some images that are restored in this PR.) Now, let's update the README and other docs to point to `microsoft/git` for the latest details. Include the latest description of Scalar from the `microsoft/git` docs as well as some reasoning for our move of the code. Include details for users to transition to the new version.
Draft only because I'm not sure if this will pass tests. The biggest unknown is whether or not the
microsoft/git
installer will still be downloaded during functional tests, which is the only reason theScalar
,Scalar.Common
, andScalar.MSBuild
projects still exist.Based on #505 because we need to point to
main
to trigger the workflows.