Commit Graph
630 Commits
Author SHA1 Message Date
Kenneth Skovhede 9e2ac7c716 Fixed tests 2025-04-03 13:58:54 +02:00
Kenneth Skovhede d24e9df13b Added tests for zip64 2025-03-31 13:26:25 +02:00
Carl Johnsen 79059e288a Added comments about why Archive is excluded for now 2025-03-26 15:51:27 +01:00
Carl Johnsen fc2d55bfc5 The CI still appends Archive - trying to ignore it if it's set. 2025-03-26 15:51:15 +01:00
Carl Johnsen 4ae9f16476 Sanity testing by omitting the Archive attribute during testing. 2025-03-26 15:05:21 +01:00
Carl Johnsen abdffed7d9 Trying to mitigate attributes set on the original files before performing the backup, which it seems like the CI is doing. 2025-03-26 14:21:40 +01:00
Carl Johnsen a4cf24e854 Merge branch 'master' into bugfix/restore-folder-metadata 2025-03-26 12:07:27 +01:00
Carl Johnsen 049f330412 The 'everyone' user is not available on all versions of Windows 2025-03-26 09:20:29 +01:00
Carl Johnsen ec35d58f3b Added additional information to the asserts for debugging.
The asserts related to the OS specific folder and file are the same, because their line number reflects where they failed.
2025-03-26 06:20:45 +01:00
Carl Johnsen 5961ff6894 Changed to consistently use the same variables for comparison 2025-03-26 06:17:51 +01:00
Carl Johnsen b60ee3bc42 Missed some file and folder attributes during comparisons 2025-03-26 04:10:31 +01:00
Carl Johnsen f447aed1e8 Fixed the Windows test for folder/files attributes/permissions unit test 2025-03-25 18:16:32 +01:00
Kenneth SkovhedeandGitHub 91ba27040b Merge pull request #6063 from duplicati/feature/guard-against-missing-files
Guard against fileset errors
2025-03-25 14:19:01 +01:00
Kenneth Skovhede 08cb034acf Added custom version of the validation to support not failing validation prior to running the repair that fixes the error. 2025-03-25 11:56:52 +01:00
Carl Johnsen 7b9adb07f8 Added a test to check restored metadata and permissions 2025-03-25 10:05:44 +01:00
Kenneth Skovhede ba5ff7822e Fixed tests 2025-03-24 17:21:00 +01:00
Carl Johnsen 06cb3d70d3 Added a unit test to capture issue #6068 2025-03-24 13:59:32 +01:00
Kenneth Skovhede 149c71c169 Added test for Windows paths as urls 2025-03-24 11:46:00 +01:00
Kenneth Skovhede fa765f7d6d Extended test to validate that the test is actually working 2025-03-20 16:12:28 +01:00
Kenneth Skovhede d40301b2b7 Guard against fileset errors
This PR adds a few extra consistency checks to the database, so any failure in the operations is detected earlier than before.

Especially when cleaning temporary and partial files, it is important that the deletes do not remove unexpected entries.

Also, after a recreate, repair or purge command, the database consistency is verified, so it becomes easier to identify which operation caused the failure.

To assist in trouble shooting, there is also a more elaborate error message if a fileset discrepancy is detected, that pinpoints which versions are affected.

Finally, the repair command has been extended to support recreating a fileset from the remote data.
2025-03-20 15:59:14 +01:00
Kenneth Skovhede 47afbbbdad Fixed a transitional issue 2025-03-19 21:42:08 +01:00
Kenneth Skovhede 5edfcc5c6a Prevent blocksize near remote volume size
If the user selects the blocksize to be the same as the remote volume size, this will cause each block to be in a separate volume and will trigger repeated compact calls.

This commit adds a check that ensures the volume size is large enough to hold at least two blocks.

Also fixed an issue where the compact could create volumes larger than the set limit (at most one block larger).
2025-03-13 12:09:57 +01:00
marceloduplicatiandGitHub c4600e4237 Merge pull request #6033 from marceloduplicati/feature/fix-to-stop-unit-test
Fix to StopNow tests
2025-03-12 12:18:44 -03:00
Kenneth SkovhedeandGitHub eac394f0a3 Merge pull request #6011 from duplicati/feature/improved-failure-resilience
Improved failure resilience
2025-03-12 14:48:14 +01:00
Marcelo C. 64d40ef0ea Fix to StopNow tests
Since the core changes in the cancelation process where now cancellationTokens are observed rather than a thread.abort attempt, the expected exception is now OperationCanceledException when calling .Abort on the controller.

