1515 workflow_dispatch :
1616
1717 schedule :
18- # Monday 02:00 Beijing time = Sunday 18:00 UTC
19- - cron : ' 0 18 * * 0'
18+ # Monday 00:10 Beijing time = Sunday 16:10 UTC
19+ - cron : ' 10 16 * * 0'
2020
2121defaults :
2222 run :
@@ -116,11 +116,20 @@ jobs:
116116 # that prevent conda init / backend env setup from running in
117117 # non-interactive CI shells. Extract those lines (conda init,
118118 # `source .../set_env.sh`, FLAGTREE_BACKEND export, and the
119- # `. $HOME /.local/bin/env` sourcing) and append to .bash_profile
119+ # `. /root /.local/bin/env` sourcing) and append to .bash_profile
120120 # instead, which is sourced by login shells without any
121121 # interactive check.
122+ #
123+ # huawei: set_env.sh
124+ # mthreads: $HOME/.local/bin/env
125+ # kunlunxin: conda.sh and conda activate
126+ #
122127 if [ -f /root/.bashrc ]; then
123- grep -E '(conda\.sh|conda activate|set_env\.sh|FLAGTREE_BACKEND|\.local/bin/env)' /root/.bashrc >> "$HOME/.bash_profile" || true
128+ # Pin $HOME -> /root: extracted lines use "$HOME/..." (e.g.
129+ # . "$HOME/.local/bin/env"), but the login shell that sources
130+ # .bash_profile has $HOME set to the GHA home, not /root.
131+ grep -E '(conda\.sh|conda activate|set_env\.sh|\.local/bin/env)' /root/.bashrc \
132+ | sed 's#\$HOME\/\.local#/root\/\.local#g' >> "$HOME/.bash_profile" || true
124133 fi
125134
126135 - name : Install FlagGems dependencies
@@ -138,8 +147,6 @@ jobs:
138147 # env: ${{ fromJSON(matrix.test_env) }}
139148 # shell: bash --login -e -o pipefail {0}
140149 # run: |
141- # # remove cache to avoid potential issues with stale files
142- # rm -rf ~/.triton/cache && rm -rf ~/.flaggems
143150 # # run tests with specified GPUs and output directory
144151 # printenv | grep -viE '^(https?_proxy|all_proxy)=' || true
145152 # python3 tools/run_tests.py \
@@ -159,8 +166,6 @@ jobs:
159166 env : ${{ fromJSON(matrix.test_env) }}
160167 shell : bash --login -e -o pipefail {0}
161168 run : |
162- # remove cache to avoid potential issues with stale files
163- rm -rf ~/.triton/cache && rm -rf ~/.flaggems
164169 # run tests with specified GPUs and output directory
165170 # Print env for debugging; drop proxy vars (http(s)_proxy/all_proxy,
166171 # any case) since they may embed user:password that GitHub Actions
@@ -177,7 +182,6 @@ jobs:
177182 python3 tools/psum_html -o ${OUTPUT_DIR}/result.html ${OUTPUT_DIR}
178183
179184 - name : Package results
180- id : package-results
181185 run : |
182186 ARCHIVE="${{ runner.temp }}/weekly-${{ matrix.name }}-${DATE}.tar.gz"
183187 tar -czf "${ARCHIVE}" -C "$(dirname "${OUTPUT_DIR}")" "$(basename "${OUTPUT_DIR}")"
@@ -264,7 +268,7 @@ jobs:
264268 # timeout-minutes: 720
265269 # env: ${{ fromJSON(matrix.test_env) }}
266270 # run: |
267- # # remove cache to avoid potential issues with stale files
271+ # #remove cache to avoid potential issues with stale files
268272 # rm -rf ~/.triton/cache && rm -rf ~/.flaggems
269273 # # run tests with specified GPUs and output directory
270274 # python3 tools/run_tests.py \
0 commit comments