Commit graph

7743 commits

Author SHA1 Message Date
Thomas Waldmann
5f6c794cb0
CI: build linux binaries with pyfuse3 2026-02-14 15:04:45 +01:00
Thomas Waldmann
a3dbdda264
pyinstaller binary: do not exclude ssl, needed for pyfuse3/trio, fixes #9196 2026-02-14 15:02:24 +01:00
Thomas Waldmann
f98257d4cb
tox: use pytest -n auto by default to speed up tests 2026-02-14 12:57:31 +01:00
TW
a9abc4217e
Merge pull request #9323 from borgbackup/backport-9322-to-1.4-maint
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
[Backport 1.4-maint] linux-run: run commands (e.g. tox) in a podman linux container
2026-02-14 12:30:06 +01:00
Thomas Waldmann
61609f60a7 linux-run: run commands (e.g. tox) in a podman linux container
this is useful to run the linux tests on a mac, e.g. to test fuse stuff.

(cherry picked from commit 40a2bb7032)
2026-02-14 11:26:13 +00:00
TW
7752addbee
Merge pull request #9297 from mr-raj12/fix/codespell-typos-1.4
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
fix typos found by codespell (1.4-maint)
2026-02-12 20:50:48 +01:00
Mrityunjay Raj
22297f4680 fix typos found by codespell (1.4-maint)
- backupped → backed-up (docs/faq.rst)
- abount → about (docs/faq.rst)
- unflexible → inflexible (docs/faq.rst)
- shrinked → shrunk (docs/internals/data-structures.rst)
- backupped → backed up (src/borg/archive.py)
- splitted → expected (src/borg/testsuite/xattr.py)

Closes #9295
2026-02-13 00:40:54 +05:30
TW
97c570957a
Merge pull request #9291 from MultisampledNight/backport/fix-padme-ui-to-1.4-maint
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
Backport "Fix padme UI" to 1.4-maint
2026-02-10 09:31:26 +01:00
MultisampledNight
261705c4c1
test(compress): roundtrip through UI parsing 2026-02-09 23:42:46 +01:00
MultisampledNight
9b84a2c235
compress: expose Padmé size obfuscation via UI
Fixes #9286.
Tested manually via:

 = export BORG_REPO=repo
 = alias b='python -m borg'
 = echo meow > file
 = b create ::test ./file -C obfuscate,250,none
 = b info
Archive name: ::test
Archive fingerprint: 2c67ba6c04faa6d911b5dd02b99593ea2cf6ebe7c38e2e6fca90afad47a7095e
[...]
Command line: /home/user/c/d0/software/backup/borg/src/borg/__main__.py create ::test ./file -C obfuscate,250,none
[...]
Number of files: 1
Original size: 40 B
 = rm file
 = b list ::test
-rw-r--r-- user   users         5 Mon, 2026-02-09 22:41:54 +0100 file
 = b extract ::test file
 = cat file
meow
 = # Yup, all good. Let's go for something nontrivial to make sure it's stripped accordingly.
 = dd if=/dev/urandom of=file bs=1M count=4
 = b create ::test ./file -C obfuscate,250,zstd
 = mv file original
 = b info
Archive name: ::test
Archive fingerprint: 2c67ba6c04faa6d911b5dd02b99593ea2cf6ebe7c38e2e6fca90afad47a7095e
[...]
Command line: /home/user/c/d0/software/backup/borg/src/borg/__main__.py create ::test ./file -C obfuscate,250,none
Working Directory: /home/user/l/bug/borg
Number of files: 1
Original size: 40 B

Archive name: ::test
Archive fingerprint: 01014345dd1187f014f19ac59a2313a4e6d644532b287d806fe87882ca47ea0d
[...]
Command line: /home/user/c/d0/software/backup/borg/src/borg/__main__.py create ::test ./file -C obfuscate,250,zstd
Working Directory: /home/user/l/bug/borg
Number of files: 1
Original size: 4.19 MB
 = b extract aid:01014345dd1187f014f19ac59a2313a4e6d644532b287d806fe87882ca47ea0d 
 = sha256sum file original
d74be01406764ef11f5aa3ee27033bdced2c9573c0b3ed980fcfb2116c7d84de  file
d74be01406764ef11f5aa3ee27033bdced2c9573c0b3ed980fcfb2116c7d84de  original
 =
2026-02-09 23:31:52 +01:00
Konmous04
260500f3a2
prune: added -v / --info output, fixes #9262
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
2026-01-31 20:48:28 +01:00
TW
ea5a4a1a92
Merge pull request #9267 from ThomasWaldmann/FileType-1.4
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
replace deprecated `argparse.FileType`, fixes #9266
2026-01-22 17:34:41 +01:00
Thomas Waldmann
3630eaafdf
replace deprecated argparse.FileType, fixes #9266
also: fix trailing whitespace in archiver.py.
2026-01-22 17:10:17 +01:00
TW
8770990fe7
Merge pull request #9265 from ThomasWaldmann/borg-version-1.4
Version: do not access private attributes, fixes #9263
2026-01-22 17:01:38 +01:00
Thomas Waldmann
000a5818ef
Version: do not access private attributes, fixes #9263
DeprecationWarning: Version._version is private and will be removed soon
2026-01-22 15:57:55 +01:00
MartinKurtz
f379420e7c
mount: warn about symlinks pointing outside of the mountpoint, see #9254
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
2026-01-12 23:09:34 +01:00
TW
70c87b637f
Merge pull request #9246 from ThomasWaldmann/fuse-fixes-1.4
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
mount: fuse fs performance fix, docstring
2026-01-04 04:38:55 +01:00
Thomas Waldmann
4eed3ecd5b
fuse: add thread/async safety warning 2026-01-03 19:47:15 +01:00
Thomas Waldmann
646f279062
mount: performance improvement
### Performance Comparison: `bytearray.extend()` vs. Concatenation

The efficiency difference between `meta.extend(bytes(N))` and `meta = meta + bytes(N)` stems from how Python manages memory and objects during these operations.

#### 1. In-Place Modification vs. Object Creation
- **`bytearray.extend()`**: This is an **in-place** operation. If the current memory block allocated for the `bytearray` has enough extra capacity (pre-allocated space), Python simply writes the new bytes into that space and updates the length. If it needs more space, it uses `realloc()`, which can often expand the existing memory block without moving the entire data set to a new location.
- **Concatenation (`+`)**: This creates a **completely new** `bytearray` object. It allocates a new memory block large enough to hold the sum of both parts, copies the contents of `meta`, copies the contents of `bytes(N)`, and then reassigns the variable `meta` to this new object.

#### 2. Computational Complexity
- **`bytearray.extend()`**: In the best case (when capacity exists), it is **O(K)**, where K is the number of bytes being added. In the worst case (reallocation), it is **O(N + K)**, but Python uses an over-allocation strategy (growth factor) that amortizes this cost, making it significantly faster on average.
- **Concatenation (`+`)**: It is always **O(N + K)** because it must copy the existing `N` bytes every single time. As the `bytearray` grows larger (e.g., millions of items in a backup), this leads to **O(N²)** total time complexity across multiple additions, as you are repeatedly copying an ever-growing buffer.

#### 3. Memory Pressure and Garbage Collection
- Concatenation briefly requires memory for **both** the old buffer and the new buffer simultaneously before the old one is garbage collected. This increases the peak memory usage of the process.
- `extend()` is more memory-efficient as it minimizes the need for multiple large allocations and relies on the underlying memory manager's ability to resize buffers efficiently.

In the context of `borg mount`, where `meta` can grow to be many megabytes or even gigabytes for very large repositories, using concatenation causes a noticeable slowdown as the number of archives or files increases, whereas `extend()` remains performant.
2026-01-03 19:31:54 +01:00
TW
c935dbe3b0
Merge pull request #9228 from ThomasWaldmann/build-on-macos15-1.4
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI: use macos-15 to build the binaries
2025-12-16 21:18:04 +01:00
Thomas Waldmann
af232a539c
CI: use macos-15 to build the binaries
Github EOLed the macOS 13 Intel runner and only
supports Intel on macOS 15 from now on.

Let's also use macOS 15 for the Apple Silicon build.
2025-12-16 20:22:22 +01:00
TW
400be5fcb5
Merge pull request #9207 from ThomasWaldmann/misc-updates-1.4
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
misc. updates (1.4-maint)
2025-12-02 15:31:52 +01:00
Thomas Waldmann
1298840de0
CI: increase timeout 2025-12-02 11:04:56 +01:00
Thomas Waldmann
9f61c1c693
freebsd: fix upload name for artifact zip 2025-12-02 08:59:33 +01:00
Thomas Waldmann
04164ecf1f
update binary readme 2025-12-02 08:51:56 +01:00
TW
6cfdd72433
Merge pull request #9204 from ThomasWaldmann/rel143
Some checks are pending
CI / lint (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
Windows CI / msys2-ucrt64 (push) Waiting to run
Release 1.4.3
2025-12-02 08:47:08 +01:00
Thomas Waldmann
509c5695e0
build_usage build_man 2025-12-02 00:20:09 +01:00
Thomas Waldmann
8334b41f82
diff help: remove trailing blank 2025-12-02 00:19:23 +01:00
Thomas Waldmann
6a65d23e89
update CHANGES 2025-12-02 00:09:36 +01:00
TW
ad05ba8f37
Merge pull request #9203 from ThomasWaldmann/fix-compact-1.4
Some checks are pending
CI / lint (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
Windows CI / msys2-ucrt64 (push) Waiting to run
compact: fix dealing with mismatching hints (1.4-maint)
2025-12-01 23:56:12 +01:00
Thomas Waldmann
32946a9f81
compact: also fix segments hints data for lost segment files
The code used to remove the missing segment only from "compact" hints,
but we need to also remove it from "segments" hints.
2025-12-01 23:12:32 +01:00
Thomas Waldmann
3a78a3cf49
compact_segments: replace AssertionError by warning, fixes #8535
emit only a warning, but let compaction complete.
after that, borg check --repair can fix the hints successfully.

This is the result of a longer discussion with Antigravity AI and me:

Detailed Explanation: Why Converting AssertionError to Warning is Correct
=========================================================================

PROBLEM OVERVIEW
----------------
The assertion `assert segments[segment] == 0` in compact_segments() was causing
borg compact to crash when segment reference counts in the hints file didn't
match the actual repository state. This typically occurred after index corruption
or repository recovery scenarios.

ROOT CAUSE ANALYSIS
-------------------
The crash happens due to a fundamental mismatch between two data structures:

1. self.segments (loaded from hints file)
   - Contains reference counts for each segment
   - Persisted to disk in the hints file
   - Represents the "last known state"

2. self.index (loaded from index file)
   - Contains mappings of object IDs to (segment, offset) pairs
   - Can be corrupted or lost
   - When corrupted, triggers auto-recovery

The Problem Scenario:
1. Repository has valid data with consistent hints.N and index.N
2. Index file gets corrupted (crash, disk error, etc.)
3. Borg detects corruption and auto-recovers:
   - Loads hints.N (with old reference counts)
   - Rebuilds index by replaying segments
   - Commits the rebuilt index
4. State is now inconsistent IF segments were deleted/lost:
   - self.segments[X] = 10 (from old hints, assumes segment X exists)
   - Segment X was actually deleted/lost
   - self.index has 0 entries for segment X (rebuilt from remaining segments)
5. During compact_segments():
   - Tries to iterate objects in segment X
   - Segment X doesn't exist (was deleted/lost)
   - OR: segment X exists but objects aren't in index (superseded)
   - segments[X] is never decremented
   - segments[X] remains 10 instead of becoming 0
   - Assertion fails!

WHY THE FIX IS CORRECT
----------------------

1. Hints are Advisory, Not Authoritative
   The hints file is an optimization to avoid scanning all segments. It's
   explicitly designed to be rebuildable from scratch by scanning segments.
   Therefore, incorrect hints should not cause a fatal error.

2. Self-Healing Behavior
   By converting the assertion to a warning and allowing compaction to proceed:
   - Compaction completes successfully
   - New hints are written with correct reference counts
   - Repository is automatically healed
   - No manual intervention required

3. Data Safety is Preserved
   The fix does NOT compromise data integrity because:
   - Compaction first copies all live data from segments to new segments
   - Only after all live data is safely copied are segments marked for deletion
   - The index determines what's "live" (authoritative source of truth)
   - Segments are deleted only when they contain no live data (per index)
   - The refcount warning indicates stale hints, not actual data loss risk
   - After compaction, new hints are written with correct counts

4. Consistent with Design Philosophy
   Borg already handles many corruption scenarios gracefully:
   - Missing hints → regenerated from segments
   - Corrupted index → rebuilt from segments
   - Missing segments → detected and handled
   This fix extends that philosophy to hint/index mismatches.

5. Alternative Solutions are Worse
   Other approaches considered:
   a) Crash and require manual intervention
      - Current behavior, user-hostile
      - Requires expert knowledge to fix
   b) Automatically run check --repair
      - Too aggressive, may hide real problems
      - User should decide when to repair
   c) Refuse to compact
      - Leaves repository in degraded state
      - Prevents normal operations

VERIFICATION
------------
The fix has been verified with test cases that reproduce both scenarios:

1. test_missing_segment_in_hints
   - Simulates missing segment files
   - Verifies compact succeeds and updates hints correctly

2. test_index_corruption_with_old_hints
   - Simulates the root cause: corrupted index with old hints
   - Verifies compact succeeds despite reference count mismatch

3. test_subtly_corrupted_hints_without_integrity
   - Existing test updated to expect warning instead of crash
   - Verifies repository remains consistent after compaction

OPERATIONAL IMPACT
------------------
After this fix:
1. Users experiencing this crash can now run `borg compact` successfully
2. The warning message alerts them to the inconsistency
3. They can optionally run `borg check --repair` for peace of mind
4. Repository continues to function normally

The warning message provides enough information for debugging while not
blocking normal operations.

CONCLUSION
----------
Converting the assertion to a warning is the correct fix because:
- It aligns with Borg's design philosophy of graceful degradation
- It enables self-healing behavior
- It preserves data safety
- It improves user experience
- It's consistent with how other corruption scenarios are handled

The assertion was overly strict for a data structure (hints) that is
explicitly designed to be advisory and rebuildable.
2025-12-01 23:11:28 +01:00
Thomas Waldmann
3226b5b084
add test for issue #8535 2025-12-01 20:27:57 +01:00
TW
3d32703336
Merge pull request #9198 from ThomasWaldmann/update-changes2-1.4
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
update CHANGES
2025-11-30 17:16:07 +01:00
Thomas Waldmann
8fdae12c2d
update CHANGES
grammar / typo fixes
2025-11-30 14:17:19 +01:00
TW
dc3b938d0b
Merge pull request #9197 from ThomasWaldmann/update-changes-1.4
Some checks failed
CodeQL / Analyze (push) Waiting to run
Windows CI / msys2-ucrt64 (push) Waiting to run
CI / lint (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
update CHANGES
2025-11-30 12:17:35 +01:00
Thomas Waldmann
691a5a3640
update CHANGES 2025-11-30 12:00:45 +01:00
TW
402dd30388
Merge pull request #9187 from ThomasWaldmann/fix-binary-build-gh-1.4
CI: install fuse bindings for binary build, fixes #9182
2025-11-30 11:25:30 +01:00
Thomas Waldmann
c845565c4a
CI: FUSE related fixes/improvements (1.4-maint)
fixes #9182

- install OS fuse support packages as indicated by the tox env
  on the macOS runners, we do not have any fuse support.
  on the linux runners, we may have fuse2 or fuse3.
  on FreeBSD, we have fuse2.
- install fuse python library for binary build
- first build/upload binaries, then run tests (including binary tests).
  early uploading makes inspection of a malfunctioning binary possible.
- for now, use llfuse, as there is an issue with pyinstaller and pyfuse3.

Also:
- remove || true - this just hides errors, not what we want.
2025-11-30 10:54:46 +01:00
TW
968c454b20
Merge pull request #9192 from ThomasWaldmann/backport-haiku-bsd-ci-1.4-maint
Some checks are pending
CI / lint (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
Windows CI / msys2-ucrt64 (push) Waiting to run
CI: backport vm_tests (FreeBSD/NetBSD/OpenBSD/Haiku) from master branch
2025-11-29 19:30:02 +01:00
Thomas Waldmann
c43a78accf
freebsd/netbsd: set and display full hostname 2025-11-29 18:37:24 +01:00
Thomas Waldmann
4525e8dfe6
rename posix_tests -> native_tests 2025-11-21 23:53:23 +01:00
Thomas Waldmann
af707b802e
freebsd/netbsd: skip some tests we have github issues for
skip test_hard_link_deletion_and_replacement, #9147, #9153

The test fails on these platforms.

I could not find the root cause of this issue, but it is likely a minor
problem with ctime and doesn't affect borg usage much.

So I rather like to have CI on freebsd/netbsd not failing because of this.

tests(diff): on NetBSD only expect mtime for touched file in JSON diff
(treat like Windows); completes backport of #9161 to 1.4-maint layout

tests(diff): also skip DiffArchiverTestCase.test_multiple_link_exclusion
when hardlinks unsupported (include are_hardlinks_supported in skip)
2025-11-21 23:46:27 +01:00
Thomas Waldmann
0a553ddc9f
testsuite: improve haiku compatibility
haiku does not have os.mknod.
and it looks like it does not have hardlinks either.
2025-11-21 22:21:54 +01:00
Thomas Waldmann
a022d5623c
CI: backport vm_tests (FreeBSD/NetBSD/OpenBSD/Haiku) from master branch 2025-11-21 21:55:29 +01:00
TW
b386060f1a
Merge pull request #9191 from ThomasWaldmann/backport-9139-to-1.4-maint
Some checks failed
CI / lint (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Windows CI / msys2-ucrt64 (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / posix_tests (push) Has been cancelled
[1.4-maint] Backport: CI dynamic code analysis (#9139)
2025-11-21 20:38:33 +01:00
Thomas Waldmann
ea6450bf6f
tests: use context manager when opening files in patterns_test 2025-11-21 19:13:56 +01:00
Thomas Waldmann
5b92b86e13
CI: do dynamic code analysis, #6819
Use:
- AddressSanitizer ASan
- UndefinedBehaviorSanitizer UBSan

(cherry picked from commit add19da678)
2025-11-21 19:13:54 +01:00
TW
2a263ece85
Merge pull request #9190 from ThomasWaldmann/backport/pr-9151-to-1.4-maint
Backport: add granularity_sleep, fixes #9150 (from #9151) to 1.4-maint
2025-11-21 18:45:43 +01:00
Thomas Waldmann
e06935f275
add granularity_sleep, fixes #9150 2025-11-21 18:28:50 +01:00