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

Add runtime environment output to fix building the release container #1496

Merged
merged 72 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
1485b88
upgrade to cudf-23.10
cwharris Jan 2, 2024
082ec58
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into c…
cwharris Jan 2, 2024
ddf2c4f
rapids 23.12
cwharris Jan 2, 2024
e03953b
unpin dep versions
cwharris Jan 5, 2024
d1d7789
fix sql password hiding breaking change
cwharris Jan 5, 2024
38f9e50
fix graph_sage_stage bug
cwharris Jan 9, 2024
fa54c64
pin dependencies
cwharris Jan 11, 2024
2122371
.
cwharris Jan 12, 2024
795645d
add all example deps to dependencies.yaml
cwharris Jan 16, 2024
045a1bc
remove unnecessary requirements files
cwharris Jan 17, 2024
978991e
expand *click in dependencies.yaml
cwharris Jan 17, 2024
25d0e32
cmake update and file formatting
cwharris Jan 18, 2024
a0cad2c
update conda channels
cwharris Jan 24, 2024
4365488
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into c…
cwharris Jan 24, 2024
45fc8fe
update to cccl and fix matx
cwharris Jan 26, 2024
b0eaf09
get libcudacxx from cccl, fix matx usages
cwharris Jan 26, 2024
60d9c72
fix cudf api misuse, use correct column owners
cwharris Jan 29, 2024
e86de1f
try fix ci
cwharris Jan 29, 2024
d9a8a42
require cxx standard 20
cwharris Jan 30, 2024
9ecb19b
try fix ci
cwharris Jan 30, 2024
ffec30b
try fix ci
cwharris Jan 30, 2024
0345ef2
try fix ci
cwharris Jan 30, 2024
050fe69
try fix ci
cwharris Jan 30, 2024
d1811f5
get grpcio-status from conda
cwharris Jan 30, 2024
71415a8
try fix ci
cwharris Jan 31, 2024
d5d6fbe
pin pytest
cwharris Jan 31, 2024
8414ad8
always remove and re-add index when adding slices to multi_message
cwharris Jan 31, 2024
41ea18b
fix matx util bug
cwharris Jan 31, 2024
06d6913
cleanup
cwharris Jan 31, 2024
59ba379
address review feedback
cwharris Jan 31, 2024
9a20f88
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into c…
cwharris Feb 2, 2024
66c3e7f
add set_meta error comments
cwharris Feb 2, 2024
d75f49a
update utilities
cwharris Feb 2, 2024
0f1a606
fix styles
cwharris Feb 2, 2024
a42e0ff
disable certain warnings-as-errors for clang
cwharris Feb 2, 2024
497a3dc
fix segfault
cwharris Feb 2, 2024
a19bf9c
use official utilities branch
cwharris Feb 2, 2024
1a8b24c
try fix ci
cwharris Feb 3, 2024
625324c
try fix ci
cwharris Feb 3, 2024
f92a959
add datacompy to sphinx mock modules
cwharris Feb 5, 2024
93ffd17
downgrade doxygen to 1.9.2
cwharris Feb 5, 2024
8cffa31
remove conda docs environment yaml
cwharris Feb 5, 2024
27f5f3d
try fix conda build
cwharris Feb 5, 2024
52a8a41
update docs year
cwharris Feb 5, 2024
356d753
conda build update to use partial cuda-toolkit
cwharris Feb 5, 2024
3bace0f
fix type in meta.yaml
cwharris Feb 5, 2024
a81ebd0
try fix conda-build
cwharris Feb 5, 2024
ae4fb4f
remote unnecessary restraints from meta.yaml
cwharris Feb 5, 2024
71cd3af
rm cudf_kafka, pin sysroot
cwharris Feb 5, 2024
e1478a5
make libmorpheus depend on zlib only for debug builds
cwharris Feb 5, 2024
dac6cf8
make zlib not required
cwharris Feb 5, 2024
cd48015
find zlib required only if debug build
cwharris Feb 5, 2024
b199ec4
fix incorrect syntax in dependencies.cmake
cwharris Feb 5, 2024
071674e
update utilities
cwharris Feb 5, 2024
ce7ab55
add cuda-nvtx-dev to meta.yaml
cwharris Feb 5, 2024
e636a29
add libcublas-dev to meta.yaml
cwharris Feb 5, 2024
57fcafc
add networkx to runtime dependencies
cwharris Feb 5, 2024
beb6716
add zlib to dependencies
cwharris Feb 5, 2024
e2f682f
add zlib to dependencies
cwharris Feb 5, 2024
0850bb7
remove unncessary source file pattern for test stage of conda build
cwharris Feb 5, 2024
de197bd
fix release container
cwharris Feb 6, 2024
0f5720a
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into f…
cwharris Feb 6, 2024
fa77836
remove unncessary docker args
cwharris Feb 6, 2024
f8782f7
remove references to docker/conda and update accordingly
cwharris Feb 6, 2024
2b92d05
update mamba env update to use conda and libmamba
cwharris Feb 6, 2024
1b3e00f
styles
cwharris Feb 6, 2024
c10093e
fix line lengths
cwharris Feb 6, 2024
462e157
fix styles
cwharris Feb 6, 2024
5f97daa
disable pylint duplicate-code check
cwharris Feb 6, 2024
4a1af11
fix styles
cwharris Feb 6, 2024
702dca5
fix type in Dockerfile
cwharris Feb 6, 2024
c59a448
update environment files to fix previous commit error in another PR
cwharris Feb 6, 2024
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
2 changes: 2 additions & 0 deletions conda/environments/all_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ dependencies:
- pytest-cov
- pytest=7.4.4
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-docx==1.1.0
- python-graphviz
- python=3.10
- pytorch-cuda
Expand Down Expand Up @@ -113,6 +114,7 @@ dependencies:
- pip:
- --find-links https://data.dgl.ai/wheels-test/repo.html
- --find-links https://data.dgl.ai/wheels/cu121/repo.html
- PyMuPDF==1.23.21
- databricks-connect
- dgl
- dglgo
Expand Down
2 changes: 2 additions & 0 deletions conda/environments/dev_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dependencies:
- pytest-cov
- pytest=7.4.4
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-docx==1.1.0
- python-graphviz
- python=3.10
- pytorch-cuda
Expand All @@ -88,6 +89,7 @@ dependencies:
- yapf=0.40.1
- zlib=1.2.13
- pip:
- PyMuPDF==1.23.21
- databricks-connect
- milvus==2.3.5
- pymilvus==2.3.6
Expand Down
3 changes: 1 addition & 2 deletions conda/environments/examples_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ dependencies:
- pip
- pypdf=3.17.4
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-docx==1.1.0
- python-graphviz
- python=3.10
- pytorch-cuda
Expand All @@ -59,12 +58,12 @@ dependencies:
- pip:
- --find-links https://data.dgl.ai/wheels-test/repo.html
- --find-links https://data.dgl.ai/wheels/cu121/repo.html
- PyMuPDF==1.23.21
- databricks-connect
- dgl
- dglgo
- google-search-results==2.4
- milvus==2.3.5
- nemollm
- pymilvus==2.3.6
- PyMuPDF==1.23.21
name: examples_cuda-121_arch-x86_64
41 changes: 41 additions & 0 deletions conda/environments/runtime_cuda-121_arch-x86_64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is generated by `rapids-dependency-file-generator`.
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
channels:
- conda-forge
- huggingface
- rapidsai
- rapidsai-nightly
- nvidia
- nvidia/label/dev
- pytorch
- defaults
dependencies:
- appdirs
- click >=8
- datacompy=0.10
- dill=0.3.7
- elasticsearch==8.9.0
- feedparser=6.0.10
- grpcio=1.59
- mlflow=2.9.2
- networkx=2.8.8
- numpydoc=1.5
- nvtabular=23.08.00
- pip
- python-confluent-kafka>=1.9.2,<1.10.0a0
- python-graphviz
- python=3.10
- pytorch-cuda
- pytorch=*=*cuda*
- requests-cache=1.1
- scikit-learn=1.3.2
- sqlalchemy
- tqdm=4
- typing_utils=0.1
- watchdog=3.0
- websockets
- pip:
- databricks-connect
- milvus==2.3.5
- pymilvus==2.3.6
name: runtime_cuda-121_arch-x86_64
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ files:
- example-llm-vdb-upload

