-
Notifications
You must be signed in to change notification settings - Fork 126
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
bootstrapped smoke-test running unable to find package Microsoft.DotNet.Arcade.Sdk #2958
Comments
Hi Miriam, I'm taking a look at this now, thanks for reporting it. |
Hi @mirespace , I think I have this figured out. Are you running this is a separate directory from the one you run
Let me know if you'd like to try that and in the meantime I'll try and get a proper fix ready. |
@crummel - Can you please backport the fix to 6.0.1xx? |
This was backported with dotnet/installer#14587 - closing. |
Hi 👋🏻 I want to continue where Miriam left off and integrate the smoke-tests into the Ubuntu CI, but as Miriam I have problems running them. I wrote a Containerfile to make it easier for you to replicate/debug my problem (see below). When I run podman run --rm -it --network none dotnet6-smoke-tests I get the following output:
The script tries to download the package I already spend a lot of time set various environment variables, script parameter & file layouts, but I could not get the somke tests running. Could you point me in the right direction or show me a minimal working example? Note: This Containerimage takes ages to build. You can pull it from Note: If you want to build this image yourself, note the FROM ubuntu:mantic
ARG SDK_VERSION_UNDER_TEST=6.0.120-0ubuntu1
ARG PREVIOUS_SDK_VERSION=6.0.119-0ubuntu1
# Install dependencies:
RUN apt-get update && apt-get install --assume-yes ubuntu-dev-tools quilt libicu72
# Install previous SDK:
WORKDIR /tmp/previous-sdk
RUN pull-lp-debs dotnet6 $PREVIOUS_SDK_VERSION
RUN apt install --assume-yes \
./dotnet-host*.deb \
./dotnet-hostfxr-6.0*.deb \
./dotnet-runtime-6.0*.deb \
./aspnetcore-runtime-6.0*.deb \
./aspnetcore-targeting-pack-6.0*.deb \
./dotnet-apphost-pack-6.0*.deb \
./dotnet-targeting-pack-6.0*.deb \
./netstandard-targeting-pack-2.1*.deb \
./dotnet-templates-6.0*.deb \
./dotnet-sdk-6.0*.deb
# Download SDK under test source-built artifacts & source code:
WORKDIR /tmp/sdk-under-test
RUN pull-lp-debs dotnet-sdk-6.0-source-built-artifacts $SDK_VERSION_UNDER_TEST
RUN dpkg --install ./dotnet-sdk-6.0-source-built-artifacts*.deb
RUN pull-lp-source dotnet6 $SDK_VERSION_UNDER_TEST
RUN mv dotnet6-* source
# Cleanup unnecessary files
RUN rm /tmp/previous-sdk/*.deb /tmp/sdk-under-test/*.deb
# Link to the source built artifacts and unpack:
WORKDIR /tmp/sdk-under-test/source/packages/archive
RUN ln -s /usr/lib/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.$(echo $SDK_VERSION_UNDER_TEST | grep --only-matching --perl-regexp '6.0.1\d\d').tar.gz .
RUN tar --extract --gzip --file Private.SourceBuilt.Artifacts.*.tar.gz
# Import and unpack the smoke test prereqs:
WORKDIR /tmp/sdk-under-test/source/packages/smoke-test-prereqs
COPY dotnet-smoke-test-prereqs.6.0.120.tar.gz .
RUN tar --extract --gzip --file ./dotnet-smoke-test-prereqs.*.tar.gz
# Disable welcome text:
ENV DOTNET_NOLOGO=true
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
# Set smoke test environment variables:
ENV VERBOSE=1
ENV SMOKE_TESTS_PREREQS_PATH=/tmp/sdk-under-test/source/packages/smoke-test-prereqs
# Run Smoke Tests:
WORKDIR /tmp/sdk-under-test/source
ENTRYPOINT [ "/tmp/sdk-under-test/source/build.sh", \
"--run-smoke-test", \
"--with-sdk", "/usr/lib/dotnet", \
"--with-packages", "/tmp/sdk-under-test/source/packages/archive" \
"--", \
"/v:n", \
"/p:SkipPortableRuntimeBuild=true", \
"/p:LogVerbosity=n", \
"/p:MinimalConsoleLogOutput=false", \
"/p:ContinueOnPrebuiltBaselineError=true", \
] |
@dviererbe - Ultimately, the work to allow the smoke tests to be run completely offline is part of #3015. I had begun making that happen with the changes in dotnet/installer#16359. But that had to be abandoned because the entire approach of maintaining the list of smoke test prereqs was flawed. However, the changes there illustrate some of the work that is necessary for tests to be offline-capable. I think what you're running into here is that it's implicitly running |
Hi team!
When running smoke test for v6.0.107 on Ubuntu with the following command using the tarball created from monorepo:
VERBOSE=1 ./build.sh --run-smoke-test --with-sdk previously-built-dotnet --with-packages packages/archive/
where previously-built-dotnet is a copy of the dotnet /usr/lib/dotnet/dotnet6-6.0.107 folder and packages archive has both source artifacts prebuilts compressed and uncomppresed (I mean the packages/archive/Private.SourceBuilt.Artifacts.6.0.107.tar.gz and its contents uncompressed)
I got the following error:
/root/SRU-testing/dotnet6-6.0.107/Directory.Build.props(9,3): error : Unable to find package Microsoft.DotNet.Arcade.Sdk. No packages exist with this id in source(s): nuget.org
Looking for the error I found dotnet/aspnetcore#11802 and dotnet/roslyn#38884 , but I checked the Nuget.Config files inside
src/arcade
folder just in case and I don't find any overrides or disabled packages downloads.The log file for the test is the following:
In the Directory.Build.props mentioned file I see this maybe related to it:
Maybe I'm missing any step? Or there is something missing in the bootstrap? Could you please take a look on it andd let me know what you think or what you can think of that might be going on?
Thanks in advance. Have a good day.
The text was updated successfully, but these errors were encountered: