Skip to content

Commit

Permalink
CI: set --clean-durations for pytest-split (#4341)
Browse files Browse the repository at this point in the history
I noticed that the CI is broken in several PRs. The duration files are
not generated correctly and become larger and larger, causing
out-of-memory.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated the workflow configuration for Python testing to enhance test
duration management and artifact handling.
- Improved caching mechanisms for test durations to ensure uniqueness
and avoid conflicts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
njzjz authored Nov 12, 2024
1 parent c4a973a commit 4793125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
restore-keys: |
test2-durations-combined-${{ matrix.python }}-${{ github.sha }}
test2-durations-combined-${{ matrix.python }}
- run: pytest --cov=deepmd source/tests --durations=0 --splits 6 --group ${{ matrix.group }} --store-durations --durations-path=.test_durations --splitting-algorithm least_duration
- run: pytest --cov=deepmd source/tests --durations=0 --splits 6 --group ${{ matrix.group }} --store-durations --clean-durations --durations-path=.test_durations --splitting-algorithm least_duration
env:
NUM_WORKERS: 0
- name: Test TF2 eager mode
Expand Down

0 comments on commit 4793125

Please sign in to comment.