-
Notifications
You must be signed in to change notification settings - Fork 225
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
Building under Manjaro Linux #302
Comments
Ok, I went further and tried running the tests.
Looking around, I found this issue: OmniSharp/omnisharp-roslyn#1548 And sure enough, adding Now, on to figure out why 184 of them failed (91 failures, 93 errors) |
I'm running latest openSUSE Tumbleweed, 20210113 snapshot with kernel 5.10.5-1 and mono:
I have mono-complete pattern installed and I'm running Issue 1: NSIS issue from PR #301 Issue 2: Issue 3 Removing the
Removing the
This is a problem with RoslynTargetsPath which seems to point to /usr/lib/mono/msbuild/15.0/bin/Roslyn on my system.
Either ways seems to give the same horror:
There are some small additional adjustments to be done here: echo lines from line 170 to 174 should be moved at line 178 and last echo line should be |
Thing is, this arg must be removed when Clearly, it appears that depending on the distribution, some things are available and some others are not. |
Hmmm... |
@obones L.E: Seems like my mono environment was broken. I was using the official mono-project mono packages and at some moment in time I switched to the openSUSE-provided ones without switching and upgrading msbuild, msbuild-libhostfxr and msbuild-sdkresolver to the ones provided by Mono:Factory. Issue 3 from previous comment works by removing I'm thinking that perhaps we should probe first for msbuild in $PATH and if it does not exist then we call mono MSBuild.dll ccnet.sln The tests fail for me (on a local branch containing your PRs #300, #304, #305, #306) with the following error:
|
Well, ok, here is the beginning of the log when building:
So clearly, I was wrong about But there is one thing for sure, using just
This is why I just use the |
So just removing the basedir attribute from exec does not work for you? |
Hum... I did not understand your suggestion, but now it makes sense. Here is what I have:
And this works fine indeed.
There is this comment at the top of these actions:
So I have disabled this entire section and that allowed to run the build script. |
Just so you know, with today's latest changes in #304 and #305, I have the following result:
So all is good, the tests are passing! |
Reopening this since running BUILD FAILED /data/Proiecte/OSS/CruiseControl.NET/CruiseControl.NET/ccnet.build(267,10): Total time: 64.5 seconds. Nant: runTests target exit code: 1 |
Could it be a transient error? |
It seems to be a nunit agent error.
I think we should mark all tests in RegistryTest as unavailable on linux. |
Well, I excluded the only one that as causing me issues, but maybe the entire test suite should be excluded indeed. What are the other 11 failing tests? |
@obones
It should not fail even if the BitKeeper path is a Windows path. Not sure about that Key in collection error since I cannot build the ccnet.sln due to jscript and speech refs - but there is a way to ignore them using compilation flags and a Directory.Build.props - I just have to remember how I did it 😀 |
As a side note, there's a linux version of BitKeeper. |
I believe the "setup was not matched" is because of the previous exception that prevents the code that would use the mock from ever running. |
This ticket is here to discuss what I had to do to get a build working on my Manjaro Linux, on top of the changes that I already submitted as pull requests.
I am not that confident about the changes which is why I want to discuss them here first.
Initial run gives this error:
This is fixed by editing
Tools\Cake\GitVersion.CommandLine.4.0.0\tools\LibGit2Sharp.dll.config
and replacing theos="linux"
line with this one:I got a hint of this by looking at this message but I'm not sure this can be fixed by CCNet itself
Then, I had to modify
ccnet.build
at line 177 because it saysmono
here. However, doing this, it tries to run a binary calledmono
from theproject
folder. The exact error message is this:I thus replaced
mono
with${msbuild.file}
just like the line above, but it failed a bit later withmsbuild
complaining that it was receiving multiple projects to build.This comes form the fact that there is this line as the first argument for the execution:
Well, I believe it was intended to be
${msbuild.file}
instead of justmsbuild.file
but in any case, it's not required at all as it gets interpreted as the name of a project to build.After having removed that
arg
line, I was able to run thebuild.sh
script to completion.Any thoughts/opinions on this are welcome
The text was updated successfully, but these errors were encountered: