From d15659c8dffb53384dd8199e4c1d4d676d0eb96a Mon Sep 17 00:00:00 2001 From: elianalf <62831776+elianalf@users.noreply.github.com> Date: Mon, 6 May 2024 07:52:42 +0200 Subject: [PATCH] Refs #20843: Move resource files and change path Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com> --- {resources => .github/resources}/check_flakes.py | 0 .../resources}/ctest-to-junit-reducted.xsl | 0 {resources => .github/resources}/ctest2junit.py | 0 .github/workflows/nightly-ubuntu-detect-flaky.yml | 8 ++++---- 4 files changed, 4 insertions(+), 4 deletions(-) rename {resources => .github/resources}/check_flakes.py (100%) rename {resources => .github/resources}/ctest-to-junit-reducted.xsl (100%) rename {resources => .github/resources}/ctest2junit.py (100%) diff --git a/resources/check_flakes.py b/.github/resources/check_flakes.py similarity index 100% rename from resources/check_flakes.py rename to .github/resources/check_flakes.py diff --git a/resources/ctest-to-junit-reducted.xsl b/.github/resources/ctest-to-junit-reducted.xsl similarity index 100% rename from resources/ctest-to-junit-reducted.xsl rename to .github/resources/ctest-to-junit-reducted.xsl diff --git a/resources/ctest2junit.py b/.github/resources/ctest2junit.py similarity index 100% rename from resources/ctest2junit.py rename to .github/resources/ctest2junit.py diff --git a/.github/workflows/nightly-ubuntu-detect-flaky.yml b/.github/workflows/nightly-ubuntu-detect-flaky.yml index f29fec55ab1..e901337e34e 100644 --- a/.github/workflows/nightly-ubuntu-detect-flaky.yml +++ b/.github/workflows/nightly-ubuntu-detect-flaky.yml @@ -95,14 +95,14 @@ jobs: run: | cd ${{ github.workspace }} test_results_file="${{ github.workspace }}/test_results-$TODAY.xml" - colcon test --packages-select=fastdds --event-handlers=console_direct+ --ctest-args --repeat-until-pass:3 --timeout=300 --label-exclude="xfail" + colcon test --packages-select=fastdds --event-handlers=console_direct+ --ctest-args --timeout=300 --label-exclude="xfail" # Translate CTest XML reports to jUnit if [ ! -f ${test_results_file} ] then echo "::group::Translating test report to jUnit..." - python3 ${{ github.workspace }}/src/fastdds/resources/ctest2junit.py \ + python3 ${{ github.workspace }}/src/fastdds/.github/resources/ctest2junit.py \ --build-dir ${{ github.workspace }}/build/fastdds \ - --xslt ${{ github.workspace }}/src/fastdds/resources/ctest-to-junit-reducted.xsl \ + --xslt ${{ github.workspace }}/src/fastdds/.github/resources/ctest-to-junit-reducted.xsl \ --output-junit ${test_results_file} \ --timestamp "$NOW" echo "::endgroup::" @@ -119,7 +119,7 @@ jobs: - name: Flaky test analysis on [window-size] runs history id: flaky_analysis run: | - python ${{ github.workspace }}/src/flaky_test_infra_poc/resources/check_flakes.py --junit-files=. --grouping-option=runs --window-size=6 --window-count=1 --output-file=$GITHUB_STEP_SUMMARY + python ${{ github.workspace }}/src/fastdds/.github/resources/check_flakes.py --junit-files=. --grouping-option=runs --window-size=6 --window-count=1 --output-file=$GITHUB_STEP_SUMMARY - name: Upload test results if: always()