Skip to content

Fix volume migration #438

Fix volume migration

Fix volume migration #438

Triggered via pull request October 4, 2023 03:43
Status Failure
Total duration 7m 44s
Artifacts

main.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

15 errors
test (ubuntu-latest, 1.21)
1/92 tests failed
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/logger.go#L130
logger.go:130: 2023-10-04T03:49:19.685Z DEBUG transaction.row slow scan {"id": "43fa23ea", "attempt": 1, "elapsed": "4.061779ms", "stack": "go.sia.tech/hostd/persist/sqlite.(*loggedRow).Scan\n\t/home/runner/work/hostd/hostd/persist/sqlite/sql.go:95\ngo.sia.tech/hostd/persist/sqlite.lockSector\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:256\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector.func1\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:215\ngo.sia.tech/hostd/persist/sqlite.doTransaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:146\ngo.sia.tech/hostd/persist/sqlite.(*Store).transaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:92\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:208\ngo.sia.tech/hostd/persist/sqlite.TestPrune\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes_test.go:604\ntesting.tRunner\n\t/opt/hostedtoolcache/go/1.21.1/x64/src/testing/testing.go:1595"}
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/logger.go#L130
logger.go:130: 2023-10-04T03:49:19.709Z DEBUG transaction.statement.row slow scan {"id": "7867957a", "attempt": 1, "elapsed": "4.075678ms", "stack": "go.sia.tech/hostd/persist/sqlite.(*loggedRow).Scan\n\t/home/runner/work/hostd/hostd/persist/sqlite/sql.go:95\ngo.sia.tech/hostd/persist/sqlite.lockLocations\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:321\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector.func1\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:233\ngo.sia.tech/hostd/persist/sqlite.doTransaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:146\ngo.sia.tech/hostd/persist/sqlite.(*Store).transaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:92\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:208\ngo.sia.tech/hostd/persist/sqlite.TestPrune\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes_test.go:604\ntesting.tRunner\n\t/opt/hostedtoolcache/go/1.21.1/x64/src/testing/testi
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/logger.go#L130
logger.go:130: 2023-10-04T03:49:19.738Z DEBUG transaction slow query row {"id": "2c682d9c", "attempt": 1, "query": "SELECT id FROM storage_volumes WHERE available=true AND read_only=false AND total_sectors-used_sectors > 0 ORDER BY used_sectors ASC LIMIT 1;", "elapsed": "5.434205ms", "stack": "go.sia.tech/hostd/persist/sqlite.(*loggedTxn).QueryRow\n\t/home/runner/work/hostd/hostd/persist/sqlite/sql.go:189\ngo.sia.tech/hostd/persist/sqlite.emptyLocation\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:460\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector.func1\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:224\ngo.sia.tech/hostd/persist/sqlite.doTransaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:146\ngo.sia.tech/hostd/persist/sqlite.(*Store).transaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:92\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:208\ngo.sia.tech/hostd/persist/sqlite.
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/volumes_test.go#L604
TestPrune\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes_test.go:604\ntesting.tRunner\n\t/opt/hostedtoolcache/go/1.21.1/x64/src/testing/testing.go:1595"}
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/logger.go#L130
logger.go:130: 2023-10-04T03:49:19.769Z DEBUG transaction slow prepare {"id": "1afa92f1", "attempt": 1, "query": "INSERT INTO locked_volume_sectors (volume_sector_id) VALUES ($1) RETURNING id;", "elapsed": "4.025777ms", "stack": "go.sia.tech/hostd/persist/sqlite.(*loggedTxn).Prepare\n\t/home/runner/work/hostd/hostd/persist/sqlite/sql.go:158\ngo.sia.tech/hostd/persist/sqlite.lockLocations\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:314\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector.func1\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:233\ngo.sia.tech/hostd/persist/sqlite.doTransaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:146\ngo.sia.tech/hostd/persist/sqlite.(*Store).transaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:92\ngo.sia.tech/hostd/persist/sqlite.(*Store).StoreSector\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes.go:208\ngo.sia.tech/hostd/persist/sqlite.TestPrune\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes_
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/test.go#L604
test.go:604\ntesting.tRunner\n\t/opt/hostedtoolcache/go/1.21.1/x64/src/testing/testing.go:1595"}
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/logger.go#L130
logger.go:130: 2023-10-04T03:49:19.880Z DEBUG transaction.row slow scan {"id": "27999eed", "attempt": 1, "elapsed": "4.039278ms", "stack": "go.sia.tech/hostd/persist/sqlite.(*loggedRow).Scan\n\t/home/runner/work/hostd/hostd/persist/sqlite/sql.go:95\ngo.sia.tech/hostd/persist/sqlite.pruneSectorRef\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:201\ngo.sia.tech/hostd/persist/sqlite.unlockSector\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:296\ngo.sia.tech/hostd/persist/sqlite.(*Store).SectorLocation.func2.1\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:117\ngo.sia.tech/hostd/persist/sqlite.doTransaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:146\ngo.sia.tech/hostd/persist/sqlite.(*Store).transaction\n\t/home/runner/work/hostd/hostd/persist/sqlite/store.go:92\ngo.sia.tech/hostd/persist/sqlite.(*Store).SectorLocation.func2\n\t/home/runner/work/hostd/hostd/persist/sqlite/sectors.go:116\ngo.sia.tech/hostd/persist/sqlite.TestPrune.func3\n\t/home/runner/wor
Test go.sia.tech/hostd/persist/sqlite/TestPrune failed in 0.42s: persist/sqlite/volumes_test.go#L711
k/hostd/hostd/persist/sqlite/volumes_test.go:711\ngo.sia.tech/hostd/persist/sqlite.TestPrune\n\t/home/runner/work/hostd/hostd/persist/sqlite/volumes_test.go:753\ntesting.tRunner\n\t/opt/hostedtoolcache/go/1.21.1/x64/src/testing/testing.go:1595"}
test (windows-latest, 1.20)
The job was canceled because "ubuntu-latest_1_21" failed.
test (macos-latest, 1.20)
The operation was canceled.
test (windows-latest, 1.21)
The operation was canceled.
test (macos-latest, 1.21)
The operation was canceled.
test (ubuntu-latest, 1.20)
The operation was canceled.