runtime:
output: none
output: conda
matrix:
cuda: ["12.1"]
arch: [x86_64]
Expand Down
27 changes: 16 additions & 11 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

# Args used in FROM commands must come first
ARG FROM_IMAGE="nvidia/cuda"
ARG CUDA_MAJOR_VER=11
ARG CUDA_MINOR_VER=8
ARG CUDA_REV_VER=0
ARG CUDA_MAJOR_VER=12
ARG CUDA_MINOR_VER=1
ARG CUDA_REV_VER=1
ARG LINUX_DISTRO=ubuntu
ARG LINUX_VER=22.04

Expand Down Expand Up @@ -176,13 +176,13 @@ ARG CUDA_MINOR_VER
ARG CONDA_CHANNEL_ALIAS

# Copy the development dependencies file
COPY ${MORPHEUS_ROOT_HOST}/docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_dev.yml ./docker/conda/environments/
COPY ${MORPHEUS_ROOT_HOST}/conda/environments/dev_cuda-${CUDA_MAJOR_VER}${CUDA_MINOR_VER}_arch-x86_64.yaml ./conda/environments/dev.yaml

# Update the morpheus environment
RUN --mount=type=cache,id=conda_pkgs,target=/opt/conda/pkgs,sharing=locked \
# Temp add channel_alias to get around conda 404 errors
conda config --env --set channel_alias ${CONDA_CHANNEL_ALIAS} &&\
/opt/conda/bin/mamba env update -n morpheus --file docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_dev.yml &&\
/opt/conda/bin/conda env update --solver=libmamba -n morpheus --file conda/environments/dev.yaml &&\
# Remove channel_alias to use the normal channel in the container
conda config --env --remove-key channel_alias

