From 563091255648783ccff1ba08deeb2c397dd4c92f Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Thu, 13 Nov 2025 16:34:00 +0800 Subject: [PATCH 01/21] Mark passed items in GitHub issues with strikethrough --- .github/scripts/ut_result_check.sh | 90 ++++++++++++++++++++++++++++-- 1 file changed, 86 insertions(+), 4 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index fe6b1de66..ace4acf85 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -1,8 +1,11 @@ #!/bin/bash # Test Suite Runner for Intel Torch-XPU-Ops # Usage: ./script.sh + # Available suites: op_regression, op_extended, op_ut, test_xpu, xpu_distributed, skipped_ut -ut_suite="${1:-op_regression}" # Default to op_regression if no suite specified +readonly ut_suite="${1:-op_regression}" # Default to op_regression if no suite specified +readonly REPO="intel/torch-xpu-ops" + # Expected test case counts for each test suite category # Used to detect significant test case reductions (>5%) declare -A EXPECTED_CASES=( @@ -13,6 +16,7 @@ declare -A EXPECTED_CASES=( ["op_ut"]=120408 ["test_xpu"]=69 ) + # Tests that are known to randomly pass and should be ignored when detecting new passes # These are typically flaky tests that don't indicate real improvements IGNORE_TESTS=( @@ -23,6 +27,7 @@ IGNORE_TESTS=( "test_python_ref__refs_log2_xpu_complex128" "_jiterator_" # Pattern to match all jiterator tests ) + # Find new failed test cases that are not in the known issues list # Args: UT_results_file, known_issues_file, [output_file] check_new_failed() { @@ -45,6 +50,7 @@ check_new_failed() { echo -e "āœ… No new failed cases" fi } + # Find known issues that are now passing (regression fixes) # Args: passed_tests_file, known_issues_file, [output_file] check_passed_known_issues() { @@ -58,7 +64,7 @@ check_passed_known_issues() { sed -i 's/\r$//' "$passed_file" fi # Find known issues that are now passing (intersection of passed tests and known issues) - grep -Fxf "$passed_file" "$known_file" > "$output_file" + grep -Fxf "$passed_file" "$known_file" |sort |uniq > "$output_file" echo -e "\\nšŸ“Š New Passing Known Issues:" if [[ -s "$output_file" ]]; then local count @@ -68,8 +74,11 @@ check_passed_known_issues() { else echo -e "ā„¹ļø No known issues are now passing" fi + # Mark passed items in GitHub issues with strikethrough + mark_passed_issue "$output_file" "$known_file" rm -f "$output_file" # Clean up temporary file } + # Verify test case counts haven't dropped significantly (>5% reduction) # Args: category_log_file check_test_cases() { @@ -106,6 +115,7 @@ check_test_cases() { done < "$log_file" echo "$all_pass" # Return overall status } + # Clean test case files: extract test names, sort, and remove duplicates clean_file() { local file="$1" @@ -123,7 +133,7 @@ check_skipped_ut() { local new_file="new-passed-issue.cases" local result_file="new-passed-this-run.cases" # Fetch known passing tests from GitHub issue tracking known passes - if gh --repo intel/torch-xpu-ops issue view "${NEW_PASSED_ISSUE:-2333}" --json body -q .body 2>/dev/null | grep "::.*::" > "$known_file"; then + if gh --repo $REPO issue view "${NEW_PASSED_ISSUE:-2333}" --json body -q .body 2>/dev/null | grep "::.*::" > "$known_file"; then echo "āœ… Fetched known tests from GitHub" else echo "āš ļø Using empty known tests file" @@ -152,10 +162,11 @@ check_skipped_ut() { fi # Update GitHub issue with current passing tests for future reference if [ -s "$known_file" ] || [ -s "$new_file" ]; then - gh --repo intel/torch-xpu-ops issue edit "${NEW_PASSED_ISSUE:-2333}" --body-file "$new_file" + gh --repo $REPO issue edit "${NEW_PASSED_ISSUE:-2333}" --body-file "$new_file" echo "Successfully updated issue ${NEW_PASSED_ISSUE:-2333}" fi } + # Main test runner for standard test suites (op_regression, op_extended, etc.) run_main_tests() { local suite="$1" @@ -212,6 +223,7 @@ run_main_tests() { echo "āœ… TEST PASSED: ${suite}" fi } + # Special runner for distributed test suite (different log format) run_distributed_tests() { local suite="$1" @@ -251,6 +263,76 @@ run_distributed_tests() { echo "āœ… TEST PASSED: ${suite}" fi } + +# Mark passed items in GitHub issues with strikethrough +mark_passed_issue() { + local PASSED_FILE="$1" + local ISSUE_FILE="$2" + # Cehck before start + [[ ! -f "$PASSED_FILE" ]] && { echo "āŒ Missing $PASSED_FILE" >&2; exit 1; } + [[ ! -f "$ISSUE_FILE" ]] && { echo "āŒ Missing $ISSUE_FILE" >&2; exit 1; } + command -v gh &>/dev/null || { echo "āŒ GitHub CLI required" >&2; exit 1; } + echo "šŸ” Loading passed items..." + # Load passed items into array for efficient lookup + declare -a passed_items + mapfile -t passed_items < <(grep -v '^[[:space:]]*$' "$PASSED_FILE") + echo "šŸ” Mapping passed items to issues..." + declare -A issue_items + local issue_id="" + local in_cases_section=0 + while IFS= read -r line; do + line=$(echo "$line" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') + [[ -z "$line" ]] && { in_cases_section=0; continue;} + if [[ "$line" == "Cases:"* ]]; then + in_cases_section=1 + continue + fi + # Extract issue ID if this line contains an issue + if [[ "$line" =~ Issue\ #([0-9]+) ]]; then + issue_id="${BASH_REMATCH[1]}" + continue + fi + if [[ $in_cases_section -eq 1 && -n "$issue_id" ]]; then + # Check if this case is in the passed items + for passed_case in "${passed_items[@]}"; do + if [[ "$passed_case" == "$line" ]]; then + if [[ -n "${issue_items[$issue_id]:-}" ]]; then + issue_items["$issue_id"]+=" $passed_case" + else + issue_items["$issue_id"]="$passed_case" + fi + break + fi + done + fi + done < "$ISSUE_FILE" + echo "āœ… Done! Found ${#issue_items[@]} issues with passed items" + # Print results and update issues + for issue_id in "${!issue_items[@]}"; do + # Remove duplicate cases and clean up formatting + uniq_cases=$(echo "${issue_items[$issue_id]}" | tr ' ' '\n' | sort | uniq | tr '\n' ' ') + echo "šŸ“ Processing issue #${issue_id} with cases: ${uniq_cases}" + # Get current issue body + gh --repo "$REPO" issue view "${issue_id}" --json body -q .body > "issue-body-${issue_id}.txt" + # Apply strikethrough to passed cases + for case in $uniq_cases; do + sed -i "s|^${case}$|~~${case}~~|g" "issue-body-${issue_id}.txt" + done + # Update the issue + gh --repo "$REPO" issue edit "${issue_id}" --body-file "issue-body-${issue_id}.txt" + # Add comment + if [[ -n "${GITHUB_RUN_ID:-}" && -n "${GITHUB_REPOSITORY:-}" ]]; then + gh --repo "$REPO" issue comment "${issue_id}" --body "āœ… ${uniq_cases} Passed in [nightly testing](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID})" + else + gh --repo "$REPO" issue comment "${issue_id}" --body "āœ… ${uniq_cases} Passed in nightly testing" + fi + # Clean up temporary file + rm -f "issue-body-${issue_id}.txt" + echo "āœ… Updated issue #${issue_id}" + break + done +} + # Main dispatcher - route to appropriate test runner based on suite type case "$ut_suite" in op_regression|op_regression_dev1|op_extended|op_transformers|op_ut|test_xpu) From fec23367aaef19de6d338d5845615edaf047bdb2 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Thu, 13 Nov 2025 16:40:30 +0800 Subject: [PATCH 02/21] update --- .github/scripts/ut_result_check.sh | 5 ++++- .github/workflows/_linux_ut.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index ace4acf85..51d22ef6e 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -4,6 +4,7 @@ # Available suites: op_regression, op_extended, op_ut, test_xpu, xpu_distributed, skipped_ut readonly ut_suite="${1:-op_regression}" # Default to op_regression if no suite specified +readonly inputs_pytorch="${2:-nightly_wheel}" readonly REPO="intel/torch-xpu-ops" # Expected test case counts for each test suite category @@ -75,7 +76,9 @@ check_passed_known_issues() { echo -e "ā„¹ļø No known issues are now passing" fi # Mark passed items in GitHub issues with strikethrough - mark_passed_issue "$output_file" "$known_file" + if [ "$GITHUB_EVENT_NAME" == "schedule" ] && [ "$inputs_pytorch" != "nightly_wheel" ];then + mark_passed_issue "$output_file" "$known_file" + fi rm -f "$output_file" # Clean up temporary file } diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 23dcaa3ae..ff17298d5 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -179,7 +179,7 @@ jobs: if ( print_row == 1 && $1 ~ r ) { print $0 }; if ( $0 ~ /Cases:/ ) { print_row = 1 }; }' issues.log >> Known_issue.log - bash ut_result_check.sh ${ut_name} + bash ut_result_check.sh "${ut_name}" "${{ inputs.pytorch }}" done - name: Upload Inductor XPU UT Log if: ${{ ! cancelled() }} From b0003d6341b5d00af381d42404db2ac1a056009d Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Thu, 13 Nov 2025 17:04:27 +0800 Subject: [PATCH 03/21] update --- .github/scripts/ut_result_check.sh | 3 +-- .github/workflows/_linux_ut.yml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index 51d22ef6e..2de93a3ed 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -319,7 +319,7 @@ mark_passed_issue() { gh --repo "$REPO" issue view "${issue_id}" --json body -q .body > "issue-body-${issue_id}.txt" # Apply strikethrough to passed cases for case in $uniq_cases; do - sed -i "s|^${case}$|~~${case}~~|g" "issue-body-${issue_id}.txt" + sed -i "s|^${case}[[:space:]]*$|~~${case}~~|g" "issue-body-${issue_id}.txt" done # Update the issue gh --repo "$REPO" issue edit "${issue_id}" --body-file "issue-body-${issue_id}.txt" @@ -332,7 +332,6 @@ mark_passed_issue() { # Clean up temporary file rm -f "issue-body-${issue_id}.txt" echo "āœ… Updated issue #${issue_id}" - break done } diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index ff17298d5..e8b1d2162 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -179,6 +179,7 @@ jobs: if ( print_row == 1 && $1 ~ r ) { print $0 }; if ( $0 ~ /Cases:/ ) { print_row = 1 }; }' issues.log >> Known_issue.log + sed -i 's/[[:space:]]*$//g' Known_issue.log bash ut_result_check.sh "${ut_name}" "${{ inputs.pytorch }}" done - name: Upload Inductor XPU UT Log From 9502b35611233e815aba5a4bf5dfbaa2cc5c1829 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Thu, 13 Nov 2025 17:42:47 +0800 Subject: [PATCH 04/21] update --- .github/scripts/ut_result_check.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index 2de93a3ed..0be20e7a0 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -164,9 +164,11 @@ check_skipped_ut() { echo "āœ… No new passing tests found" fi # Update GitHub issue with current passing tests for future reference - if [ -s "$known_file" ] || [ -s "$new_file" ]; then - gh --repo $REPO issue edit "${NEW_PASSED_ISSUE:-2333}" --body-file "$new_file" - echo "Successfully updated issue ${NEW_PASSED_ISSUE:-2333}" + if [ "$GITHUB_EVENT_NAME" == "schedule" ] && [ "$inputs_pytorch" != "nightly_wheel" ];then + if [ -s "$known_file" ] || [ -s "$new_file" ]; then + gh --repo $REPO issue edit "${NEW_PASSED_ISSUE:-2333}" --body-file "$new_file" + echo "āœ… Successfully updated issue #${NEW_PASSED_ISSUE:-2333}" + fi fi } From fdc05051d53fb30319de2b722f436bdeb920621b Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Fri, 14 Nov 2025 11:19:58 +0800 Subject: [PATCH 05/21] update --- .github/scripts/ut_result_check.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index 0be20e7a0..7f098b8f1 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -348,9 +348,12 @@ case "$ut_suite" in skipped_ut) check_skipped_ut ;; + xpu_profiling) + echo "šŸ’” Not check the test suite results: ${ut_suite}" >&2 + ;; *) echo "āŒ Unknown test suite: ${ut_suite}" >&2 - echo "šŸ’” Available: op_regression, op_extended, op_ut, test_xpu, xpu_distributed, skipped_ut" >&2 - exit 1 + printf "šŸ’” Available: op_regression, op_regression_dev1, op_extended, op_transformers, " >&2 + printf "op_ut, test_xpu, xpu_distributed, skipped_ut, xpu_profiling\n" >&2 ;; esac From ffecf3fb493f6b5dbf5bffa9e24063bdbf3e4400 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Fri, 14 Nov 2025 14:17:32 +0800 Subject: [PATCH 06/21] uniq artifact name --- .github/workflows/_linux_build.yml | 4 ++-- .github/workflows/_linux_e2e.yml | 2 +- .github/workflows/_linux_op_benchmark.yml | 6 +++--- .github/workflows/_linux_ut.yml | 12 ++++++------ .github/workflows/_windows_ut.yml | 10 +++++----- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/_linux_build.yml b/.github/workflows/_linux_build.yml index 089c5ff54..1bed161f2 100644 --- a/.github/workflows/_linux_build.yml +++ b/.github/workflows/_linux_build.yml @@ -205,13 +205,13 @@ jobs: if: ${{ success() }} uses: actions/upload-artifact@v4 with: - name: Torch-XPU-Wheel-${{ github.event.pull_request.number || github.sha }} + name: Torch-XPU-Wheel-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/*.whl - name: Upload Build Log if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Torch-XPU-Build-Log-${{ github.event.pull_request.number || github.sha }} + name: Torch-XPU-Build-Log-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/build_*.log - name: Cleanup workspace if: ${{ always() }} diff --git a/.github/workflows/_linux_e2e.yml b/.github/workflows/_linux_e2e.yml index d938a182d..ef986f3f0 100644 --- a/.github/workflows/_linux_e2e.yml +++ b/.github/workflows/_linux_e2e.yml @@ -233,5 +233,5 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.suite }} + name: Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.suite }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/upload_files diff --git a/.github/workflows/_linux_op_benchmark.yml b/.github/workflows/_linux_op_benchmark.yml index a80f0b197..6a1ec198f 100644 --- a/.github/workflows/_linux_op_benchmark.yml +++ b/.github/workflows/_linux_op_benchmark.yml @@ -83,7 +83,7 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }} + name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/op_benchmark op_benchmark_test_results_check: @@ -106,7 +106,7 @@ jobs: - name: Download XPU UT Logs uses: actions/download-artifact@v4 with: - name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }} + name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/op_benchmark - name: Download OP Baseline continue-on-error: true @@ -147,7 +147,7 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-Updated + name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-Updated-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/op_benchmark - name: Upload Reference Run ID run: | diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index e8b1d2162..52f78454c 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -86,14 +86,14 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }} + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log if-no-files-found: ignore - name: Upload XPU UT Failure list if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: XPU-UT-Failure-List-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }} + name: XPU-UT-Failure-List-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log/ut_failure_list.csv if-no-files-found: ignore @@ -122,14 +122,14 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }} + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log if-no-files-found: ignore - name: Upload XPU UT Failure list if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: XPU-UT-Failure-List-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }} + name: XPU-UT-Failure-List-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log/ut_failure_list.csv if-no-files-found: ignore @@ -146,7 +146,7 @@ jobs: - name: Download XPU UT Logs uses: actions/download-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }} + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log - name: Check UT Results run: | @@ -186,6 +186,6 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }} + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log overwrite: true diff --git a/.github/workflows/_windows_ut.yml b/.github/workflows/_windows_ut.yml index 217a3fe70..67cd431d4 100644 --- a/.github/workflows/_windows_ut.yml +++ b/.github/workflows/_windows_ut.yml @@ -228,13 +228,13 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Torch-XPU-Windows-Log-${{ github.event.pull_request.number || github.sha }} + name: Torch-XPU-Windows-Log-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} path: 'C:\actions-runner\_work\torch-xpu-ops\pytorch\build_torch_wheel_log.log' - name: Upload Windows binary if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Torch-XPU-Windows-Binary-${{ github.event.pull_request.number || github.sha }} + name: Torch-XPU-Windows-Binary-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} path: 'C:\actions-runner\_work\torch-xpu-ops\pytorch\dist' - name: Run XPU OP Extended UT if: contains(inputs.ut, 'op_extended') || github.event_name == 'schedule' @@ -306,7 +306,7 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-${{ github.run_id }}-${{ github.run_attempt }} path: "${{ github.workspace }}/ut_log" if-no-files-found: ignore @@ -322,7 +322,7 @@ jobs: - name: Download XPU UT Logs uses: actions/download-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log - name: Check UT Results shell: bash @@ -357,6 +357,6 @@ jobs: if: ${{ ! cancelled() }} uses: actions/upload-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows + name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-${{ github.run_id }}-${{ github.run_attempt }} path: ${{ github.workspace }}/ut_log overwrite: true From 4640b2de8d1d433953fdda44c9c11cc0fff62ba8 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Mon, 17 Nov 2025 16:50:11 +0800 Subject: [PATCH 07/21] update --- .github/scripts/ut_result_check.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index 7f098b8f1..4da06d966 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -32,7 +32,9 @@ IGNORE_TESTS=( # Find new failed test cases that are not in the known issues list # Args: UT_results_file, known_issues_file, [output_file] check_new_failed() { - local ut_file="$1" known_file="$2" output_file="${3:-${ut_file%.*}_filtered.log}" + local ut_file="$1" + local known_file="$2" + local output_file="failures_${suite}_filtered.log" if [[ $# -lt 2 ]]; then echo "āŒ Need 2 files to compare" >&2 return 1 @@ -206,7 +208,7 @@ run_main_tests() { echo -e "\\nāœ… Passing Known Issues:" check_passed_known_issues "passed_${suite}.log" "Known_issue.log" # Check for new failures not in known issues - echo -e "\\nāŒ New Failures:" + echo -e "\\nChecking New Failures:" if [[ -f "failures_${suite}.log" ]]; then check_new_failed "failures_${suite}.log" "Known_issue.log" fi @@ -256,8 +258,8 @@ run_distributed_tests() { check_new_failed "${suite}_failed.log" "Known_issue.log" # Calculate final statistics for distributed tests local failed_count=0 passed_count=0 - if [[ -f "${suite}_failed_filtered.log" ]]; then - failed_count=$(wc -l < "${suite}_failed_filtered.log") + if [[ -f "failures_${suite}_filtered.log" ]]; then + failed_count=$(wc -l < "failures_${suite}_filtered.log") fi passed_count=$(wc -l < "${suite}_passed.log") # Final result determination for distributed tests From 0d0562d32e1ec3fd5b0adc4970c7bcc1998a888c Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Mon, 17 Nov 2025 18:06:08 +0800 Subject: [PATCH 08/21] update --- .github/scripts/ut_result_check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index 4da06d966..291efb5c2 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -238,8 +238,8 @@ run_distributed_tests() { echo "Running distributed tests for: ${suite}" echo "=========================================================================" # Process distributed test logs (different format than main tests) - grep -E "^FAILED" "${suite}_test.log" | awk '{print $3 "\n" $2}' | grep -v '^[^.d]\+$' > "${suite}_failed.log" - grep "PASSED" "${suite}_test.log" | awk '{print $1}' > "${suite}_passed.log" + grep "FAILED" "${suite}_test.log" | awk '{for(i=1;i<=NF;i++){if($i ~/::.*::/){print $i}}}' | sort -u > "${suite}_failed.log" + grep "PASSED" "${suite}_test.log" | awk '{for(i=1;i<=NF;i++){if($i ~/::.*::/){print $i}}}' | sort -u > "${suite}_passed.log" echo "šŸ“‹ Failed Cases:" cat "${suite}_failed.log" # Identify filtered tests (known issues in distributed tests) From cd9fd16c5fc68004de8ca4cf9603a37037c9b7d4 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Mon, 17 Nov 2025 18:12:04 +0800 Subject: [PATCH 09/21] update --- .github/scripts/ut_result_check.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/ut_result_check.sh b/.github/scripts/ut_result_check.sh index 291efb5c2..a94007da1 100644 --- a/.github/scripts/ut_result_check.sh +++ b/.github/scripts/ut_result_check.sh @@ -238,8 +238,10 @@ run_distributed_tests() { echo "Running distributed tests for: ${suite}" echo "=========================================================================" # Process distributed test logs (different format than main tests) - grep "FAILED" "${suite}_test.log" | awk '{for(i=1;i<=NF;i++){if($i ~/::.*::/){print $i}}}' | sort -u > "${suite}_failed.log" - grep "PASSED" "${suite}_test.log" | awk '{for(i=1;i<=NF;i++){if($i ~/::.*::/){print $i}}}' | sort -u > "${suite}_passed.log" + grep "FAILED" "${suite}_test.log" > "${suite}_failed.log" + clean_file "${suite}_failed.log" + grep "PASSED" "${suite}_test.log" > "${suite}_passed.log" + clean_file "${suite}_passed.log" echo "šŸ“‹ Failed Cases:" cat "${suite}_failed.log" # Identify filtered tests (known issues in distributed tests) From 30c832ff838a9682f1c2763293368963f747f409 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Mon, 17 Nov 2025 21:22:55 +0800 Subject: [PATCH 10/21] update artifact download --- .github/actions/linux-testenv/action.yml | 3 ++- .github/workflows/_linux_e2e_summary.yml | 7 ++++--- .github/workflows/_linux_op_benchmark.yml | 9 ++++++--- .github/workflows/_linux_ut.yml | 6 ++++-- .github/workflows/_windows_ut.yml | 4 +++- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/actions/linux-testenv/action.yml b/.github/actions/linux-testenv/action.yml index 26a684344..96d69beee 100644 --- a/.github/actions/linux-testenv/action.yml +++ b/.github/actions/linux-testenv/action.yml @@ -65,7 +65,8 @@ runs: elif [ $(echo "${{ inputs.pytorch }}" |grep -w "nightly_wheel" -c) -ne 0 ];then pip install torch torchvision torchaudio --pre --index-url https://download.pytorch.org/whl/nightly/xpu else - pip install --force-reinstall $(find ${{ github.workspace }}/ -name "*torch*.whl") + latest_dir="$(ls Torch-XPU-Wheel-* |sort -V |tail -n 1)" + pip install --force-reinstall $(find ${{ github.workspace }}/${latest_dir} -name "*torch*.whl") fi TORCH_COMMIT_ID=$(python -c 'import torch; print(torch.version.git_version)') if [[ "${{ inputs.pytorch }}" == *"https://"* ]];then diff --git a/.github/workflows/_linux_e2e_summary.yml b/.github/workflows/_linux_e2e_summary.yml index c7ff06e65..25a8e668d 100644 --- a/.github/workflows/_linux_e2e_summary.yml +++ b/.github/workflows/_linux_e2e_summary.yml @@ -46,8 +46,8 @@ jobs: cd target/ target_dir="Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-*" gh --repo ${GITHUB_REPOSITORY} run download ${GITHUB_RUN_ID} -p "${target_dir}" - find Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-*/ -maxdepth 1 -mindepth 1 -type d |\ - while read line; do mv $line .; done + find Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-*/ -maxdepth 1 -mindepth 1 -type d |sort -V |\ + while read line; do rsync -az --delete $line/ $(basename $line)/; done - name: Download Baseline Artifact run: | mkdir baseline/ @@ -61,7 +61,8 @@ jobs: REFERENCE_RUN_ID="$(cat body.txt |grep "Inductor-${artifact_type}-LTS2" |sed 's/.*: *//' || echo '')" if [ "${REFERENCE_RUN_ID}" != "" ];then gh --repo intel/torch-xpu-ops run download ${REFERENCE_RUN_ID} -p "Inductor-*-XPU-E2E-*" - find Inductor-*-XPU-E2E-*/ -maxdepth 1 -mindepth 1 -type d |while read line; do mv $line .; done + find Inductor-*-XPU-E2E-*/ -maxdepth 1 -mindepth 1 -type d |sort -V |\ + while read line; do rsync -az --delete $line/ $(basename $line)/; done fi - name: Get summary id: summary diff --git a/.github/workflows/_linux_op_benchmark.yml b/.github/workflows/_linux_op_benchmark.yml index 6a1ec198f..f3d8b8a86 100644 --- a/.github/workflows/_linux_op_benchmark.yml +++ b/.github/workflows/_linux_op_benchmark.yml @@ -96,7 +96,6 @@ jobs: run: | sudo apt-get update sudo apt-get install gh rsync ca-certificates -y - find ./ |grep -v "^\./$" |xargs rm -rf - name: Checkout torch-xpu-ops uses: actions/checkout@v4 - name: Setup python-${{ inputs.python }} @@ -106,12 +105,16 @@ jobs: - name: Download XPU UT Logs uses: actions/download-artifact@v4 with: - name: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} - path: ${{ github.workspace }}/op_benchmark + pattern: Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-* + path: ${{ github.workspace }}/op_benchmark_tmp - name: Download OP Baseline continue-on-error: true id: reference_id run: | + # latest dir + latest_dir="$(ls Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-* |sort -V |tail -n 1)" + mv ${{ github.workspace }}/op_benchmark_tmp/${latest_dir} ${{ github.workspace }}/op_benchmark + # baseline REFERENCE_RUN_ID="$(gh --repo ${GITHUB_REPOSITORY} issue view ${reference_issue} \ --json body -q .body |grep "Inductor-XPU-OP-Benchmark-Data" |sed 's/.*: *//')" gh --repo ${GITHUB_REPOSITORY} run download ${REFERENCE_RUN_ID} -p "Inductor-XPU-OP-Benchmark-Data-*" diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 52f78454c..ddd02646a 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -146,12 +146,14 @@ jobs: - name: Download XPU UT Logs uses: actions/download-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-${{ github.run_id }}-${{ github.run_attempt }} + pattern: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-* path: ${{ github.workspace }}/ut_log - name: Check UT Results run: | ls -al ${{ github.workspace }}/ut_log - cd ${{ github.workspace }}/ut_log/${{ inputs.ut }} + cd ${{ github.workspace }}/ut_log/ + latest_dir="$(ls Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-* |sort -V |tail -n 1)" + cd "${latest_dir}/${{ inputs.ut }}" for log_file in "${{ github.workspace }}/ut_log"/{failures,passed,category,reproduce}_*.log; do [[ -f "$log_file" ]] && cp "$log_file" ./ diff --git a/.github/workflows/_windows_ut.yml b/.github/workflows/_windows_ut.yml index 67cd431d4..a89426140 100644 --- a/.github/workflows/_windows_ut.yml +++ b/.github/workflows/_windows_ut.yml @@ -322,13 +322,15 @@ jobs: - name: Download XPU UT Logs uses: actions/download-artifact@v4 with: - name: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-${{ github.run_id }}-${{ github.run_attempt }} + pattern: Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-* path: ${{ github.workspace }}/ut_log - name: Check UT Results shell: bash run: | ls -al ${{ github.workspace }}/ut_log cd ${{ github.workspace }}/ut_log + latest_dir="$(ls Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-* |sort -V |tail -n 1)" + cd "${latest_dir}" # get skipped known issues count=$(gh api --paginate "repos/${{ github.repository }}/issues?labels=skipped_windows" --jq 'length') From b6eeecba257fb37585b26429f1b53a6e94588438 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Tue, 18 Nov 2025 09:04:05 +0800 Subject: [PATCH 11/21] update --- .github/actions/linux-testenv/action.yml | 5 +++-- .github/workflows/_linux_op_benchmark.yml | 2 +- .github/workflows/_linux_ut.yml | 2 +- .github/workflows/_windows_ut.yml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/linux-testenv/action.yml b/.github/actions/linux-testenv/action.yml index 96d69beee..ea876649c 100644 --- a/.github/actions/linux-testenv/action.yml +++ b/.github/actions/linux-testenv/action.yml @@ -35,6 +35,7 @@ runs: fi sudo apt update sudo apt install -y jq numactl + rm -rf Torch-XPU-Wheel-* - name: Setup python-${{ inputs.python }} uses: actions/setup-python@v5 with: @@ -65,8 +66,8 @@ runs: elif [ $(echo "${{ inputs.pytorch }}" |grep -w "nightly_wheel" -c) -ne 0 ];then pip install torch torchvision torchaudio --pre --index-url https://download.pytorch.org/whl/nightly/xpu else - latest_dir="$(ls Torch-XPU-Wheel-* |sort -V |tail -n 1)" - pip install --force-reinstall $(find ${{ github.workspace }}/${latest_dir} -name "*torch*.whl") + latest_dir="$(find . -type d -name "Torch-XPU-Wheel-*" |sort -V |tail -n 1)" + pip install --force-reinstall $(find ${latest_dir} -name "*torch*.whl") fi TORCH_COMMIT_ID=$(python -c 'import torch; print(torch.version.git_version)') if [[ "${{ inputs.pytorch }}" == *"https://"* ]];then diff --git a/.github/workflows/_linux_op_benchmark.yml b/.github/workflows/_linux_op_benchmark.yml index f3d8b8a86..c5415455d 100644 --- a/.github/workflows/_linux_op_benchmark.yml +++ b/.github/workflows/_linux_op_benchmark.yml @@ -112,7 +112,7 @@ jobs: id: reference_id run: | # latest dir - latest_dir="$(ls Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-* |sort -V |tail -n 1)" + latest_dir=$(find . -type d -name "Inductor-XPU-OP-Benchmark-Data-${{ github.event.pull_request.number || github.sha }}-*" |sort -V |tail -n 1) mv ${{ github.workspace }}/op_benchmark_tmp/${latest_dir} ${{ github.workspace }}/op_benchmark # baseline REFERENCE_RUN_ID="$(gh --repo ${GITHUB_REPOSITORY} issue view ${reference_issue} \ diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index ddd02646a..8cf918307 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -152,7 +152,7 @@ jobs: run: | ls -al ${{ github.workspace }}/ut_log cd ${{ github.workspace }}/ut_log/ - latest_dir="$(ls Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-* |sort -V |tail -n 1)" + latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" for log_file in "${{ github.workspace }}/ut_log"/{failures,passed,category,reproduce}_*.log; do diff --git a/.github/workflows/_windows_ut.yml b/.github/workflows/_windows_ut.yml index a89426140..28ec8bbfe 100644 --- a/.github/workflows/_windows_ut.yml +++ b/.github/workflows/_windows_ut.yml @@ -329,7 +329,7 @@ jobs: run: | ls -al ${{ github.workspace }}/ut_log cd ${{ github.workspace }}/ut_log - latest_dir="$(ls Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-* |sort -V |tail -n 1)" + latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-Windows-*" |sort -V |tail -n 1) cd "${latest_dir}" # get skipped known issues From 93bf775dbd8a19871248fba55f4dff302fa58ad6 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Tue, 18 Nov 2025 14:14:47 +0800 Subject: [PATCH 12/21] update --- .github/workflows/_linux_ut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 8cf918307..99fdcf48e 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -153,7 +153,7 @@ jobs: ls -al ${{ github.workspace }}/ut_log cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) - cd "${latest_dir}/${{ inputs.ut }}" + cd "${latest_dir}" for log_file in "${{ github.workspace }}/ut_log"/{failures,passed,category,reproduce}_*.log; do [[ -f "$log_file" ]] && cp "$log_file" ./ From 9a3294cafcea59aa0aa685b56fac37d033844f73 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 10:16:54 +0800 Subject: [PATCH 13/21] update --- .github/workflows/_linux_ut.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 99fdcf48e..d51044d2b 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -153,11 +153,9 @@ jobs: ls -al ${{ github.workspace }}/ut_log cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) - cd "${latest_dir}" - - for log_file in "${{ github.workspace }}/ut_log"/{failures,passed,category,reproduce}_*.log; do - [[ -f "$log_file" ]] && cp "$log_file" ./ - done + cd "${latest_dir}/${{ inputs.ut }}" + cp "${{ github.workspace }}/ut_log/*.log" ./ + cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp # get skipped known issues @@ -172,7 +170,6 @@ jobs: else ut_list="${{ inputs.ut }}" fi - cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ for ut_name in ${ut_list} do cp Known_issue.log.tmp Known_issue.log From a7f92cbbbc849368e032dd8c984c45498a6c5bbf Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 11:30:32 +0800 Subject: [PATCH 14/21] update --- .github/workflows/_linux_ut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index d51044d2b..bb5ddd1bf 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -154,7 +154,7 @@ jobs: cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" - cp "${{ github.workspace }}/ut_log/*.log" ./ + cp ${{ github.workspace }}/ut_log/*.log ./ cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From 77714efcb2ae64c005951f921b48f611a860a506 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 11:32:27 +0800 Subject: [PATCH 15/21] update --- .github/workflows/_linux_ut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index bb5ddd1bf..1ce6081ce 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -154,7 +154,7 @@ jobs: cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" - cp ${{ github.workspace }}/ut_log/*.log ./ + cp ../*.log ./ cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From 299a20b891608c94c9a56f8624f806de68280fe7 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 11:33:13 +0800 Subject: [PATCH 16/21] update --- .github/workflows/_linux_ut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 1ce6081ce..21bb63e9c 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -154,7 +154,7 @@ jobs: cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" - cp ../*.log ./ + mv ../*.log ./ cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From d54b9a40249845163727b590af5a1ad2309403c9 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 11:33:46 +0800 Subject: [PATCH 17/21] update --- .github/workflows/_linux_ut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 21bb63e9c..6e74120cb 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -154,7 +154,7 @@ jobs: cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" - mv ../*.log ./ + mv ../*.log ./ || true cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From ad321c1bb366a81b2c7486c590bd6988f7aebbbb Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 18:01:53 +0800 Subject: [PATCH 18/21] update --- .github/workflows/_linux_ut.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 6e74120cb..aecd6cba4 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -154,7 +154,12 @@ jobs: cd ${{ github.workspace }}/ut_log/ latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" - mv ../*.log ./ || true + find "${{ github.workspace }}/ut_log" -type f \ + -name "failures_*.log" -o \ + -name "passed_*.log" -o \ + -name "category_*.log" -o \ + -name "reproduce_*.log" \ + -exec mv {} ./ \; cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From 0c6f15a82664570c412444def63d7d7933dbf78d Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Wed, 19 Nov 2025 19:29:14 +0800 Subject: [PATCH 19/21] update --- .github/workflows/_linux_ut.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index aecd6cba4..36e61bddd 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -155,11 +155,11 @@ jobs: latest_dir=$(find . -type d -name "Inductor-XPU-UT-Data-${{ github.event.pull_request.number || github.sha }}-${{ inputs.ut }}-*" |sort -V |tail -n 1) cd "${latest_dir}/${{ inputs.ut }}" find "${{ github.workspace }}/ut_log" -type f \ - -name "failures_*.log" -o \ - -name "passed_*.log" -o \ - -name "category_*.log" -o \ - -name "reproduce_*.log" \ - -exec mv {} ./ \; + \( -name "failures_*.log" -o \ + -name "passed_*.log" -o \ + -name "category_*.log" -o \ + -name "reproduce_*.log" \) \ + -exec mv {} 1/ \; || true cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From e5b2324666bbc8b07fa5e753bd7009ece5354105 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Thu, 20 Nov 2025 08:59:13 +0800 Subject: [PATCH 20/21] update --- .github/workflows/_linux_ut.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_linux_ut.yml b/.github/workflows/_linux_ut.yml index 36e61bddd..dc1064712 100644 --- a/.github/workflows/_linux_ut.yml +++ b/.github/workflows/_linux_ut.yml @@ -159,7 +159,7 @@ jobs: -name "passed_*.log" -o \ -name "category_*.log" -o \ -name "reproduce_*.log" \) \ - -exec mv {} 1/ \; || true + -exec mv {} ./ \; || true cp ${{ github.workspace }}/.github/scripts/ut_result_check.sh ./ # get distributed known issues gh --repo intel/torch-xpu-ops issue view $UT_SKIP_ISSUE --json body -q .body |sed -E '/^(#|$)/d' > Known_issue.log.tmp From 9425bd26817cec4c4fec81d569c7c303bb132233 Mon Sep 17 00:00:00 2001 From: mengfei25 Date: Thu, 20 Nov 2025 11:35:30 +0800 Subject: [PATCH 21/21] update --- .github/workflows/_linux_e2e_summary.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_linux_e2e_summary.yml b/.github/workflows/_linux_e2e_summary.yml index 25a8e668d..d75645510 100644 --- a/.github/workflows/_linux_e2e_summary.yml +++ b/.github/workflows/_linux_e2e_summary.yml @@ -44,10 +44,10 @@ jobs: run: | mkdir target/ cd target/ - target_dir="Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-*" - gh --repo ${GITHUB_REPOSITORY} run download ${GITHUB_RUN_ID} -p "${target_dir}" - find Inductor-${{ inputs.test_type }}-LTS2-XPU-E2E-Data-*/ -maxdepth 1 -mindepth 1 -type d |sort -V |\ + gh --repo ${GITHUB_REPOSITORY} run download ${GITHUB_RUN_ID} -p "Inductor-*-XPU-E2E-*" + find Inductor-*-XPU-E2E-*/ -maxdepth 1 -mindepth 1 -type d |sort -V |\ while read line; do rsync -az --delete $line/ $(basename $line)/; done + rm -rf Inductor-*-XPU-E2E-* || true - name: Download Baseline Artifact run: | mkdir baseline/ @@ -63,6 +63,7 @@ jobs: gh --repo intel/torch-xpu-ops run download ${REFERENCE_RUN_ID} -p "Inductor-*-XPU-E2E-*" find Inductor-*-XPU-E2E-*/ -maxdepth 1 -mindepth 1 -type d |sort -V |\ while read line; do rsync -az --delete $line/ $(basename $line)/; done + rm -rf Inductor-*-XPU-E2E-* || true fi - name: Get summary id: summary