From 290ca7deca05afbda52a693b2441f5a5df9febe9 Mon Sep 17 00:00:00 2001 From: Nilesh M Negi Date: Sat, 22 Mar 2025 23:22:53 -0500 Subject: [PATCH] [CI] Fix warnings from pytest in Azure CI (#1617) * [CI] Fix warnings from pytest * [CI] Append to LD_LIBRARY_PATH instead of overwrite --------- Signed-off-by: nileshnegi [ROCm/rccl commit: 565f0ade609bfe02431684d9b12dbe1a3439c869] --- projects/rccl/.azuredevops/multinode-ci-nightly.yml | 5 ++--- projects/rccl/.azuredevops/multinode-ci-pr.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/projects/rccl/.azuredevops/multinode-ci-nightly.yml b/projects/rccl/.azuredevops/multinode-ci-nightly.yml index ca128b2082..4b9b143c2c 100644 --- a/projects/rccl/.azuredevops/multinode-ci-nightly.yml +++ b/projects/rccl/.azuredevops/multinode-ci-nightly.yml @@ -54,13 +54,12 @@ jobs: extraBuildFlags: >- -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON - -DGPU_TARGETS=gfx942 -GNinja - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml@pipelines_repo parameters: componentName: rccl testDir: $(Build.SourcesDirectory)/build/test - testExecutable: './rccl-UnitTests' + testExecutable: 'LD_LIBRARY_PATH=$(Build.SourcesDirectory)/build:${LD_LIBRARY_PATH} NCCL_DEBUG=INFO RCCL_ENABLE_SIGNALHANDLER=1 ./rccl-UnitTests' testParameters: '--gtest_output=xml:./test_output.xml --gtest_color=yes' - ${{ each pytestScript in parameters.pytestList }}: - task: Bash@3 @@ -69,4 +68,4 @@ jobs: inputs: targetType: inline workingDirectory: $(Build.SourcesDirectory)/$(pytestFolder) - script: pytest test_${{ pytestScript }}.py + script: pytest ${{ pytestScript }}.py diff --git a/projects/rccl/.azuredevops/multinode-ci-pr.yml b/projects/rccl/.azuredevops/multinode-ci-pr.yml index 243a2ff465..040377e9ba 100644 --- a/projects/rccl/.azuredevops/multinode-ci-pr.yml +++ b/projects/rccl/.azuredevops/multinode-ci-pr.yml @@ -65,7 +65,7 @@ stages: parameters: componentName: rccl testDir: $(Build.SourcesDirectory)/build/test - testExecutable: './rccl-UnitTests' + testExecutable: 'LD_LIBRARY_PATH=$(Build.SourcesDirectory)/build:${LD_LIBRARY_PATH} NCCL_DEBUG=INFO RCCL_ENABLE_SIGNALHANDLER=1 ./rccl-UnitTests' testParameters: '--gtest_output=xml:./test_output.xml --gtest_color=yes' - ${{ each pytestScript in parameters.pytestList }}: - task: Bash@3 @@ -74,4 +74,4 @@ stages: inputs: targetType: inline workingDirectory: $(Build.SourcesDirectory)/$(pytestFolder) - script: pytest test_${{ pytestScript }}.py + script: pytest ${{ pytestScript }}.py