From c4a973a2cf714a6fe2d99785f925a51d59310f48 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:31:42 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate (#4337) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.7.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.7.3) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 721a0cd6eb..ae1a0c186f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: exclude: ^source/3rdparty - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.7.2 + rev: v0.7.3 hooks: - id: ruff args: ["--fix"] From 4793125453d9ca5328abdb6f6d76b07483e29f9b Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 12 Nov 2024 03:07:24 -0500 Subject: [PATCH 2/2] CI: set `--clean-durations` for pytest-split (#4341) 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. ## 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. --- .github/workflows/test_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index ba8858d6b9..1b1935a2f6 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -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