- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
Moving the build scripts out to the public repo and other cleanups #1282
Conversation
f0c11f9    to
    d0ebe13      
    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.
A few comments, but also I'm getting:
error CS0006: Metadata file 'D:\projects\VisualStudio\submodules\reactiveui\ReactiveUI.Testing\bin\Debug\Net45\ReactiveUI.Testing.dll' could not be found
This assembly seems to be referenced from UnitTests but we're not actually building it now. It looks like the reference can safely be removed however.
| { | ||
| public string DiffHunk { get; set; } | ||
| public int LineNumber { get; set; } | ||
| public event EventHandler Disposed = delegate { }; | 
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.
This member can just be removed: it's not implementing an interface or anything.
|  | ||
| if (disposing) | ||
| { | ||
| linesChanged.Dispose(); | 
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.
A PullRequestSessionFile can be a shared instance between multiple clients, disposing of linesChanged here would unsubscribe all clients. IMO this class shouldn't be disposable, or at least the Dispose method shouldn't dispose linesChanged as this will break things.
|  | ||
| public void Dispose() | ||
| { | ||
| Disposed?.Invoke(this, EventArgs.Empty); | 
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 don't think = delegate { }; is needed as Disposed is actually called.
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.
All use of delegate { } gone now.
| public event EventHandler IsDirtyChanged; | ||
| public event EventHandler IsReadOnlyChanged; | ||
| public event EventHandler<RecreateContentEventArgs> RecreateContent; | ||
| public event EventHandler IsDirtyChanged = delegate { }; // IsDirty is always false. | 
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 I'd prefer these unused events to be declared as explicit interface implementations with empty add and remove blocks, even though it's a bit more verbose - this syntax doesn't make clear to me what is happening...
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.
Indeed. It's concise, but not exactly clear!
| /// repository on disk and in the editor. | ||
| /// </remarks> | ||
| public class PullRequestSession : ReactiveObject, IPullRequestSession | ||
| public class PullRequestSession : ReactiveObject, IPullRequestSession, IDisposable | 
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.
Again, this is a shared object so shouldn't be getting disposed.
|  | ||
| var msg = string.Format(CultureInfo.CurrentUICulture, Constants.Notification_RepoCreated, newrepo.Name, newrepo.CloneUrl); | ||
| msg += " " + string.Format(CultureInfo.CurrentUICulture, Constants.Notification_CreateNewProject, newrepo.LocalPath); | ||
| var msg = String.Format(CultureInfo.CurrentCulture, Constants.Notification_RepoCreated, newrepo.Name, newrepo.CloneUrl); | 
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.
Nit: the capitalization of string probably shouldn't have been changed here.
Leave `StartsTrueBecomesFalseWhenCompleted` as an intermediately failing test for now.
…ub/VisualStudio into shana/build-system-overhaul
0a56e6d    to
    a1ce93d      
    Compare
  
    | I've fixed all but one of the  Unfortunately I'm not sure there's anything we can do about this one, due to the way VSIX packaging works. I think the  | 
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.
Changes look good @jcansdale . Just one q for @shana.
| scripts\Run-Nunit.ps1 TrackingCollectionTests 180 Release -AppVeyor | ||
| scripts\Run-Xunit.ps1 UnitTests 180 Release -AppVeyor | ||
| - ps: scripts\test.ps1 -AppVeyor | 
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.
@shana do we want to use appveyor's automatic test detection? https://www.appveyor.com/docs/running-tests/#selecting-assemblies-andor-categories-to-test
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.
Yeah, we just need to consolidate all the tests in one place so we can have AppVeyor run them with the correct categories ignored. We also need to consolidate the test categories to be the same for everyone.
…-overhaul Backport of #1282 Build system overhaul to the 2.3.4 tree
It's much easier for everyone if the build scripts are out in the public so everyone can use them, and all CI systems use the same scripts so that things aren't missed.
This:
scriptsdirectory