Skip to content

Add SQLite store

Add SQLite store #109

Triggered via pull request February 1, 2024 14:56
Status Failure
Total duration 2m 3s
Artifacts

main.yml

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

Annotations

25 errors and 6 warnings
test (ubuntu-latest, 1.20)
3/5 tests failed
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/server.go#L1854
/opt/hostedtoolcache/go/1.20.13/x64/src/net/http/server.go:1854 +0x110 panic({0xe2f960, 0xc000326090})
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/panic.go#L890
/opt/hostedtoolcache/go/1.20.13/x64/src/runtime/panic.go:890 +0x263 go.sia.tech/walletd/persist/sqlite.encode({0xee4580?, 0xc00028c160?})
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/encoding.go#L29
/home/runner/work/walletd/walletd/persist/sqlite/encoding.go:29 +0x519 go.sia.tech/walletd/persist/sqlite.insertAddress(0x10?, {0x61, 0x5, 0x5a, 0x72, 0x69, 0x8e, 0xd8, 0x18, 0xec, ...})
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/wallet.go#L18
/home/runner/work/walletd/walletd/persist/sqlite/wallet.go:18 +0x99 go.sia.tech/walletd/persist/sqlite.(*Store).AddAddress.func1(0xc0000c7a00?)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/wallet.go#L130
/home/runner/work/walletd/walletd/persist/sqlite/wallet.go:130 +0xad go.sia.tech/walletd/persist/sqlite.doTransaction(0xc000342070?, 0xc0003420e0, 0xc00031f360)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/store.go#L100
/home/runner/work/walletd/walletd/persist/sqlite/store.go:100 +0x2dd go.sia.tech/walletd/persist/sqlite.(*Store).transaction(0xc0001ec090, 0xc0003320b0?)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/store.go#L40
/home/runner/work/walletd/walletd/persist/sqlite/store.go:40 +0x4ba go.sia.tech/walletd/persist/sqlite.(*Store).AddAddress(0x7f6d5c0a9008?, {0xc00028600d, 0x7}, {0x61, 0x5, 0x5a, 0x72, 0x69, 0x8e, 0xd8, ...}, ...)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/wallet.go#L129
/home/runner/work/walletd/walletd/persist/sqlite/wallet.go:129 +0xe9 go.sia.tech/walletd/wallet.(*Manager).AddAddress(0xc0000ab240, {0xc00028600d, 0x7}, {0x61, 0x5, 0x5a, 0x72, 0x69, 0x8e, 0xd8, ...}, ...)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/manager.go#L74
/home/runner/work/walletd/walletd/wallet/manager.go:74 +0xe9 go.sia.tech/walletd/api.(*server).walletsAddressHandlerPUT(0xc000118500, {{0x10b06a0, 0xc00032a000}, 0xc000284000, {0xc000322080, 0x2, 0x2}})
test (ubuntu-latest, 1.21)
3/5 tests failed
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/server.go#L1868
/opt/hostedtoolcache/go/1.21.6/x64/src/net/http/server.go:1868 +0xff panic({0xe54700?, 0xc000184a40?})
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/panic.go#L920
/opt/hostedtoolcache/go/1.21.6/x64/src/runtime/panic.go:920 +0x270 go.sia.tech/walletd/persist/sqlite.encode({0xf106e0?, 0xc000193050?})
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/encoding.go#L29
/home/runner/work/walletd/walletd/persist/sqlite/encoding.go:29 +0x634 go.sia.tech/walletd/persist/sqlite.insertAddress(0xc00039ef68?, {0x5c, 0xde, 0xda, 0x8a, 0x1e, 0x20, 0xd6, 0xa0, 0xc2, ...})
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/wallet.go#L18
/home/runner/work/walletd/walletd/persist/sqlite/wallet.go:18 +0x94 go.sia.tech/walletd/persist/sqlite.(*Store).AddAddress.func1(0xc0000b7a00?)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/wallet.go#L130
/home/runner/work/walletd/walletd/persist/sqlite/wallet.go:130 +0xa5 go.sia.tech/walletd/persist/sqlite.doTransaction(0xc0003030a0?, 0xc000303110, 0xc00039f440)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/store.go#L100
/home/runner/work/walletd/walletd/persist/sqlite/store.go:100 +0x31c go.sia.tech/walletd/persist/sqlite.(*Store).transaction(0xc0000b5ce0, 0xc0001ec290?)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/store.go#L40
/home/runner/work/walletd/walletd/persist/sqlite/store.go:40 +0x4f2 go.sia.tech/walletd/persist/sqlite.(*Store).AddAddress(0xc00019e300?, {0xc00032a00d, 0x7}, {0x5c, 0xde, 0xda, 0x8a, 0x1e, 0x20, 0xd6, ...}, ...)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/wallet.go#L129
/home/runner/work/walletd/walletd/persist/sqlite/wallet.go:129 +0x11b go.sia.tech/walletd/wallet.(*Manager).AddAddress(0xc0000fb1c0, {0xc00032a00d, 0x7}, {0x5c, 0xde, 0xda, 0x8a, 0x1e, 0x20, 0xd6, ...}, ...)
Test go.sia.tech/walletd/api/TestWallet failed in 0.03s: api/manager.go#L74
/home/runner/work/walletd/walletd/wallet/manager.go:74 +0xd9 go.sia.tech/walletd/api.(*server).walletsAddressHandlerPUT(0xc000186000, {{0x11092a8, 0xc0001e81c0}, 0xc00019e300, {0xc000186b40, 0x2, 0x2}})
test (ubuntu-latest, 1.21)
The job was canceled because "ubuntu-latest_1_20" failed.
test (macos-latest, 1.20)
The operation was canceled.
test (windows-latest, 1.21)
The operation was canceled.
test (windows-latest, 1.20)
The operation was canceled.
test (macos-latest, 1.21)
The operation was canceled.
test (ubuntu-latest, 1.20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3, n8maninger/action-golang-test@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (ubuntu-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3, n8maninger/action-golang-test@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macos-latest, 1.20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (windows-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (windows-latest, 1.20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macos-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3, n8maninger/action-golang-test@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.