Expand Down Expand Up @@ -232,7 +232,7 @@ ARG MORPHEUS_ROOT_HOST
ARG CUDA_MAJOR_VER
ARG CUDA_MINOR_VER

COPY ${MORPHEUS_ROOT_HOST}/docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_runtime.yml ./docker/conda/environments/
COPY ${MORPHEUS_ROOT_HOST}/conda/environments/runtime_cuda-${CUDA_MAJOR_VER}${CUDA_MINOR_VER}_arch-x86_64.yaml ./conda/environments/runtime.yaml

# Mount Morpheus conda package build in `conda_bld_morpheus`
RUN --mount=type=bind,from=conda_bld_morpheus,source=/opt/conda/conda-bld,target=/opt/conda/conda-bld \
Expand All @@ -244,13 +244,17 @@ RUN --mount=type=bind,from=conda_bld_morpheus,source=/opt/conda/conda-bld,target
# Install morpheus
CONDA_ALWAYS_YES=true /opt/conda/bin/mamba install -n morpheus \
-c local \
-c conda-forge \
-c huggingface \
-c rapidsai \
-c nvidia/label/cuda-12.1.0 \
-c nvidia/label/dev \
-c rapidsai-nightly \
-c nvidia \
-c nvidia/label/dev \
-c pytorch \
-c conda-forge morpheus &&\
/opt/conda/bin/mamba env update -n morpheus --file docker/conda/environments/cuda${CUDA_MAJOR_VER}.${CUDA_MINOR_VER}_runtime.yml && \
-c defaults \
morpheus &&\

/opt/conda/bin/conda env update --solver=libmamba -n morpheus --file conda/environments/runtime.yaml && \
conda clean -afy

# Only copy specific files/folders over that are necessary for runtime
Expand All @@ -259,7 +263,8 @@ COPY "${MORPHEUS_ROOT_HOST}/docs" "./docs"
COPY "${MORPHEUS_ROOT_HOST}/examples" "./examples"
COPY "${MORPHEUS_ROOT_HOST}/models" "./models"
COPY "${MORPHEUS_ROOT_HOST}/scripts" "./scripts"
COPY ["${MORPHEUS_ROOT_HOST}/*.md", "${MORPHEUS_ROOT_HOST}/LICENSE", "./"]
COPY "${MORPHEUS_ROOT_HOST}/*.md" "./"
COPY "${MORPHEUS_ROOT_HOST}/LICENSE" "./"

