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

Update build script to run tests, updating packages. #416

Closed
wants to merge 9 commits into from

Conversation

rachelblasucci
Copy link
Contributor

I wasn't able to run the tests when I forked, so I upgraded to NUnit3, and then moved FsUnit to be grabbed from paket.

I'm still getting errors running the tests (below) but the project builds, and I thought I'd send over this progress. Thoughts? Either on how to fix the below, or the updates I've added?

Thanks!

  1. System.Exception: Start of process failed. Cannot start process because a file name has not been provided.
    at Fake.ProcessHelper.ExecProcessWithLambdas@79-16.Invoke(String message) in C:\code\FAKE\src\app\FakeLib\ProcessHelper.fs:line 79
    at Fake.ProcessHelper.ExecProcessWithLambdas(FSharpFunc2 configProcessStartInfoF, TimeSpan timeOut, Boolean silent, F SharpFunc2 errorF, FSharpFunc2 messageF) in C:\code\FAKE\src\app\FakeLib\ProcessHelper.fs:line 79 at Fake.Testing.NUnit3.NUnit3(FSharpFunc2 setParams, IEnumerable1 assemblies) in C:\code\FAKE\src\app\FakeLib\UnitTe st\NUnit\NUnit3.fs:line 280 at FSI_0005.Build.clo@179-18.Invoke(Unit unitVar0) at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 492

@rachelblasucci
Copy link
Contributor Author

@forki I'm not sure if this is actually a FAKE thing or maybe just an interaction between the two, but thought you might know more about what's going wrong. Any ideas? :-) Thanks!

@forki
Copy link
Member

forki commented Jul 22, 2016

can you please ask on twitter? I'm not an expert on NUnit3 - but I'm sure we'll find one

@tpetricek
Copy link
Member

Thanks a lot for looking into this - updating to NUnit 3 would be great :)

@@ -1,76 +0,0 @@
#nowarn "211"
Copy link
Member

Choose a reason for hiding this comment

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

I think we might actually need this file (for a release or something?), though I do not remember the details. /cc @matthid who probably knows more.... I think there was some intricate reason why the file had to be in this particular folder, even though it's not a normal place where we would put it.

Copy link
Member

Choose a reason for hiding this comment

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

Yep, it's there for bootstrapping reasons. Without this the build fails for multiple reasons:

  • The file is no longer found when creating the nuget package
  • The bootstrapping sanity check will no longer work

For now the build fails at an earlier point...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh, I suspect it was deleted for me and then not re-generated? I'll add it back. :-)

@rachelblasucci
Copy link
Contributor Author

rachelblasucci commented Jul 23, 2016

Sooo, question. How important is setting the FSharp.Compiler.Service version in the paket.dependencies file? Is that what's causing this error? (It's at least different than the issue listed in Issue 277?) :-)

Error:
System.Exception: Could not detect package version for FSharp.Compiler.Service ---> System.Exception: Package FSharp.Compiler.Service was not found.
at Fake.NuGetHelper.version@113.Invoke(String message) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
--- End of inner exception stack trace ---
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 127
at FSI_0005.Build.replacements@88.Invoke(String packageName) in Y:\Projects\FSharp.Formatting\build.fsx:line 89
at Microsoft.FSharp.Collections.IEnumerator.map@111.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext() at Microsoft.FSharp.Collections.SeqModule.Fold[T,TState](FSharpFunc2 folder, TState state, IEnumerable1 source) at FSI_0005.Build.clo@85-12.Invoke(Unit _arg3) in Y:\Projects\FSharp.Formatting\build.fsx:line 95 at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 492
System.Exception: Could not detect package version for FSharp.Compiler.Service ---> System.Exception: Package FSharp.Compiler.Service was not found.
at Fake.NuGetHelper.version@113.Invoke(String message) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 113
--- End of inner exception stack trace ---
at Fake.NuGetHelper.GetPackageVersion(String deploymentsDir, String package) in C:\code\FAKE\src\app\FakeLib\NuGet\NugetHelper.fs:line 127
at FSI_0005.Build.replacements@88.Invoke(String packageName) in Y:\Projects\FSharp.Formatting\build.fsx:line 89
at Microsoft.FSharp.Collections.IEnumerator.map@111.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator1.System-Collections-IEnumerator-MoveNext() at Microsoft.FSharp.Collections.SeqModule.Fold[T,TState](FSharpFunc2 folder, TState state, IEnumerable1 source) at FSI_0005.Build.clo@85-12.Invoke(Unit _arg3) in Y:\Projects\FSharp.Formatting\build.fsx:line 95 at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 492

I was able to get around the previous issues after running a paket simplify which removed the FSharp.Compiler from paket.dependencies (not pushed yet here), but now I'm seeing that error when (GetPackageVersion "packages" packageName) is called in the UpdateFsxVersions target. I could be heading down totally the wrong path :-) but figured I'd ask.

@rachelblasucci
Copy link
Contributor Author

@tpetricek: This shows as still breaking, but locally this builds entirely for me now. Any idea how to fix travis? :-)

@tpetricek
Copy link
Member

I think this has been broken for some time - thanks for the nudge to fix that. With a bit of luck, #418 will fix that....

@tpetricek
Copy link
Member

It worked! If you import latest changes in master into your PR, it should run.

@rachelblasucci
Copy link
Contributor Author

Woohoo! Then if/when this looks good to you, it's ready to be merged. :-)

@tpetricek
Copy link
Member

@matthid Could you have a quick look? You know some of the more intricate things that can go wrong here :)

@@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{194B
ProjectSection(SolutionItems) = preProject
build.fsx = build.fsx
nuget\FSharp.Formatting.CommandTool.nuspec = nuget\FSharp.Formatting.CommandTool.nuspec
packages\FSharp.Formatting\FSharp.Formatting.fsx = packages\FSharp.Formatting\FSharp.Formatting.fsx
Copy link
Member

Choose a reason for hiding this comment

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

Can we leave this line? It makes the file easier editable in Visual Studio.

@matthid
Copy link
Member

matthid commented Aug 5, 2016

Yeah looks good to me. I have marked some places regarding our most loved dependency "FSharpVSPowerTools"...

The cange in the solution file is not a stopper as it is easily added again.

@tpetricek
Copy link
Member

Should I merge this into v3 and release a new beta, so that we can test it?

@rachelblasucci
Copy link
Contributor Author

That would be awesome, assuming no one else has objections. :-)

@matthid
Copy link
Member

matthid commented Mar 22, 2017

Apparently now obsoleted by #430.
Sorry for not merging for sooooo long ...

@matthid matthid closed this Mar 22, 2017
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.

5 participants