Skip to content

Commit

Permalink
Merge pull request #8382 from sothix/8264-windows-ci-broken
Browse files Browse the repository at this point in the history
Fix for #8264 Windows CI broken and #8381 Windows build failing
  • Loading branch information
ThomasWaldmann authored Sep 17, 2024
2 parents c278a8e + 8790371 commit 4e05e78
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:

windows:

if: false # build is broken, thus disabled, see #8264
if: true # build enabled
runs-on: windows-latest
timeout-minutes: 120
needs: linux
Expand Down
3 changes: 2 additions & 1 deletion scripts/msys2-install-deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

pacman -S --needed --noconfirm git mingw-w64-ucrt-x86_64-{toolchain,pkgconf,zstd,lz4,xxhash,openssl,python-msgpack,python-argon2_cffi,python-platformdirs,python,cython,python-setuptools,python-wheel,python-build,python-pkgconfig,python-packaging,python-pip}
pacman -S --needed --noconfirm git mingw-w64-ucrt-x86_64-{toolchain,pkgconf,zstd,lz4,xxhash,openssl,python-msgpack,python-argon2_cffi,python-platformdirs,python,cython,python-setuptools,python-wheel,python-build,python-pkgconfig,python-packaging,python-pip,python-paramiko}
python -m pip install --upgrade pip
pip install pyinstaller==6.3.0

if [ "$1" = "development" ]; then
Expand Down
1 change: 1 addition & 0 deletions src/borg/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
if exc_type and issubclass(exc_type, OSError):
E_MAP = {
errno.EPERM: BackupPermissionError,
errno.EISDIR: BackupPermissionError,
errno.EACCES: BackupPermissionError,
errno.EBUSY: BackupPermissionError,
errno.ENOENT: BackupFileNotFoundError,
Expand Down
4 changes: 2 additions & 2 deletions src/borg/testsuite/archiver/extract_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ... import xattr
from ...chunker import has_seek_hole
from ...constants import * # NOQA
from ...helpers import EXIT_WARNING, BackupOSError
from ...helpers import EXIT_WARNING, BackupPermissionError
from ...helpers import flags_noatime, flags_normal
from .. import changedir, same_ts_ns
from .. import are_symlinks_supported, are_hardlinks_supported, is_utime_fully_supported, is_birthtime_fully_supported
Expand Down Expand Up @@ -621,7 +621,7 @@ def test_overwrite(archivers, request):
os.unlink("output/input/file1")
os.mkdir("output/input/file1")
os.mkdir("output/input/file1/dir")
expected_ec = BackupOSError("open", OSError(21, "is a directory")).exit_code # WARNING code
expected_ec = BackupPermissionError("open", OSError(21, "is a directory")).exit_code # WARNING code
if expected_ec == EXIT_ERROR: # workaround, TODO: fix it
expected_ec = EXIT_WARNING
with changedir("output"):
Expand Down

0 comments on commit 4e05e78

Please sign in to comment.