# Use morpheus by default
CMD [ "morpheus" ]
Expand Down
14 changes: 4 additions & 10 deletions docker/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,16 @@ DOCKER_TARGET=${DOCKER_TARGET:-"runtime"}
DOCKER_EXTRA_ARGS=${DOCKER_EXTRA_ARGS:-""}

# Build args
CUDA_MAJOR_VER=${CUDA_MAJOR_VER:-11}
CUDA_MINOR_VER=${CUDA_MINOR_VER:-8}
CUDA_REV_VER=${CUDA_REV_VER:-0}
CUDA_MAJOR_VER=${CUDA_MAJOR_VER:-12}
cwharris marked this conversation as resolved.
Show resolved Hide resolved
CUDA_MINOR_VER=${CUDA_MINOR_VER:-1}
CUDA_REV_VER=${CUDA_REV_VER:-1}
DOCA_ARTIFACTS_HOST=${DOCA_ARTIFACTS_HOST:-""}
DOCA_REPO_HOST=${DOCA_REPO_HOST:-""}
FROM_IMAGE=${FROM_IMAGE:-"nvidia/cuda"}
LINUX_DISTRO=${LINUX_DISTRO:-ubuntu}
LINUX_VER=${LINUX_VER:-22.04}
MORPHEUS_SUPPORT_DOCA=${MORPHEUS_SUPPORT_DOCA:-"OFF"}
PYTHON_VER=${PYTHON_VER:-3.10}
RAPIDS_VER=${RAPIDS_VER:-24.02}
TENSORRT_VERSION=${TENSORRT_VERSION:-8.2.1.3}

# Determine the relative path from $PWD to $MORPHEUS_ROOT
MORPHEUS_ROOT_HOST=${MORPHEUS_ROOT_HOST:-"$(realpath --relative-to=${PWD} ${MORPHEUS_ROOT})"}
Expand All @@ -58,8 +56,6 @@ DOCKER_ARGS="${DOCKER_ARGS} --build-arg LINUX_VER=${LINUX_VER}"
DOCKER_ARGS="${DOCKER_ARGS} --build-arg MORPHEUS_ROOT_HOST=${MORPHEUS_ROOT_HOST}"
DOCKER_ARGS="${DOCKER_ARGS} --build-arg MORPHEUS_SUPPORT_DOCA=${MORPHEUS_SUPPORT_DOCA}"
DOCKER_ARGS="${DOCKER_ARGS} --build-arg PYTHON_VER=${PYTHON_VER}"
DOCKER_ARGS="${DOCKER_ARGS} --build-arg RAPIDS_VER=${RAPIDS_VER}"
DOCKER_ARGS="${DOCKER_ARGS} --build-arg TENSORRT_VERSION=${TENSORRT_VERSION}"
DOCKER_ARGS="${DOCKER_ARGS} --network=host"

# Last add any extra args (duplicates override earlier ones)
Expand All @@ -80,11 +76,9 @@ echo " LINUX_VER : ${LINUX_VER}"
echo " MORPHEUS_ROOT_HOST : ${MORPHEUS_ROOT_HOST}"
echo " MORPHEUS_SUPPORT_DOCA: ${MORPHEUS_SUPPORT_DOCA}"
echo " PYTHON_VER : ${PYTHON_VER}"
echo " RAPIDS_VER : ${RAPIDS_VER}"
echo " TENSORRT_VERSION : ${TENSORRT_VERSION}"

echo ""
echo " COMMAND: docker build ${DOCKER_ARGS} -f docker/Dockerfile ."
echo " COMMAND: docker build ${DOCKER_ARGS} -f ${SCRIPT_DIR}/Dockerfile ."
echo " Note: add '--progress plain' to DOCKER_EXTRA_ARGS to show all container build output"

