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

Install dotnet core to fix python gcov warning for code covery color bar showing #215

Merged
merged 35 commits into from
Jul 8, 2021
Merged
Changes from 9 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5f70d91
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
e6fcc9b
Merge pull request #1 from pettershao-ragilenetworks/pettershao-ragil…
pettershao-ragilenetworks May 6, 2021
7e1a53b
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
8850fcc
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
4391376
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
25135a5
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
0a5fa78
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
f654d2d
Update azure-pipelines.yml
pettershao-ragilenetworks May 6, 2021
c2396aa
Update azure-pipelines.yml
pettershao-ragilenetworks May 7, 2021
46d3402
Update azure-pipelines.yml
pettershao-ragilenetworks May 11, 2021
ed446e9
Update azure-pipelines.yml
pettershao-ragilenetworks May 11, 2021
3eeac48
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 9, 2021
1d2bcf2
trigger build
pettershao-ragilenetworks Jun 9, 2021
d859738
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 11, 2021
c8effd4
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 11, 2021
529d2bd
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 11, 2021
18f9952
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
eedd0d1
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
c289a81
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
6e39459
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
3ee0ba4
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
2a0afcc
test dependence of .NET
pettershao-ragilenetworks Jun 29, 2021
6e6f37d
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
a538bf7
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
1d61102
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
92ca9d0
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
d010818
recover update
pettershao-ragilenetworks Jun 29, 2021
881f2bb
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 29, 2021
9e150fd
put add source at begning
pettershao-ragilenetworks Jun 30, 2021
5cf5f03
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 30, 2021
c1907aa
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 30, 2021
5f0d245
Update azure-pipelines.yml
pettershao-ragilenetworks Jun 30, 2021
e6ae344
try dotnet-install.sh
pettershao-ragilenetworks Jun 30, 2021
6d7d583
recove change
pettershao-ragilenetworks Jun 30, 2021
d448256
Update azure-pipelines.yml
pettershao-ragilenetworks Jul 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ stages:

sudo python3 -m pip install dist/asyncsnmp-2.1.0-py3-none-any.whl
python3 setup.py test

# Install .NET CORE
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt --fix-broken install -y
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 10, 2021

Choose a reason for hiding this comment

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

broken

What is broken and why? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also for directlly install dot sdk:
https://dev.azure.com/mssonic/build/_build/results?buildId=19148&view=logs&j=83516c17-6666-5250-abde-63983ce72a49&t=c10d5f44-55ce-55d7-7975-407ed75d9a96

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 dotnet-sdk-5.0 : Depends: dotnet-runtime-5.0 (>= 5.0.7) but it is not going to be installed
                  Depends: netstandard-targeting-pack-2.1 (>= 2.1.0) but it is not going to be installed
                  Depends: aspnetcore-runtime-5.0 (>= 5.0.7) but it is not going to be installed
                  Depends: dotnet-targeting-pack-5.0 (>= 5.0.0) but it is not going to be installed
                  Depends: aspnetcore-targeting-pack-5.0 (>= 5.0.0) but it is not going to be installed
                  Depends: dotnet-apphost-pack-5.0 (>= 5.0.7) but it is not going to be installed
 libhiredis-dev : Depends: libhiredis0.14 (= 0.14.0-3) but 0.14.0-3~bpo9+1 is to be installed
 libnl-3-dev : Depends: libnl-3-200 (= 3.4.0-1) but 3.5.0-1 is to be installed
 libnl-route-3-dev : Depends: libnl-route-3-200 (= 3.4.0-1) but 3.5.0-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Copy link
Collaborator

Choose a reason for hiding this comment

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

It should be caused by wrong package packages-microsoft-prod installed, the script is run inside the container, so we need to install the package for debian buster, not ubuntu 20.04.
Please follow https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian, and try again, thanks.

#sudo apt-get install libhiredis0.14 libnl-3-200 libnl-route-3-200
sudo apt-get install -y apt-transport-https
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 10, 2021

Choose a reason for hiding this comment

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

apt-transport-https

Why you need this? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, seems no use, removed!

sudo apt-get update
Copy link
Contributor

@qiluo-msft qiluo-msft Jun 10, 2021

Choose a reason for hiding this comment

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

update

Why update twice? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, fixed!

sudo apt-get install -y dotnet-sdk-5.0
displayName: "Unit tests"
Copy link
Collaborator

@xumia xumia May 10, 2021

Choose a reason for hiding this comment

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

It is better to create a new step to install the .net core, not in the "Unit tests" step.
Looks like we can remove the Line 66.


- task: PublishTestResults@2
Expand Down