Skip to content

Commit b1fd549

Browse files
authored
Add extra CI debug (#750)
* Add extra CI debug Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * more debug Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Look for all placs that Python packages are installed Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * different debug Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * more debug Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * more debug Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * more debug Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * print python path Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Try using a python venv Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * fix typo Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Use bash for Github action Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Explicitly set PYTHONPATH on pip commands Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Try not installing Python package grpcio-tools Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Add installation of ptf package Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Use venv in runptf.sh scripts Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Set PYTHONPATH when running unit tests Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Allow newly created venv to use system-wide packages Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * show PYTHONPATH during unit tests, to see if it is as earlier command set it Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Try using sudo on 'pip3 install' command instead of venv Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Add option --break-system-packages to 'pip3 install' command Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Use python -m site command to see what it considers to be the directories to search for installed packages Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Try moving files from one Python install directory to another, to see if they show up in 'pip list -v' output Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Move files between Python dirs before doing pip3 install Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Remove extra commands from runptf.sh scripts Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Remove some of the extra show commands from CI Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Remove more added show commands, and also explicit setting of PYTHONPATH Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> * Get the changes back to a minimal set that pass CI tests Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu> --------- Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
1 parent c80d83e commit b1fd549

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test-exercises.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ jobs:
4343
uses: actions/checkout@v4
4444

4545
- name: Install build dependencies
46+
shell: bash
4647
run: |
4748
apt-get update
4849
apt-get install -y make python3-pip sudo libboost-iostreams-dev libboost-graph-dev
49-
pip3 install protobuf==3.20.3 grpcio grpcio-tools googleapis-common-protos scapy
50+
mv /usr/local/lib/python3.12/site-packages/* /usr/local/lib/python3.12/dist-packages
51+
sudo pip3 install --break-system-packages protobuf==3.20.3 grpcio googleapis-common-protos scapy ptf
5052
5153
- name: Run PTF Tests
5254
run: |

0 commit comments

Comments
 (0)