Github actions CI/CD breaks
Hello,
Recently I am regularly deploying pipelines to azure machine learning pipelines via github CI/CD actions. But continuously encounter such error:
NotImplementedError: Linux distribution debian 12. does not have automatic support.
94Missing packages: {'liblttng-ust.so.0'}
95.NET Core 3.1 can still be used via dotnetcore2
if the required dependencies are installed.
96Visit https://aka.ms/dotnet-install-linux for Linux distro specific .NET Core install instructions.
97Follow your distro specific instructions to install dotnet-runtime-*
and replace *
with 3.1.23
.
The whole story is like this:
This summer(2023) github actions will run on Node16 instead of Node12 by default.
First error: The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
So I upgraded from actions/checkout@v2 to actions/checkout@v3
Then a second error pop out:
ImportError: cannot import name 'DEV_PKGS' from 'pip._internal.commands.freeze' (/__w/dsl_sales-forecast/dsl_sales-forecast/venv/lib/python3.8/site-packages/pip/_internal/commands/freeze.py)
Then I upgraded pip-tools from 6.12.3 to 7.0.0 with the guidance of this link https://github.com/mitsuhiko/rye/issues/368
After fixing this then pop out the error I reported at the beginning.
My setting is:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
apt-get update
apt-get -q -y install apt-transport-https aspnetcore-runtime-5.0 dotnet-runtime-2.1
python3 -m pip install --upgrade pip==22.0.4
pip3 install pip-tools==6.12.3
This setting works well in June.
Other related packages are
python 3.8, ubuntu github ubuntu-latest(22.04). Any help will be appreciated.
azureml-core==1.44.0
distro==1.7.0
dotnetcore2==3.1.23