docker build ${DOCKER_ARGS} -f ${SCRIPT_DIR}/Dockerfile .
6 changes: 1 addition & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ Additional packages required for building the documentation are defined in `./co
## Install Additional Dependencies
From the root of the Morpheus repo:
```bash
export CUDA_VER=11.8
mamba install -n base -c conda-forge conda-merge
conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml \
docs/conda_docs.yml > .tmp/merged.yml \
&& mamba env update -n ${CONDA_DEFAULT_ENV} --file .tmp/merged.yml
conda env update --solver=libmamba -n morpheus --file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune
```

## Build Morpheus and Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/source/developer_guide/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ git submodule update --init --recursive

1. Create the Morpheus Conda environment
```bash
mamba env create -f ./docker/conda/environments/cuda${CUDA_VER}_dev.yml
conda env create --solver=libmamba -n morpheus --file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml
conda activate morpheus
```

Expand Down
6 changes: 2 additions & 4 deletions morpheus/llm/services/nemo_llm_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@
IMPORT_EXCEPTION = None
IMPORT_ERROR_MESSAGE = (
"NemoLLM not found. Install it and other additional dependencies by running the following command:\n"
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")
"`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")

try:
import nemollm
Expand Down
11 changes: 4 additions & 7 deletions morpheus/llm/services/openai_chat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@
logger = logging.getLogger(__name__)

IMPORT_EXCEPTION = None
IMPORT_ERROR_MESSAGE = (
"OpenAIChatService & OpenAIChatClient require the openai package to be installed. "
"Install it by running the following command:\n"
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")
IMPORT_ERROR_MESSAGE = ("OpenAIChatService & OpenAIChatClient require the openai package to be installed. "
"Install it by running the following command:\n"
"`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")

try:
import openai
Expand Down
12 changes: 4 additions & 8 deletions morpheus/stages/input/arxiv_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@

IMPORT_ERROR_MESSAGE = (
"ArxivSource requires additional dependencies to be installed. Install them by running the following command: "
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")
"`conda env update --solver=libmamba -n morpheus"
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")


@register_stage("from-arxiv")
Expand All @@ -48,10 +46,8 @@ class ArxivSource(PreallocatorMixin, SingleOutputSource):
Source stage that downloads PDFs from arxiv and converts them to dataframes.

This stage requires several additional dependencies to be installed. Install them by running the following command:
mamba install -n base -c conda-forge conda-merge
conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml
docker/conda/environments/cuda${CUDA_VER}_examples.yml
> .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml
`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`

Parameters
----------
Expand Down
12 changes: 4 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,10 +1032,8 @@ def nemollm_fixture(fail_missing: bool):
Fixture to ensure nemollm is installed
"""
skip_reason = ("Tests for the NeMoLLMService require the nemollm package to be installed, to install this run:\n"
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")
"`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")
yield import_or_skip("nemollm", reason=skip_reason, fail_missing=fail_missing)


Expand All @@ -1045,10 +1043,8 @@ def openai_fixture(fail_missing: bool):
Fixture to ensure openai is installed
"""
skip_reason = ("Tests for the OpenAIChatService require the openai package to be installed, to install this run:\n"
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")
"`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")
yield import_or_skip("openai", reason=skip_reason, fail_missing=fail_missing)


Expand Down
7 changes: 2 additions & 5 deletions tests/examples/llm/common/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ def nemollm_fixture(fail_missing: bool):
"""

skip_reason = ("Tests for the WebScraperStage require the langchain package to be installed, to install this run:\n"
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")

"`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")
yield import_or_skip("langchain", reason=skip_reason, fail_missing=fail_missing)
6 changes: 2 additions & 4 deletions tests/stages/arxiv/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@

SKIP_REASON = ("Tests for the arxiv_source require a number of packages not installed in the Morpheus development "
"environment. To install these run:\n"
"`mamba install -n base -c conda-forge conda-merge`\n"
"`conda run -n base --live-stream conda-merge docker/conda/environments/cuda${CUDA_VER}_dev.yml "
" docker/conda/environments/cuda${CUDA_VER}_examples.yml"
" > .tmp/merged.yml && mamba env update -n morpheus --file .tmp/merged.yml`")
"`conda env update --solver=libmamba -n morpheus "
"--file morpheus/conda/environments/dev_cuda-121_arch-x86_64.yaml --prune`")


@pytest.fixture(name="arxiv", autouse=True, scope='session')
Expand Down
Loading