Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Nov 13, 2024
1 parent db92a7a commit 9c53c86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/selfdrive_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:

RUN: docker run --shm-size 2G -v $PWD:/tmp/openpilot -w /tmp/openpilot -e CI=1 -e PYTHONWARNINGS=error -e FILEREADER_CACHE=1 -e PYTHONPATH=/tmp/openpilot -e NUM_JOBS -e JOB_ID -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v $GITHUB_WORKSPACE/.ci_cache/scons_cache:/tmp/scons_cache -v $GITHUB_WORKSPACE/.ci_cache/comma_download_cache:/tmp/comma_download_cache -v $GITHUB_WORKSPACE/.ci_cache/openpilot_cache:/tmp/openpilot_cache $BASE_IMAGE /bin/bash -c

PYTEST: pytest --continue-on-collection-errors --cov --cov-report=xml --cov-append --durations=0 --durations-min=5 --hypothesis-seed 0 -n logical
PYTEST: pytest --continue-on-collection-errors --cov --cov-report=xml --cov-append --durations=0 --durations-min=0 --hypothesis-seed 0 -n logical

jobs:
build_release:
Expand Down
4 changes: 2 additions & 2 deletions tools/lib/url_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_length(self) -> int:

self._length = self.get_length_online()
if not self._force_download and self._length != -1:
with atomic_write_in_dir(file_length_path, mode="w") as file_length:
with atomic_write_in_dir(file_length_path, mode="w", overwrite=True) as file_length:
file_length.write(str(self._length))
return self._length

Expand All @@ -105,7 +105,7 @@ def read(self, ll: int|None=None) -> bytes:
# If we don't have a file, download it
if not os.path.exists(full_path):
data = self.read_aux(ll=CHUNK_SIZE)
with atomic_write_in_dir(full_path, mode="wb") as new_cached_file:
with atomic_write_in_dir(full_path, mode="wb", overwrite=True) as new_cached_file:
new_cached_file.write(data)
else:
with open(full_path, "rb") as cached_file:
Expand Down

0 comments on commit 9c53c86

Please sign in to comment.