From 241ebb43cf2e8311fa31f1f34e71d4d83743f449 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Wed, 10 Jul 2024 00:29:20 -0700 Subject: [PATCH 1/2] [CI][GHA]Disable GHA CI workflow Signed-off-by: Xiaodong Li --- .github/workflows/ci_lin.yml | 98 ------------------------------------ .github/workflows/ci_win.yml | 91 --------------------------------- 2 files changed, 189 deletions(-) delete mode 100644 .github/workflows/ci_lin.yml delete mode 100644 .github/workflows/ci_win.yml diff --git a/.github/workflows/ci_lin.yml b/.github/workflows/ci_lin.yml deleted file mode 100644 index 31353ade9..000000000 --- a/.github/workflows/ci_lin.yml +++ /dev/null @@ -1,98 +0,0 @@ -name: Linux Github Action CI - -permissions: - contents: read - -on: - pull_request: - branches: - - SYCLomatic - types: [opened, synchronize, reopened, ready_for_review] - -env: - BUILD_CONCURRENCY: 2 - MACOS_BUILD_CONCURRENCY: 3 - TEST_TIMEOUT: 3600 - -jobs: - - linux-test: - name: linux-test-${{ matrix.test_suite }}-cpu - runs-on: lin_ci_test - if: github.event.pull_request.draft == false - strategy: - fail-fast: false - matrix: - include: - - test_suite: user_guide_samples - - test_suite: regressions - - test_suite: samples - - test_suite: help_function - - test_suite: features - - test_suite: api_coverage - - test_suite: behavior_tests - steps: - - name: Process ENV - id: process_env - run: | - for mask_value in $(jq -r '.[]' $GITHUB_WORKSPACE/../../../../mask_env_values.json); do - echo "add mask for $mask_value"; - echo "::add-mask::$mask_value"; - done - - - name: Cleanup Workspace - shell: bash - run: | - rm -rf ${{ github.workspace }}/* - - uses: actions/checkout@v2 - with: - path: c2s_test_repo - - - name: Checkout Source Repo - #uses: actions/checkout@v2 - #with: - # repository: - # path: c2s_test_repo - env: - FACELESS_TOKEN: ${{ secrets.GH_CI_NSTESTER_TOKEN }} - run: | - git clone https://$FACELESS_TOKEN@github.com/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic - cd c2s.src - DATE_YESTERDAY=$(git rev-list -1 --before=`date --utc -d yesterday +"%Y-%m-%d"` SYCLomatic) - git reset ${DATE_YESTERDAY} --hard - - - name: Get_Latest_Nightly - uses: nick-fields/retry@v2 - with: - timeout_minutes: 30 - max_attempts: 10 - retry_wait_seconds: 60 - shell: bash - command: | - ARCHIVE_PATH=$(cat $GITHUB_WORKSPACE/../../../../GH_CI_LIN_ARCHIVE_FOLDER.txt) - find $ARCHIVE_PATH -maxdepth 1 -type d -name "*_*0000" -print | sort -r | head -1 |xargs -i cp -r "{}/build/linux_prod/" ./ - mv linux_prod c2s.obj - - - name: Prepare Env - timeout-minutes: 60 - uses: ./c2s.src/devops/actions/prepare_env_lin - with: - c2s_obj_dir: "c2s.obj" - - - name: Run testing option_cpu - timeout-minutes: 180 - shell: bash - run: | - cd c2s_test_repo - time python run_test.py --suite ${{ matrix.test_suite }} --option option_cpu - echo $PWD - - - name: Run testing option_usmnone_cpu - if: success() || failure() - timeout-minutes: 180 - shell: bash - run: | - cd c2s_test_repo - time python run_test.py --suite ${{ matrix.test_suite }} --option option_usmnone_cpu - echo $PWD - diff --git a/.github/workflows/ci_win.yml b/.github/workflows/ci_win.yml deleted file mode 100644 index 28da860c3..000000000 --- a/.github/workflows/ci_win.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Windows Github Action CI - -permissions: - contents: read - -on: - pull_request: - branches: - - SYCLomatic - types: [opened, synchronize, reopened, ready_for_review] - -env: - BUILD_CONCURRENCY: 2 - MACOS_BUILD_CONCURRENCY: 3 - TEST_TIMEOUT: 3600 - -jobs: - windows-test: - name: windows-test-${{ matrix.test_suite }}-cpu - if: github.event.pull_request.draft == false - runs-on: win_ci_test - - strategy: - fail-fast: false - matrix: - include: - - test_suite: user_guide_samples - - test_suite: regressions - - test_suite: samples - - test_suite: api_coverage - - test_suite: behavior_tests - steps: - - uses: actions/checkout@v2 - with: - path: c2s_test_repo - - - name: Cleanup Workspace - run: | - if exist c2s.obj rd /s /q c2s.obj - if exist c2s.src rd /s /q c2s.src - if exist c2s_obj.7z del /s /q c2s_obj.7z - if not exist "P:\" (net use P: "\\scssgfiler01.sc.intel.com\cmplrarch" /Y) - shell: cmd - - - name: Get_Latest_Nightly - shell: bash - run: | - ARCHIVE_PATH=$(cat $GITHUB_WORKSPACE/../../../GH_CI_WIN_ARCHIVE_FOLDER.txt) - cp -r $ARCHIVE_PATH/latest/build/win_prod ./ - mv win_prod c2s.obj - - - name: Checkout Source Repo - shell: bash - env: - FACELESS_TOKEN: ${{ secrets.GH_CI_NSTESTER_TOKEN }} - run: | - git clone https://$FACELESS_TOKEN@github.com/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic - cd c2s.src - DATE_YESTERDAY=$(git rev-list -1 --before=`date --utc -d yesterday +"%Y-%m-%d"` SYCLomatic) - git reset ${DATE_YESTERDAY} --hard - - - name: Process ENV - id: process_env - run: | - for mask_value in $(C:/jq-win64.exe -r ".[]" $GITHUB_WORKSPACE/../../../mask_env_values.json); do - echo "add mask for $mask_value"; - echo "::add-mask::$mask_value"; - done - shell: bash - - - name: Prepare Env - timeout-minutes: 60 - uses: ./c2s.src/devops/actions/prepare_env_win - - - name: Run testing option_cpu - timeout-minutes: 180 - shell: bash - run: | - cd c2s_test_repo - python run_test.py --suite ${{ matrix.test_suite }} --option option_cpu - echo $PWD - - - name: Run testing option_usmnone_cpu - if: success() || failure() - timeout-minutes: 180 - shell: bash - run: | - cd c2s_test_repo - python run_test.py --suite ${{ matrix.test_suite }} --option option_usmnone_cpu - echo $PWD - From c8580e6155456d21d1fd117e097604b8be134678 Mon Sep 17 00:00:00 2001 From: Xiaodong Li Date: Wed, 10 Jul 2024 01:45:48 -0700 Subject: [PATCH 2/2] [CI][GHA]Disable GHA CI workflow Signed-off-by: Xiaodong Li --- .github/workflows/ci_lin.yml | 99 ------------------------------------ 1 file changed, 99 deletions(-) delete mode 100644 .github/workflows/ci_lin.yml diff --git a/.github/workflows/ci_lin.yml b/.github/workflows/ci_lin.yml deleted file mode 100644 index 5b11f1c5f..000000000 --- a/.github/workflows/ci_lin.yml +++ /dev/null @@ -1,99 +0,0 @@ -name: Linux Github Action CI - -permissions: - contents: read - -on: - pull_request: - branches: - - SYCLomatic - types: [opened, synchronize, reopened, ready_for_review] - -env: - BUILD_CONCURRENCY: 2 - MACOS_BUILD_CONCURRENCY: 3 - TEST_TIMEOUT: 3600 - -jobs: - - linux-test: - name: linux-test-${{ matrix.test_suite }}-cpu - runs-on: lin_ci_test - if: github.event.pull_request.draft == false - strategy: - fail-fast: false - matrix: - include: - - test_suite: user_guide_samples - - test_suite: regressions - - test_suite: samples - - test_suite: help_function - - test_suite: features - - test_suite: api_coverage - - test_suite: behavior_tests - - test_suite: applications - steps: - - name: Process ENV - id: process_env - run: | - for mask_value in $(jq -r '.[]' $GITHUB_WORKSPACE/../../../../mask_env_values.json); do - echo "add mask for $mask_value"; - echo "::add-mask::$mask_value"; - done - - - name: Cleanup Workspace - shell: bash - run: | - rm -rf ${{ github.workspace }}/* - - uses: actions/checkout@v2 - with: - path: c2s_test_repo - - - name: Checkout Source Repo - #uses: actions/checkout@v2 - #with: - # repository: - # path: c2s_test_repo - env: - FACELESS_TOKEN: ${{ secrets.GH_CI_NSTESTER_TOKEN }} - run: | - git clone https://$FACELESS_TOKEN@github.com/oneapi-src/SYCLomatic.git c2s.src -b SYCLomatic - cd c2s.src - DATE_YESTERDAY=$(git rev-list -1 --before=`date --utc -d yesterday +"%Y-%m-%d"` SYCLomatic) - git reset ${DATE_YESTERDAY} --hard - - - name: Get_Latest_Nightly - uses: nick-fields/retry@v2 - with: - timeout_minutes: 30 - max_attempts: 10 - retry_wait_seconds: 60 - shell: bash - command: | - ARCHIVE_PATH=$(cat $GITHUB_WORKSPACE/../../../../GH_CI_LIN_ARCHIVE_FOLDER.txt) - find $ARCHIVE_PATH -maxdepth 1 -type d -name "*_*0000" -print | sort -r | head -1 |xargs -i cp -r "{}/build/linux_prod/" ./ - mv linux_prod c2s.obj - - - name: Prepare Env - timeout-minutes: 60 - uses: ./c2s.src/devops/actions/prepare_env_lin - with: - c2s_obj_dir: "c2s.obj" - - - name: Run testing option_cpu - timeout-minutes: 180 - shell: bash - run: | - cd c2s_test_repo - time python run_test.py --suite ${{ matrix.test_suite }} --option option_cpu - echo $PWD - - - name: Run testing option_usmnone_cpu - if: success() || failure() - timeout-minutes: 180 - shell: bash - run: | - cd c2s_test_repo - time python run_test.py --suite ${{ matrix.test_suite }} --option option_usmnone_cpu - echo $PWD -