diff --git a/.github/workflows/aws-torch-latest-full.yml b/.github/workflows/aws-torch-latest-full.yml index a909b8458dbf..5f8b6183f968 100644 --- a/.github/workflows/aws-torch-latest-full.yml +++ b/.github/workflows/aws-torch-latest-full.yml @@ -370,7 +370,7 @@ jobs: echo "Running sequential tests with TORCH_CUDA_ARCH_LIST=$TORCH_CUDA_ARCH_LIST on $GPU_COUNT GPUs" cd tests rm -rf /mnt/aio/pytest - pytest --instafail --timeout 600 --forked -m 'sequential' --basetemp=/mnt/aio/pytest unit/ \ + pytest --instafail --timeout 600 -m 'sequential' --basetemp=/mnt/aio/pytest unit/ \ --ignore=unit/runtime/zero/test_nvme_checkpointing.py \ --ignore=unit/ops/aio/test_gds.py \ --ignore=unit/launcher/test_user_args.py \ diff --git a/tests/unit/ops/aio/test_fast_file_writer_fd_close.py b/tests/unit/ops/aio/test_fast_file_writer_fd_close.py index 9a218ab3aba5..7b63b8976ebb 100644 --- a/tests/unit/ops/aio/test_fast_file_writer_fd_close.py +++ b/tests/unit/ops/aio/test_fast_file_writer_fd_close.py @@ -70,6 +70,7 @@ def _build_writer(file_path): return FastFileWriter(file_path=str(file_path), config=cfg) +@pytest.mark.sequential def test_close_releases_fd_after_unlink(tmp_path): """Single save + unlink must not leave a deleted-fd reference.""" target = tmp_path / "ckpt_single.pt" @@ -87,6 +88,7 @@ def test_close_releases_fd_after_unlink(tmp_path): f"This indicates _fini() did not os.close(self._aio_fd).") +@pytest.mark.sequential @pytest.mark.parametrize("n_iters", [5, 20]) def test_rotation_loop_does_not_leak(tmp_path, n_iters): """N iterations of save+close+unlink should leave zero deleted-fds.