Also eliminated the time based awaiting to abort in favor of monitoring the backup phase to ensure the .Abort happens after the controller has had time to initiate the backend and backend is at Backup_ProcessingFiles state.
2025-03-12 10:40:20 -03:00
Kenneth Skovhede b63869448a Ignore warning when reparing broken database 2025-03-11 17:00:14 +01:00
Kenneth Skovhede 351fb89509 Ignoring timestamps in with dirty database test 2025-03-11 10:45:44 +01:00
Kenneth Skovhede 0274fc2b6e Added sleeps to ensure timestamps have space for repairs 2025-03-11 08:08:28 +01:00
Kenneth Skovhede 5d45baacbf Renamed tests away from "Failed" to make searching for failed tests easier. 2025-03-10 22:04:48 +01:00
Kenneth Skovhede d053470cf9 Added additional tests for repair code 2025-03-10 14:40:13 +01:00
Kenneth Skovhede c673cba607 Cleanups in tests 2025-03-10 14:39:31 +01:00
Carl Johnsen 33c133fad1 Added a sleep in BorderTests, as fast machines will trigger two backups in quick succession, which will cause the test to fail. 2025-03-10 06:39:50 +01:00
Kenneth Skovhede 599203a269 Added check to see that injected failure is actually triggered 2025-03-09 22:01:01 +01:00
Kenneth Skovhede 12cabf8da7 Merge branch 'feature/improved-failure-resilience' of github.com:duplicati/duplicati into feature/improved-failure-resilience 2025-03-08 15:28:24 +01:00
Kenneth Skovhede d019845fad Added a number of new tests to ensure correct handling of edge cases related to missing/interrupted uploads. 2025-03-08 15:14:03 +01:00
Kenneth SkovhedeandGitHub f6d8ed83f0 Merge branch 'master' into feature/improved-failure-resilience 2025-03-06 22:32:37 +01:00
Kenneth Skovhede d75e690495 Fixed not being dependent on filesystem order 2025-03-06 18:26:56 +01:00
Kenneth Skovhede e3727d8f18 Finding list of modified files to trace the error 2025-03-06 15:22:57 +01:00
Kenneth Skovhede 774e468287 Placed modify correctly 2025-03-06 15:12:38 +01:00
Kenneth Skovhede 7beeb27ade Extended tests and fixed a case where a left-over upload could cause errors. 2025-03-06 14:53:46 +01:00
Kenneth Skovhede 277362ce64 Another attempt at fixing the failing tests 2025-03-06 10:48:52 +01:00
Kenneth Skovhede be0d74fe2e Attempt to make test more stable 2025-03-05 10:01:08 +01:00
Kenneth Skovhede 78b45eb983 Added additional tests for OperationCancelledException
(cherry picked from commit 30568f0498)
2025-03-04 16:37:24 +01:00
Kenneth Skovhede 11a27042bc Merge remote-tracking branch 'origin/master' into feature/alternate-source-provider 2025-02-26 19:25:46 +01:00
Kenneth Skovhede f77e529eb6 Merge commit '2339aeff28adba15442d0be60c56568ae642ad0b' into feature/make-backends-async 2025-02-26 15:23:48 +01:00
Kenneth Skovhede 1428d8cc6f Preserve order of input sources 2025-02-24 12:53:48 +01:00
Kenneth Skovhede 655f5ef635 Added interuption test
This adds a test with a failed upload.

The failed upload is done in parallel, so (at least) one of the uploads succeeeds and one upload fails.

The backup then errors, but a subsequent backup continues without errors and creates a synthetic filelist.

Also refactored the DeterministicErrorBackend to not use magic strings.
And made it actually deterministic.
2025-02-20 11:00:28 +01:00
Kenneth Skovhede 0f9669b273 Final conversion to async backends
This PR is the final change, where all backends are now purely implemented with async interfaces.

The code changes here replace the LIST call with an async version. This affect all backends (and then some) but the changes are mostly mechanical rewrites of the code.

In many places, the backeds were already prepared for async output, in other some glue was needed.

To reduce the scope of this change, some backends simply report a synchronous result as an async list.
2025-02-17 16:45:51 +01:00
Kenneth Skovhede 6bbc93b8df Merge remote-tracking branch 'origin/master' into feature/alternate-source-provider 2025-02-16 16:37:12 +01:00
Kenneth Skovhede 4a9ad45250 Repaired import/export test 2025-02-16 16:33:15 +01:00