Skip to content
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

Integrate Cross Platform Linux Packaging Tester #4466

Merged

Conversation

liveans
Copy link
Member

@liveans liveans commented Aug 16, 2024

Description

Contributes to #3460.
Fixes dotnet/runtime#101589

Goal of this PR is pulling every arch and distro combo inside github action and actually try to install libmsquic package inside of container, try to run simple tests over it.

Distro/Arch Matrix in this PR:

Distro/Arch x64 ARM32 ARM64
Ubuntu 24.04 X X X
Ubuntu 22.04 X X X
Ubuntu 20.04 X X
Debian 12 X X X
Mariner 2.0 X X
AzureLinux 3.0 X X
Centos Stream 9 X
Fedora 39 X
Fedora 40 X
OpenSuse 15.4 X

Testing

CI should be enough

Documentation

No

/cc @ManickaP @CarnaViire @wfurt @nibanks

@liveans
Copy link
Member Author

liveans commented Aug 16, 2024

According to the decision, we might make this part of package-linux.yml as a different step.

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.87%. Comparing base (6a37cdc) to head (b0cab8d).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4466      +/-   ##
==========================================
- Coverage   86.56%   84.87%   -1.69%     
==========================================
  Files          56       56              
  Lines       15521    15521              
==========================================
- Hits        13435    13173     -262     
- Misses       2086     2348     +262     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

scripts/docker-script.sh Outdated Show resolved Hide resolved
scripts/docker-script.sh Outdated Show resolved Hide resolved
@liveans liveans marked this pull request as ready for review August 18, 2024 14:14
@liveans liveans requested a review from a team as a code owner August 18, 2024 14:14
.github/workflows/package-linux.yml Fixed Show fixed Hide fixed
.github/workflows/package-linux.yml Fixed Show fixed Hide fixed
.github/workflows/package-linux.yml Fixed Show fixed Hide fixed
nibanks
nibanks previously approved these changes Aug 18, 2024
@nibanks nibanks merged commit ebc1248 into microsoft:main Aug 18, 2024
466 of 468 checks passed
src/cs/QuicSimpleTest/Program.cs Show resolved Hide resolved
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
Copy link
Member

Choose a reason for hiding this comment

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

This should not be necessary anymore.

pushd src/cs/QuicSimpleTest && dotnet build QuicHello.net${{ matrix.vec.dotnetVersion }}.csproj -a ${{ matrix.vec.arch }} -c ${{ matrix.vec.config }} -o artifacts/net${{ matrix.vec.dotnetVersion }} -f net${{ matrix.vec.dotnetVersion }} && popd
- name: Docker Run
run: |
docker run -v $(pwd):/main ${{ matrix.vec.image }} /main/scripts/docker-script.sh ${{ matrix.vec.arch }} ${{ matrix.vec.config }} ${{ matrix.vec.tls }} ${{ matrix.vec.dotnetVersion }}
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean that the test is run in dotnet-buildtools/prereqs image? Didn't we agree to run it in mcr.microsoft.com/dotnet/runtime? Because we also want to test if the package installs all the necessary dependencies (that might already be installed manually by dotnet-buildtools/prereqs.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, in some cases we're still using dotnet-buildtools/prereqs. Because we don't have other distros in our dotnet/runtime. But most of them are coming from dotnet/runtime, you can check it from matrix in the yml.

{ friendlyName: "CBL-Mariner 2.0 x64", config: "Release", os: "ubuntu-20.04", arch: "x64", tls: "openssl", image: "mcr.microsoft.com/dotnet/runtime:8.0-cbl-mariner2.0-amd64", dotnetVersion: "8.0" },
{ friendlyName: "CBL-Mariner 2.0 ARM64", config: "Release", os: "ubuntu-20.04", arch: "arm64", tls: "openssl", image: "mcr.microsoft.com/dotnet/runtime:8.0-cbl-mariner2.0-arm64v8", dotnetVersion: "8.0" },
# Azure Linux 3.0
{ friendlyName: "AzureLinux 3.0 x64", config: "Release", os: "ubuntu-24.04", arch: "x64", tls: "openssl3", image: "mcr.microsoft.com/dotnet/sdk:9.0-preview-azurelinux3.0-amd64", dotnetVersion: "9.0", xdp: "-UseXdp" },
Copy link
Member Author

Choose a reason for hiding this comment

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

When you said that, I also realized that on some of them we're using sdk instead of runtime I'll look at it.

/cc @ManickaP

liveans added a commit to liveans/msquic that referenced this pull request Sep 22, 2024
nibanks pushed a commit that referenced this pull request Sep 23, 2024
* Integrate Cross Platform Linux Packaging Tester (#4466)

* Fix .NET containers (#4545)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QUIC] Add minimal testing to MsQuic CI
4 participants