From a65374ed8581a03234f5d481ee3aa6b1f9c7061f Mon Sep 17 00:00:00 2001 From: Max Podkorytov <4273004+tenpercent@users.noreply.github.com> Date: Tue, 29 Apr 2025 17:22:38 -0700 Subject: [PATCH] try building ck4inductor and testing it inside a virtual environment (#2142) use system virtualenv use python-full ubuntu package in docker image --------- Co-authored-by: illsilin Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com> [ROCm/composable_kernel commit: 6601931949dc385f78d24c4688369535d0f5315c] --- Dockerfile | 4 +--- Jenkinsfile | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3cac1dde4c..c629bd034c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,9 +49,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow- mpich \ net-tools \ pkg-config \ - python3 \ - python3-dev \ - python3-pip \ + python3-full \ redis \ rocm-llvm-dev \ sshpass \ diff --git a/Jenkinsfile b/Jenkinsfile index c46e2d53ef..3e22eb2f01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -530,8 +530,11 @@ def Build_CK(Map conf=[:]){ if ( params.RUN_INDUCTOR_TESTS && !params.BUILD_LEGACY_OS && arch_type == 1 ){ echo "Run inductor codegen tests" sh """ - pip install --target ${env.WORKSPACE} --break-system-packages --verbose . - pytest python/test/test_gen_instances.py + python3 -m venv ${env.WORKSPACE} + . ${env.WORKSPACE}/bin/activate + python3 -m pip install pytest build setuptools setuptools_scm + python3 -m pip install . + python3 -m pytest python/test/test_gen_instances.py """ } dir("build"){