Skip to content

Commit

Permalink
fix OOM issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 11, 2024
1 parent 4dab4fb commit c4f08c8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,23 @@ jobs:
with:
pattern: split-${{ matrix.python }}-*
merge-multiple: true
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Combine test durations
run: jq -s add .test_durations_* > .test_durations
# Below line causes OOM
# run: jq -s add .test_durations_* > .test_durations
run: |
from glob import glob
contents = []
for fn in glob(".test_durations_*"):
with open(fn) as f:
contents.append(f.read().strip().strip("{}"))
with open(".test_durations", "w") as f:
f.write("{" + ",".join(contents) + "}")
shell: python

pass:
name: Pass testing Python
needs: [testpython, update_durations]
Expand Down

0 comments on commit c4f08c8

Please sign in to comment.