Repository: kopia/kopia
Pull request #4620 (2025-05-31 02:47:05)

feat(ui): upgraded htmlui to the latest version
## Changes

Compare: https://github.com/kopia/htmlui/compare/f7a5c9e6f34e51f961175d78296351426ae28d9e...a1fb15a7da4568a957e89119d280989072610979

* Fri 19:43 -0700 https://github.com/kopia/htmlui/commit/11ff768 Jarek Kowalski chore(ci): moved tests to tests/ directory and reorganized by their target
* Fri 20:20 -0700 https://github.com/kopia/htmlui/commit/c17a34f Jarek Kowalski chore(ci): increase code coverage
* Fri 20:27 -0700 https://github.com/kopia/htmlui/commit/41c2b7a Jarek Kowalski chore(ci): added tests for remaining repository setup pages
* Fri 21:00 -0700 https://github.com/kopia/htmlui/commit/80ab885 Jarek Kowalski chore(ci): increased coverage for NotificationEditor.jsx
* Fri 21:32 -0700 https://github.com/kopia/htmlui/commit/7922611 Jarek Kowalski chore(ci): added tests for snapshot estimation
* Fri 21:43 -0700 https://github.com/kopia/htmlui/commit/a1fb15a Jarek Kowalski chore(ci): added tests for TimesOfDayTest component

*This PR description was [auto-generated](https://github.com/kopia/htmluibuild/blob/main/.github/workflows/after-push.yaml) at Sat May 31 04:47:20 UTC 2025*



Patch:
diff --git a/go.mod b/go.mod
index 146a9f5a..9d7f26c2 100644
--- a/go.mod
+++ b/go.mod
@@ -30,7 +30,7 @@ require (
 	github.com/klauspost/compress v1.18.0
 	github.com/klauspost/pgzip v1.2.6
 	github.com/klauspost/reedsolomon v1.12.4
-	github.com/kopia/htmluibuild v0.0.1-0.20250524135225-be3914d821a8
+	github.com/kopia/htmluibuild v0.0.1-0.20250531044437-a962353083f2
 	github.com/kylelemons/godebug v1.1.0
 	github.com/mattn/go-colorable v0.1.14
 	github.com/mattn/go-isatty v0.0.20
diff --git a/go.sum b/go.sum
index dd509316..b9321540 100644
--- a/go.sum
+++ b/go.sum
@@ -184,8 +184,8 @@ github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU
 github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs=
 github.com/klauspost/reedsolomon v1.12.4 h1:5aDr3ZGoJbgu/8+j45KtUJxzYm8k08JGtB9Wx1VQ4OA=
 github.com/klauspost/reedsolomon v1.12.4/go.mod h1:d3CzOMOt0JXGIFZm1StgkyF14EYr3xneR2rNWo7NcMU=
-github.com/kopia/htmluibuild v0.0.1-0.20250524135225-be3914d821a8 h1:4003yeG0TOfRrWjMqyhDqWFmoMYbsf+evLGiQAtG9E0=
-github.com/kopia/htmluibuild v0.0.1-0.20250524135225-be3914d821a8/go.mod h1:h53A5JM3t2qiwxqxusBe+PFgGcgZdS+DWCQvG5PTlto=
+github.com/kopia/htmluibuild v0.0.1-0.20250531044437-a962353083f2 h1:qmaaRDP7AazYIcw9U1fICyHzkhKLzOR5rVG5ZmdN3w0=
+github.com/kopia/htmluibuild v0.0.1-0.20250531044437-a962353083f2/go.mod h1:h53A5JM3t2qiwxqxusBe+PFgGcgZdS+DWCQvG5PTlto=
 github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=
 github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
 github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
diff --git a/repo/content/content_manager.go b/repo/content/content_manager.go
index 54c45926..06bd4163 100644
--- a/repo/content/content_manager.go
+++ b/repo/content/content_manager.go
@@ -52,7 +52,7 @@
 
 const (
 	parallelFetches          = 5                // number of parallel reads goroutines
-	flushPackIndexTimeout    = 10 * time.Minute // time after which all pending indexes are flushes
+	flushPackIndexTimeout    = 10 * time.Minute // time after which all pending indexes are flushed
 	defaultMinPreambleLength = 32
 	defaultMaxPreambleLength = 32
 	defaultPaddingUnit       = 4096
@@ -858,7 +858,7 @@ func (bm *WriteManager) GetContent(ctx context.Context, contentID ID) (v []byte,
 
 	_, err = bm.getContentDataAndInfo(ctx, contentID, &tmp)
 	if err != nil {
-		bm.log.Debugf("getContentInfoReadLocked(%v) error %v", contentID, err)
+		bm.log.Debugf("getContentDataAndInfo(%v) error %v", contentID, err)
 		return nil, err
 	}
 


Test patch:
diff --git a/snapshot/upload/upload_test.go b/snapshot/upload/upload_test.go
index af11c011..fc8398b9 100644
--- a/snapshot/upload/upload_test.go
+++ b/snapshot/upload/upload_test.go
@@ -1259,11 +1259,16 @@ func TestParallelUploadOfLargeFiles(t *testing.T) {
 
 	fs.IterateEntries(ctx, dir, func(ctx context.Context, e fs.Entry) error {
 		if f, ok := e.(fs.File); ok {
-			oid, err := object.ParseID(strings.TrimPrefix(f.(object.HasObjectID).ObjectID().String(), "I"))
-			require.NoError(t, err)
+			hoid, hasObjectId := f.(object.HasObjectID)
+			require.True(t, hasObjectId)
+
+			oids := hoid.ObjectID().String()
+
+			oid, err := object.ParseID(strings.TrimPrefix(oids, "I"))
+			require.NoError(t, err, "failed to parse object id", oids)
 
 			entries, err := object.LoadIndexObject(ctx, th.repo.(repo.DirectRepositoryWriter).ContentManager(), oid)
-			require.NoError(t, err)
+			require.NoError(t, err, "failed to parse indirect object id", oid)
 
 			// ensure that index object contains breakpoints at all multiples of 'chunkSize'.
 			// Because we picked unusual chunkSize, this proves that uploads happened individually