@@ -21,42 +21,10 @@ jobs:
2121 source ~/env.sh
2222 env | grep -E '^(http_proxy|https_proxy|all_proxy|no_proxy)=' >> $GITHUB_ENV || true
2323
24- - name : Checkout code (attempt 1)
25- id : checkout1
26- uses : actions/checkout@v6
24+ - name : Smart Checkout
25+ uses : flagos-ai/FlagTree/.github/actions/smart-checkout@main
2726 with :
28- fetch-depth : 0
29- continue-on-error : true
30-
31- - name : Sleep before checkout2
32- if : steps.checkout1.outcome == 'failure'
33- run : |
34- echo "First checkout attempt failed. Sleeping for 120 seconds before retry..."
35- sleep 120
36-
37- - name : Checkout code (attempt 2)
38- id : checkout2
39- if : steps.checkout1.outcome == 'failure'
40- uses : actions/checkout@v6
41- with :
42- fetch-depth : 0
43- continue-on-error : true
44-
45- - name : Sleep before final checkout
46- if : steps.checkout1.outcome == 'failure' && steps.checkout2.outcome == 'failure'
47- run : |
48- echo "Second checkout attempt failed. Sleeping for 180 seconds before final retry..."
49- sleep 180
50-
51- - name : Checkout code (final attempt)
52- if : steps.checkout1.outcome == 'failure' && steps.checkout2.outcome == 'failure'
53- uses : actions/checkout@v6
54- with :
55- fetch-depth : 0
56-
57- - name : Verify checkout success
58- if : success()
59- run : echo "Checkout completed successfully"
27+ checkout_version : ' v6'
6028
6129 - name : Check if only docs files changed
6230 id : check_files
@@ -104,8 +72,16 @@ jobs:
10472 --ignore=test_assume.py \
10573 --ignore=test_index_select.py
10674 popd
75+ # flagtree tle test
76+ pushd python/test/tle
77+ python3 test_vec_add.py
78+ python3 test_vec_add_2d.py
79+ python3 test_vec_add_mix.py
80+ python3 test_vec_mathOps.py
81+ python3 test_tle_with_hints.py
82+ popd
10783
108- - name : FlagTree Editable Build And Teston Ascend
84+ - name : FlagTree Editable Build And Test on Ascend
10985 if : steps.check_files.outputs.only_docs_changed != 'true'
11086 shell : bash
11187 run : |
11894 popd
11995 source /usr/local/Ascend/ascend-toolkit/set_env.sh
12096 python3 -c "import triton"
97+ python3 -m pip uninstall flagtree -y
0 commit comments