Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b58234b
feat: bump nugets
woutervanranst Oct 14, 2025
36484da
Expand archive handler tests
woutervanranst Oct 14, 2025
8f91fcb
Update ArchiveCommandHandlerHandleTests.cs
woutervanranst Oct 22, 2025
8d1041a
Merge branch 'main' into codex/design-test-suite-for-archivecommandha…
woutervanranst Oct 22, 2025
b695ced
chore: move MockArchiveStorageBuilder
woutervanranst Oct 22, 2025
eedf5e1
Merge branch 'main' of https://github.com/woutervanranst/Arius
woutervanranst Oct 22, 2025
2cf957a
Merge branch 'main' into codex/design-test-suite-for-archivecommandha…
woutervanranst Oct 22, 2025
9196128
chore: ordering
woutervanranst Oct 22, 2025
b549416
chore: move
woutervanranst Oct 22, 2025
e26cbc2
feat: refactor FakeArchiveStorage to MockArchiveStorageBuilder
woutervanranst Oct 22, 2025
7a032c8
chore: format
woutervanranst Oct 22, 2025
aecc3c3
fix: addtl cleanup
woutervanranst Oct 22, 2025
11a77f9
chore
woutervanranst Oct 22, 2025
94964a8
chore: rename
woutervanranst Oct 22, 2025
f853f6b
chore: rename
woutervanranst Oct 22, 2025
d5eb7c1
chore: remove unused test
woutervanranst Oct 22, 2025
e08eec1
feat: remove ResetTestRoot
woutervanranst Oct 22, 2025
84192c9
feat: remove containername
woutervanranst Oct 22, 2025
04d0bb4
feat: enforce single use of command handlers
woutervanranst Oct 22, 2025
aa9a2f2
chore: inline handlercontextbuilder
woutervanranst Oct 22, 2025
cbb42c1
feat: bump nugets
woutervanranst Oct 29, 2025
f7c6f5b
fix: state file name collision when two handlercontexts are created i…
woutervanranst Oct 29, 2025
922a588
feat: refactored for single use handler
woutervanranst Oct 29, 2025
959ccb5
feat: fix Multiple_SmallFiles_MultipleTarBatches_ShouldFlushWhenBound…
woutervanranst Oct 29, 2025
e0a63f5
feat: fix Multiple_SmallFiles_WithDuplicates_CrossTarBatches_ShouldWr…
woutervanranst Oct 31, 2025
9f6f4fe
feat: fix Incremental_AllFilesAlreadyUploaded_ShouldSkipUploads
woutervanranst Oct 31, 2025
49d927a
feat: fix Incremental_FileAndPointerDeleted_PointerFileEntryDeleted, …
woutervanranst Oct 31, 2025
d8e33a4
feat: add warnings
woutervanranst Oct 22, 2025
cad42a5
feat: add Single_LatentPointer_ShouldLogWarning
woutervanranst Oct 31, 2025
f207d00
feat: update DbContext.PointerFileEntries to have only RelativeName a…
woutervanranst Oct 31, 2025
0abeb97
feat: fix Incremental_FileModified_ShouldUploadNewHashAndPreserveOldB…
woutervanranst Oct 31, 2025
860151a
feat: update IStateRepository docstrings
woutervanranst Oct 31, 2025
5252979
feat: fix cancellation in archivecommand
woutervanranst Oct 31, 2025
ae8e140
chore: change visiblity
woutervanranst Nov 12, 2025
d8154c6
feat: fix Error_HashTaskFails_ShouldSkipProblematicFileAndContinue
woutervanranst Nov 12, 2025
82dec0b
Update ArchiveCommandHandler.cs
woutervanranst Nov 12, 2025
2eb184f
chore: add placeholder Error_IndexTaskFails_ShouldSkipProblematicFile…
woutervanranst Nov 12, 2025
46d28d7
feat: Error_HashTaskFails_ShouldSkipProblematicFileAndContinue tweaks
woutervanranst Nov 12, 2025
f47e438
feat: refactor Handle task setup
woutervanranst Nov 12, 2025
14a5808
feat: improve archivecommand cancellation handling & fix Error_Upload…
woutervanranst Nov 12, 2025
123e582
feat: fix Error_MultipleTasksFail_ShouldReturnAggregateException
woutervanranst Nov 12, 2025
415f1cf
feat: robustness check
woutervanranst Nov 12, 2025
05237c9
chore: remove obsolete test
woutervanranst Nov 12, 2025
c6fbff1
feat: introduce ISha256Hasher and simplify Error_HashTaskFails_Should…
woutervanranst Nov 12, 2025
70c2d9d
fix: better fix for identical time-based database naming during fast …
woutervanranst Nov 12, 2025
a8cf53a
chore: cleanup usings
woutervanranst Nov 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Arius.Cli.Tests/ArchiveCliCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Mediator;
using NSubstitute;
using Shouldly;
using System.Threading.Tasks;

namespace Arius.Cli.Tests;

Expand Down
1 change: 0 additions & 1 deletion src/Arius.Cli.Tests/RestoreCliCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Mediator;
using NSubstitute;
using Shouldly;
using System.Threading.Tasks;

namespace Arius.Cli.Tests;

Expand Down
1 change: 0 additions & 1 deletion src/Arius.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Serilog;
using Serilog.Core;
using Serilog.Events;
using System.IO;
using System.Reflection;

namespace Arius.Cli;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task CreateAsync_WhenNoRemoteStateExists_ShouldCreateNewStateFile()
// Verify a new state file was created (with current timestamp format)
var stateFiles = stateCache.GetStateFileEntries().ToArray();
stateFiles.Length.ShouldBe(1);
stateFiles[0].Name.ShouldMatch(@"\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\.db");
stateFiles[0].Name.ShouldMatch(@"\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\-\d{3}\.db");

// Verify no download was attempted since no remote state exists
await mockArchiveStorage.DidNotReceive().DownloadStateAsync(Arg.Any<string>(), Arg.Any<FileEntry>(), Arg.Any<CancellationToken>());
Expand Down Expand Up @@ -101,7 +101,7 @@ await mockArchiveStorage.Received(1).DownloadStateAsync(

var newStateFile = stateFiles.FirstOrDefault(f => f.Name != $"{existingStateName}.db");
newStateFile.ShouldNotBeNull("a new state file should be created");
newStateFile.Name.ShouldMatch(@"\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\.db");
newStateFile.Name.ShouldMatch(@"\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\-\d{3}\.db");
}

[Fact]
Expand Down Expand Up @@ -139,6 +139,6 @@ public async Task CreateAsync_WhenRemoteStateExistsAndIsPresentLocally_ShouldNot

var newStateFile = stateFiles.FirstOrDefault(f => f.Name != $"{existingStateName}.db");
newStateFile.ShouldNotBeNull("a new state file should be created");
newStateFile.Name.ShouldMatch(@"\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\.db");
newStateFile.Name.ShouldMatch(@"\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}\-\d{3}\.db");
}
}
Loading
Loading