Skip to content

Update EOL versions - #4561

Merged
mikem8361 merged 10 commits into
mainfrom
update-eol-main
Apr 8, 2024
Merged

mikem8361 merged 10 commits into
mainfrom
update-eol-main

Conversation

@richlander

@richlander richlander commented Mar 20, 2024 •

Copy link
Copy Markdown
Member

Replaces #4556

Previous PR used Alpine 3.19 (with clang 17). This PR attempted to update to update with Alpine 3.18 (with clang 16). That also failed.

Container images we should be using for .NET 8+: https://github.com/dotnet/runtime/blob/main/docs/workflow/building/coreclr/linux-instructions.md

@mikem8361 mikem8361 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good pending my comments.

@mikem8361

Copy link
Copy Markdown
Contributor

The reason the Linux legs are failing is that the new ubuntu images don't have lldb installed.

@richlander

richlander commented Mar 20, 2024 •

Copy link
Copy Markdown
Member Author

Is using raw VMs an important scenario? If not, we should switch to just using container images with lldb installed. Right?

@mikem8361

Copy link
Copy Markdown
Contributor

Yes, a container image with lldb installed is necessary for all the test only (testOnly set to true) legs (i.e. test_ubuntu_20_04, etc.).

The diag repo build yml builds the managed code on the host VM or image and the native code on a container set with the "nativeBuildContainer" property. Neither the host VM or the nativeBuildContainer images need lldb installed as long as the leg has "buildOnly" set to true. It looks like all linux build legs are build only.

See eng/pipelines/build.yml.

@richlander

Copy link
Copy Markdown
Member Author

Looks like we have much the same problem with clang 16.

https://dev.azure.com/dnceng-public/public/_build/results?buildId=610966&view=logs&j=ae8afbb7-f4f2-5392-9b27-1f4ae919e7ab&t=9daa1212-443c-524c-582c-0040d830f998&l=396

I'll back out the Alpine changes for now, but we need to find a solution for that. We can discuss the priority of that offline.

There is also an Ubuntu 20.04 failure. That's not (AFAICT) part of my changes.

@mikem8361

Copy link
Copy Markdown
Contributor

The Linux legs are failing because the new "linux_x64" images do not have the lldb dev package installed. It is named something like "liblldb-14-dev" and includes the header files, etc. to build the lldb SOS plugin. The diagnostics repo images have some extra requirements which is probably way the images haven't been updated recently.

@richlander

Copy link
Copy Markdown
Member Author

Yup. Waiting on the new images to be published.

dotnet/dotnet-buildtools-prereqs-docker#989

@richlander

Copy link
Copy Markdown
Member Author

I removed the Alpine changes so that we can make some quicker progress. I'm still having trouble @mikem8361.

The test is failing that you suggested pointed to lldb missing in the build leg.

rich@mazama:~$ docker run --rm -it mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-amd64
root [ / ]# tdnf list --installed | grep ldb
lldb.x86_64                                  12.0.1-2.cm2              @System
lldb-devel.x86_64                            12.0.1-2.cm2              @System
root [ / ]# 
exit

Is this perhaps a version mismatch? Mariner 2.0 has lldb 12. Is that too low? Or is that we need lldb installed on the host side, too? If it is the former, we can wait until the Azure Linux 3.0 images are ready, which will be soon. It has lldb 17.

/cc @sbomer

@mikem8361

mikem8361 commented Apr 7, 2024 •

Copy link
Copy Markdown
Contributor

lldb 12 is sufficient. The dbgshim and SOS tests are failing because the shim (libdbgshim.so) or SOS itself (libsosplugin.so) built in the Linux build legs can't be loaded in the Ubuntu 20.04 test legs for some reason. I don't understand it yet.

@richlander

Copy link
Copy Markdown
Member Author

Is the x64 build not doing a cross build? That would explain it.

@mikem8361

mikem8361 commented Apr 8, 2024 •

Copy link
Copy Markdown
Contributor

Yes, the Linux x64 builds are not cross builds (no -cross command line option). I think the Linux leg in diagnostics.yml needs the crossBuild: true parameter now. We also have this comment in eng/pipelines/build.yml:

      # TODO: remove this once we move to crossroot builds for all containers. We are currently blocked
      # on mariner cross containers not supporting glibc versions supported in 6.0.
      # Only add the cross build option if a combined build/test managed/native build (i.e. MacOS arm64)
      - ${{ if eq(parameters.nativeBuildContainer, '') }}:
        - _ExtraBuildParams: $(_Cross)

@mikem8361

Copy link
Copy Markdown
Contributor

I think those lines in build.yml need to be removed now if the new mariner images have the glibc required.

@richlander

Copy link
Copy Markdown
Member Author

The Mariner cross builds don't have the correct glibc for .NET 6 or 7. They are good for .NET 8+. If this branch is good for .NET 8+, then adopting cross builds is a good approach.

@mikem8361

Copy link
Copy Markdown
Contributor

The problem is that SOS needs to run/is hosted on .NET 6/7. We really can't restrict to .NET 8 until 6 and 7 go out of service.

@richlander

Copy link
Copy Markdown
Member Author

Got it. I didn't realize that main targeted all in-support OSes. This all makes sense now. Thanks for your patience.

@mikem8361
mikem8361 merged commit 9262f7d into main Apr 8, 2024
@mikem8361
mikem8361 deleted the update-eol-main branch April 8, 2024 21:44
@github-actions github-actions Bot locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants