Commit graph

9132 commits

Author SHA1 Message Date
Thomas Waldmann
fa01a2d46a
build_usage build_man 2025-05-22 13:21:21 +02:00
TW
fdd6f69eb4
Merge pull request #8870 from ThomasWaldmann/update-changes
update CHANGES
2025-05-22 13:13:54 +02:00
Thomas Waldmann
5b24e774b7
update CHANGES 2025-05-22 12:46:05 +02:00
TW
138afbe47f
Merge pull request #8863 from ThomasWaldmann/split-helpers-tests
Split helpers tests
2025-05-22 12:18:22 +02:00
TW
34cc0b28d1
Merge pull request #8865 from ThomasWaldmann/cython-fixes
Cython and build fixes
2025-05-22 01:17:17 +02:00
TW
4b3ba5f814
Merge pull request #8866 from ThomasWaldmann/tox
minor tox.ini improvements
2025-05-22 01:16:57 +02:00
TW
87a6a43f4f
Merge pull request #8864 from ThomasWaldmann/ci-windows-coverage
CI: upload coverage for windows tests
2025-05-22 00:07:48 +02:00
Thomas Waldmann
60d37e871d
minor tox.ini improvements
- consistent indentation with spaces
- use pytest, not py.test
- consistent empty lines between sections
- remove empty changedir lines
2025-05-21 23:44:16 +02:00
Thomas Waldmann
16b7dd8cee
suppress compiler warning about CYTHON_FALLTHROUGH
The `-Wno-unreachable-code-fallthrough` compiler flag suppresses warnings about fallthrough annotations in unreachable code.

In C switch statements, "fallthrough" occurs when execution continues from one case to the next without a break statement. This is often a source of bugs, so modern compilers warn about it. To indicate intentional fallthrough, developers use annotations like `__attribute__((fallthrough))`.

In Cython-generated C code, the `CYTHON_FALLTHROUGH` macro is defined to expand to the appropriate fallthrough annotation for the compiler being used. For example, in `compress.c`:

```c
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
```

The issue occurs because Cython generates code with conditional branches that may be unreachable on certain platforms or configurations. When these branches contain switch statements with fallthrough annotations, compilers like Clang issue warnings like:

```
warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
```

These warnings appear in the generated C code, not in the original Cython source. They're harmless but noisy, cluttering the build output with warnings about code we don't control.

By adding `-Wno-unreachable-code-fallthrough` to the compiler flags in `setup.py`, we specifically tell the compiler to ignore these particular warnings, resulting in a cleaner build output without affecting the actual functionality of the code.

This is a common practice when working with generated code - suppress specific warnings that are unavoidable due to the code generation process while keeping other useful warnings enabled.
2025-05-21 23:22:24 +02:00
Thomas Waldmann
2034864085
minor cython code fixes 2025-05-21 23:05:26 +02:00
Thomas Waldmann
18844717d2
CI: upload coverage for windows tests 2025-05-21 22:40:55 +02:00
Thomas Waldmann
881eaca08a
fix tests so that they are as before the splitup 2025-05-21 22:20:12 +02:00
Thomas Waldmann
5545af1fd0
remove now empty helpers_test 2025-05-21 21:11:49 +02:00
Thomas Waldmann
89e7e117a0
tests: move tests to testsuite.helpers.parseformat_test 2025-05-21 21:10:58 +02:00
Thomas Waldmann
a6ed1f63bc
tests: move tests to testsuite.helpers.__init__test 2025-05-21 21:07:28 +02:00
Thomas Waldmann
c564e3927b
tests: move tests to testsuite.archiver.prune_cmd_test 2025-05-21 21:04:04 +02:00
Thomas Waldmann
9241c8c940
tests: move tests to testsuite.helpers.misc_test 2025-05-21 21:00:01 +02:00
Thomas Waldmann
95432a9466
tests: move tests to testsuite.helpers.msgpack_test 2025-05-21 20:48:20 +02:00
Thomas Waldmann
a3124cbed6
tests: move tests to testsuite.helpers.process_test 2025-05-21 20:44:30 +02:00
Thomas Waldmann
63c4082843
tests: move tests to testsuite.helpers.shellpattern_test 2025-05-21 20:40:22 +02:00
Thomas Waldmann
6427915afc
tests: move tests to testsuite.helpers.time_test 2025-05-21 20:31:02 +02:00
Thomas Waldmann
75729615b0
tests: move tests to testsuite.helpers.passphrase_test 2025-05-21 20:25:46 +02:00
Thomas Waldmann
6ff557c6eb
tests: move tests to testsuite.helpers.progress_test 2025-05-21 20:20:33 +02:00
Thomas Waldmann
8458ed1965
tests: move tests to testsuite.helpers.parseformat_test 2025-05-21 20:10:53 +02:00
Thomas Waldmann
6d0551b9fd
tests: move helpers.datastruct tests to testsuite.helpers.datastruct_test 2025-05-21 19:02:24 +02:00
Thomas Waldmann
d5e460f6d5
tests: move helpers.yes_no tests to testsuite.helpers.yes_no_test 2025-05-21 18:50:43 +02:00
Thomas Waldmann
a965ce6dea
tests: move helpers.fs tests to testsuite.helpers.fs_test 2025-05-21 18:34:52 +02:00
Thomas Waldmann
6e57763345
create borg.testsuite.helpers package 2025-05-21 18:11:00 +02:00
TW
dc7d876957
Merge pull request #8862 from ThomasWaldmann/tests-save-temp-space
Tests: save temp space
2025-05-21 17:02:20 +02:00
TW
7760ebb6e3
Merge pull request #8861 from ThomasWaldmann/tests-fix-ts-granularity
tests: fix diff cmd test on macOS HFS+, fixes #8860
2025-05-21 16:03:23 +02:00
Thomas Waldmann
36e9cd4991
tests: test_list_chunk_counts, save space on TMPDIR 2025-05-21 15:31:51 +02:00
Thomas Waldmann
6210ae8b7b
tests: test_max_data_size, save space on TMPDIR 2025-05-21 15:31:50 +02:00
Thomas Waldmann
01417e3085
tests: test_transfer_rechunk, save space on TMPDIR 2025-05-21 15:31:49 +02:00
Thomas Waldmann
f7419ff06e
tests: test_sparse_file, save space on TMPDIR 2025-05-21 15:31:47 +02:00
Thomas Waldmann
ba3eb06f74
tests: repo-space, save space on TMPDIR 2025-05-21 15:14:24 +02:00
Thomas Waldmann
b4c4bf0b3f
tests: fix diff cmd test on macOS HFS+, fixes #8860
If we touch too quickly after file creation, it would not noticably update the timestamp.
2025-05-21 14:39:39 +02:00
TW
39b847a138
Merge pull request #8859 from ThomasWaldmann/pyupgrade-py310-plus
pyupgrade --py310-plus ./**/*.py
2025-05-20 23:29:58 +02:00
TW
38a328b09b
Merge pull request #8858 from ThomasWaldmann/shell-archive-completions
some fixes for shell completions
2025-05-20 23:25:27 +02:00
Thomas Waldmann
c7765adf08
pyupgrade --py310-plus ./**/*.py 2025-05-20 22:05:13 +02:00
Thomas Waldmann
a4761f9158
zsh: no barchive, add --repo 2025-05-20 21:28:46 +02:00
Thomas Waldmann
7e78aaf04d
zsh fixes, remove repo-list caching 2025-05-20 21:08:09 +02:00
Thomas Waldmann
ca87c60565
minor bash completion fixes 2025-05-20 21:05:38 +02:00
TW
d197810bde
Merge pull request #8850 from ThomasWaldmann/shell-completions
add new commands and options to shell completions
2025-05-20 18:42:33 +02:00
TW
80624d1460
Merge pull request #8854 from ThomasWaldmann/files-cache-cleanup
compact: also clean up files cache, fixes #8852
2025-05-20 18:42:07 +02:00
TW
bde1176866
Merge pull request #8855 from ThomasWaldmann/update-docs-usage-man
Update docs / usage / man
2025-05-19 23:54:41 +02:00
Thomas Waldmann
6e548ed1f0
build_man build_usage 2025-05-19 23:20:38 +02:00
Thomas Waldmann
7644b04df2
docs: remove outdated docs/man files about borg change-passphrase
this is borg key change-passphrase now.
2025-05-19 23:18:19 +02:00
TW
c9083a3d07
Merge pull request #8853 from ThomasWaldmann/fix-todo
legacyremote: fix api versioning todo
2025-05-19 23:00:31 +02:00
Thomas Waldmann
318c94d750
compact: also clean up files cache, fixes #8852 2025-05-19 22:39:05 +02:00
Thomas Waldmann
31b369ff85
legacyremote: fix api versioning todo 2025-05-19 21:18:52 +02:00