-
Notifications
You must be signed in to change notification settings - Fork 640
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
support ubuntu 24 in CI #1486
base: dev
Are you sure you want to change the base?
support ubuntu 24 in CI #1486
Conversation
@tigercosmos we need to install venv on all Linux containers to make it work. In Ubuntu the package is |
I see, let me figure out. |
blocking by #1384 due to:
|
This reverts commit 5f80c36.
else | ||
apt-get update | ||
apt-get install -y python3 python3-venv python3-dev | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be done in the container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, we can do that as well, @seladb can you update the containers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do it if you want, but you just need to open a MR here:
https://github.com/seladb/PcapPlusPlus-DockerImages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, I didn't know this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seladb shouldn't /PcapPlusPlus-DockerImages under the organization?
@@ -31,6 +31,7 @@ jobs: | |||
apk update && apk add cppcheck python3-dev | |||
python3 -m pip install cmake-format clang-format==18.1.6 | |||
|
|||
# TODO: investigate how to run pre-commit with `venv` | |||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
- name: Activate virtualenv | |
run: | | |
${{ matrix.python }} -m venv ./venv | |
. .venv/bin/activate | |
echo PATH=$PATH >> $GITHUB_ENV | |
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
@@ -52,6 +53,9 @@ jobs: | |||
strategy: | |||
matrix: | |||
include: | |||
- image: ubuntu2404 | |||
python: python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that everybody use python: python3 maybe we could drop it no ?
${{ matrix.python }} -m pip install -U pip | ||
${{ matrix.python }} -m venv ./venv | ||
source ./venv/bin/activate | ||
${{ matrix.python }} -m pip install pip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${{ matrix.python }} -m pip install pip | |
${{ matrix.python }} -m pip install -U pip |
Else I think this command do nothing no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure, maybe yes, because we use venv now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you're executing
${{ matrix.python }} -m pip -> I supposed it's already installed no?
If you really want to install it
${{ matrix.python }} -m ensurepip
${{ matrix.python }} -m pip install -r ci/run_tests/requirements.txt | ||
${{ matrix.python }} ci/run_tests/run_tests.py --interface eth0 ${{ matrix.test-flags }} | ||
|
||
- name: Test Examples | ||
shell: bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the default shell is sh
, and to source
the venv activator, we need bash.
DON'T MERGE
Blocking by #1489 now
venv
for pip installation