-
Notifications
You must be signed in to change notification settings - Fork 780
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
Some tests always fail with build -testDesktop, and some always fail with build -testCoreClr #10032
Comments
@abelbraaksma , again not on my machine, can you run them -binarylog and post your build logs, I think I need to figure out what bits you are using. Thanks Kevin |
Interesting. The other one was on the wrong branch, as I mentioned there (I closed that issue), but here I double checked. I'll run them again with binary logs enabled. |
@abelbraaksma , by and large these options are expected to work. They exist, because they are a core part of my workflow. I think most other people work a bit differently. But everyone here laughs at me as the notepad developer. Because my editor of choice is ultraedit, and it has no f# integration at all. Kevin |
@KevinRansom Do you mean that for you something like (the build.binlog is 35MB in size, even after compression, and Github doesn't allow uploading, hopefully these logs are enough to get the details you need)
Intriguing! Means you're probably very good at memorizing library functions and stuff, given that you don't have context sensitive help and completion ;). |
Btw, what do you use to read the binlog files? I seem to be able to unzip them, but that still leaves a lot of null chars and other weird stuff littered through the files. |
@abelbraaksma , I use them a lot, it's why they're there. The set up to run them used to be quite fragile, but I don't think it is any more. For me they mostly work, ... and take a longish time. The thing that I do do, a lot more than anyone else I think is run git clean -fxdq, and I have a kill script that kills the process most likely to be holding on to msbuild and coreclr instances. I pretty much only run them -c release. because debug messes with codegen to much I think running them vs also running fsharp or visualfsharp.sln may be an issue. It looks like:
As an experiment, on my machine now I will run fsharpqa, and report back on the results: Kevin |
@abelbraaksma you should use https://msbuildlog.com/ to view the binary log files. There's even an avalonia-based version that you can build from source for linux/mac analysis. This is what I use to great effect. |
@KevinRansom I recently added that info to the
I do that too (which is how I found out a while back that processes are hanging, actually), or I use
Good point (was also added to the
Wow! After months of on and off struggling with those tests, I've never seen a "proof" that it can actually "just work". I'm going to try again if I can make it work without @baronfel, thanks! |
That's why I figured out a way to run them with a test-filter, which makes using these build commands a lot more useful: run one, two, or many tests makes a difference ;). They don't work with Cambridge/QA tests as they are not NUnit/xUnit tests, but those filters do work for anything else. I believe I needed to hack something for it to make it work, though (the |
@abelbraaksma When you create a command shell, how do you do it? I have an Administrator shell, and I run the Developer script from the rtm Visual Studio, I do run Windows Terminal, and setting that up to run administrator requires is a bit of faffing about. |
Administrator is not required, the benefit is that we can run ngen on the protocompiler and built compiler. |
For rewriting the test guide, I tried all commands (well, perhaps not all) on an admin and normal and dev prompt, and I found the results were equal,so I figured the old rule that admin was needed didn't apply anymore. |
Yes, if I do a lot command work I use ngen too, but for these runs I didn't. It does make everything run a lot faster. (current test is in a non admin shell dev 2019 prompt) |
which release of dev2019? |
Just running a non-admin build and test of fsharpqa. |
Nah that should work fine. |
Last run was after a verified |
I had noticed they were all scripting tests too ... |
Skype? |
Hmm, it seems to just test the error:
Other tests failing (reported separately) were because my system is culture nl-NL. I'll dive into the tests, maybe it throws a different error before this that may be caused by the culture. |
Yeah, hold on, I'll find my headset ;) |
Closing |
testDesktop
Found while working on #10031. Basically, running
build -testDesktop
returns these errors, regardless of settings like-ci
or-c Debug/Release
FSharp.Compiler.Scripting.UnitTests.InteractiveTests.System.Device.Gpio - Ensure we reference the runtime version of the assembly
FSharp.Compiler.Scripting.UnitTests.InteractiveTests.Eval script with invalid PackageName should fail immediately
FSharp.Compiler.Scripting.DependencyManager.UnitTests.DependencyManagerInteractiveTests.Multiple Instances of DependencyProvider should be isolated
FSharp.Compiler.Scripting.DependencyManager.UnitTests.DependencyManagerInteractiveTests.Use Dependency Manager to resolve dependency
testCoreClr
I've logged these separately, as these may warrant some discussion: #10030.
The text was updated successfully, but these errors were encountered: