Skip to content

Commit 8851c4d

Browse files
committed
improvements
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 449afe8 commit 8851c4d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/_build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ jobs:
161161
export FLASH_ATTENTION_FORCE_BUILD="TRUE"
162162
export FLASH_ATTENTION_FORCE_CXX11_ABI=${{ inputs.cxx11-abi }}
163163
164-
timeout 20m python setup.py bdist_wheel --dist-dir=dist || EXIT_CODE=$?
164+
# 5h timeout since GH allows max 6h and we want some buffer
165+
timeout 5h python setup.py bdist_wheel --dist-dir=dist || EXIT_CODE=$?
165166
166167
tmpname=cu${WHEEL_CUDA_VERSION}torch${MATRIX_TORCH_VERSION}cxx11abi${{ inputs.cxx11-abi }}
167168
wheel_name=$(ls dist/*whl | xargs -n 1 basename | sed "s/-/+$tmpname-/2")
@@ -174,14 +175,14 @@ jobs:
174175
# Do not fail the job if timeout killed the build
175176
exit $EXIT_CODE
176177
177-
- name: Log build logs
178-
if: always()
178+
- name: Log build logs after timeout
179+
if: always() && steps.build_wheel.outputs.build_exit_code == 124
179180
run: |
180181
ls -al ./
181182
tar -cvf build.tar . --atime-preserve=replace
182183
183-
- name: Save build cache
184-
if: always()
184+
- name: Save build cache timeout
185+
if: always() && steps.build_wheel.outputs.build_exit_code == 124
185186
uses: actions/cache/save@v4
186187
with:
187188
key: build-${{ inputs.release-version }}-${{ inputs.python-version }}-${{ inputs.cuda-version }}-${{ inputs.torch-version }}-${{ inputs.cxx11-abi }}-${{ github.run_number }}-${{ github.run_attempt }}

0 commit comments

Comments
 (0)