-
Notifications
You must be signed in to change notification settings - Fork 132
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
Running --minimal smoke-tests in Ubuntu 22.04 #2824
Comments
@mirespace, I have a couple suggestions for the two different attempts you tried.
|
Hi @MichaelSimons! I run all the process from the scratch again. To force the parameters in the .sh script, I made this patch:
I didn't realize when open the issue that it fails because the bin folder is not present:
because it would be done by so, directly, it can't be called.
It failed a first time for the xUnit.net test:
And, no, the
complete file is (indeed, only this log has been generated):
|
[Triage] Closing as the recently changes to the smoke-tests removed the script. The ability to run tests in an offline mode is tracked with #2844. |
Hi, I'm trying to use the smoke tests in https://github.com/dotnet/installer/tree/release/6.0.1xx/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests as building tests for dotnet packaging in Ubuntu 22.04 using tag 6.0.103-source.build. I know this is kind of legacy as per #1654, but by now is what I'm executing.
I got some problems executing it from the building. First was the smoke-test.sh file, I had to correct the artifacts folder:
After that, If I execute manually it (
./assets/smoke-tests/smoke-test.sh --dotnetDir /build/dotnet6-KxJTNR/dotnet6-6.0.103/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/Release/net6.0/.dotnet --projectOutput --archiveRestoredPackages --targetRid ubuntu.22.04-x64
) is all OK -log attached all-tests.log - (except for me because of the part where it's downloading stuff to be able to run the tests).So, let's go to the problems:
./assets/smoke-tests/smoke-test.sh --dotnetDir {Directory.GetParent(DotNetHelper.DotNetPath)} --projectOutput --archiveRestoredPackages --targetRid {Config.TargetRid} --minimal --excludeOnlineTests --excludeOmniSharpTests
all resolved is./assets/smoke-tests/smoke-test.sh --dotnetDir /build/dotnet6-KxJTNR/dotnet6-6.0.103/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/Release/net6.0/.dotnet --projectOutput --archiveRestoredPackages --targetRid ubuntu.22.04-x64 --minimal --excludeOnlineTests --excludeOmniSharpTests
:Therefore I can't use this as a workaround for the next point @MichaelSimons :( (although I'm working on how to download this stuff while creating the tarball... no good progress on this yet).
VERBOSE=1 ./build.sh --run-smoke-test
allowing to download requisites (as we see it worked manually previously we suppose it has to work... it doesn't):How can it be possible if the command stated here
Executing: ./assets/smoke-tests/smoke-test.sh --dotnetDir /build/dotnet6-aZycfo/dotnet6-6.0.103/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/Release/net6.0/.dotnet --projectOutput --archiveRestoredPackages --targetRid ubuntu.22.04-x64
worked manually before ? I put some prints out in the SmokeTest.Cs file for executeResult.StdOut, executeResult.StdErr and executeResult.ExitCode (to see where the 1 code comes from) and got the following:It seems another wrong artifact folder set elsewhere :
/build/dotnet6-OIjAuR/dotnet6-6.0.103/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/Release/net6.0/.dotnet/sdk/6.0.103/NuGet.targets(130,5): error : The local source '/build/dotnet6-OIjAuR/dotnet6-6.0.103/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/artifacts/obj/x64/Release/blob-feed/packages/' doesn't exist.
... could it be a possibility?Thanks in advance for looking into this.
The text was updated successfully, but these errors were encountered: