Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev -> master #1474

Merged
merged 687 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
687 commits
Select commit Hold shift + click to select a range
27f4f96
stores: remove dbDirectory type
ChrisSchinnerl Aug 8, 2024
537689f
stores: fix TestRenameObjects
ChrisSchinnerl Aug 8, 2024
4f5de12
stores: fix NDF in TestRenameObjects
ChrisSchinnerl Aug 8, 2024
de0682b
cmd: add network cli flag
ChrisSchinnerl Aug 8, 2024
e3deedd
publish.yml: remove network from matrix
ChrisSchinnerl Aug 8, 2024
240842e
dockerfile: add RENTERD_NETWORK ARG
ChrisSchinnerl Aug 8, 2024
c5494ac
docker: update entrypoint.sh
ChrisSchinnerl Aug 8, 2024
d7a0f83
docker: default RENTERD_NETWORK to 'mainnet'
ChrisSchinnerl Aug 8, 2024
915e82c
publish.yml: remove DOCKER_METADATA_SUFFIX
ChrisSchinnerl Aug 8, 2024
049ddb5
remove testnet container
ChrisSchinnerl Aug 8, 2024
b545ea6
cmd: add anagami
ChrisSchinnerl Aug 8, 2024
f7efc88
publish.yml: address comments
ChrisSchinnerl Aug 9, 2024
897d45b
remove netgo
ChrisSchinnerl Aug 9, 2024
cfb281d
Migrate Object method (#1419)
ChrisSchinnerl Aug 9, 2024
a32230a
Merge branch 'dev' into chris/gorm-cleanup
ChrisSchinnerl Aug 9, 2024
186a895
go.mod: update coreutils
ChrisSchinnerl Aug 9, 2024
050aff6
go.mod: update coreutils
ChrisSchinnerl Aug 9, 2024
be28e22
bus: populate the price pinning settings returned from the bus with d…
ChrisSchinnerl Aug 9, 2024
cf24e5f
jape: fix jape check
ChrisSchinnerl Aug 9, 2024
51f734a
e2e: extend testing
ChrisSchinnerl Aug 9, 2024
a728a0a
Merge branch 'dev' into chris/gorm-cleanup
ChrisSchinnerl Aug 9, 2024
dc94d03
stores: get rid of contract related helper types
ChrisSchinnerl Aug 9, 2024
aa3b43d
stores: remove dbArchivedContract type
ChrisSchinnerl Aug 9, 2024
c5fbdb1
stores: fix TestAncestorContracts
ChrisSchinnerl Aug 9, 2024
6847e21
Merge branch 'dev' into chris/network-cli
ChrisSchinnerl Aug 9, 2024
b4bae85
build(deps): bump the all-dependencies group with 5 updates
dependabot[bot] Aug 12, 2024
d2ab6e7
fix build
ChrisSchinnerl Aug 12, 2024
2f54bc4
README.md: update
ChrisSchinnerl Aug 12, 2024
b5900f4
e2e: fix TestWalletTransactions
ChrisSchinnerl Aug 12, 2024
4791315
bus: implement CR remarks
peterjan Aug 12, 2024
88c5b41
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/reorga…
peterjan Aug 12, 2024
210d084
Merge branch 'pj/reorganise-bus' of github.com:SiaFoundation/renterd …
peterjan Aug 12, 2024
0888144
bus: fix rename
peterjan Aug 12, 2024
5c61f36
Add network cli flag (#1423)
ChrisSchinnerl Aug 12, 2024
360ffff
build(deps): bump the all-dependencies group with 5 updates (#1428)
ChrisSchinnerl Aug 12, 2024
319fd8f
Remove gorm from hostdb related tests (#1420)
ChrisSchinnerl Aug 12, 2024
912f24e
Merge branch 'dev' into chris/gorm-cleanup-2
ChrisSchinnerl Aug 12, 2024
6eaee86
stores: fix NDF in TestRenameObjects
ChrisSchinnerl Aug 12, 2024
96de237
Merge branch 'chris/gorm-cleanup-2' of github.com:SiaFoundation/rente…
ChrisSchinnerl Aug 12, 2024
85bd3ce
Populate the price pinning settings returned from the bus with defaul…
ChrisSchinnerl Aug 12, 2024
590929a
docs: update docstring
peterjan Aug 12, 2024
10aef61
Get rid of contract related helper types (#1425)
ChrisSchinnerl Aug 12, 2024
3acfe5b
stores: remove redundant db types
ChrisSchinnerl Aug 12, 2024
1c6c7bc
docker: fix https error
ChrisSchinnerl Aug 12, 2024
57ab28d
stores: remove dbContractSector
ChrisSchinnerl Aug 12, 2024
dff4160
Fix https pinning error (#1429)
ChrisSchinnerl Aug 12, 2024
af89516
stores: remove contractState
ChrisSchinnerl Aug 12, 2024
9a3fc43
stores: remove dbBucket
ChrisSchinnerl Aug 12, 2024
bbeb1c3
stores: update TestSQLMetadataStore
ChrisSchinnerl Aug 12, 2024
3ac6b32
stores: update TestUpdateSlab
ChrisSchinnerl Aug 12, 2024
50506bd
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/reorga…
peterjan Aug 12, 2024
3cda5cf
Merge branch 'pj/reorganise-bus' of github.com:SiaFoundation/renterd …
peterjan Aug 12, 2024
6601fd7
build: add missing generate docstring
n8maninger Aug 12, 2024
a6f6981
testing: increase timeout
peterjan Aug 13, 2024
b30915f
Add missing generate docstring (#1433)
ChrisSchinnerl Aug 13, 2024
766f66d
all: add node.go
peterjan Aug 13, 2024
2bf644c
stores: remove dbObject
ChrisSchinnerl Aug 13, 2024
c952c09
stores: remove dbObjectUserMetadata
ChrisSchinnerl Aug 13, 2024
e1915a3
stores: remove dbSector
ChrisSchinnerl Aug 13, 2024
dfec8e4
stores: remove dbSlice
ChrisSchinnerl Aug 13, 2024
bcf38f9
stores: remove dbSlab
ChrisSchinnerl Aug 13, 2024
2e0831c
stores: remove dbSlab
ChrisSchinnerl Aug 13, 2024
7c3f447
stores: remove types.go
ChrisSchinnerl Aug 13, 2024
6c8fb4f
Merge branch 'chris/gorm-cleanup-3' of github.com:SiaFoundation/rente…
ChrisSchinnerl Aug 13, 2024
873baff
go.mod: remove gorm
ChrisSchinnerl Aug 13, 2024
59d94af
Merge branch 'dev' into chris/gorm-cleanup-3
ChrisSchinnerl Aug 13, 2024
4fc4db2
client_test: fix TestClient
ChrisSchinnerl Aug 13, 2024
2d5b469
sql: import mysql driver
ChrisSchinnerl Aug 13, 2024
009e9f9
sql: escape 'key'
ChrisSchinnerl Aug 13, 2024
8838ea6
Cleanup `bus.go` (#1413)
ChrisSchinnerl Aug 13, 2024
9c818d9
node: fix connections in NewBus
ChrisSchinnerl Aug 13, 2024
0396e89
Merge branch 'dev' into pj/move-subscriber
peterjan Aug 13, 2024
56b70ac
sql: add missing Close
ChrisSchinnerl Aug 13, 2024
e85c928
Merge branch 'dev' into chris/gorm-cleanup-3
ChrisSchinnerl Aug 13, 2024
219e529
testing: pass syncer opts to test syncer
peterjan Aug 14, 2024
57c1fc9
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/extrac…
peterjan Aug 14, 2024
17e6d30
all: add utils package, fix order of events when loading config
peterjan Aug 14, 2024
68e2e81
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/move-s…
peterjan Aug 14, 2024
5e5cf54
Merge branch 'pj/move-subscriber' of github.com:SiaFoundation/renterd…
peterjan Aug 14, 2024
4e616e7
util: use Auth
peterjan Aug 14, 2024
c7cad85
Merge branch 'pj/move-subscriber' into pj/extract-node
peterjan Aug 14, 2024
fd07ceb
Remove GORM dependency (#1430)
ChrisSchinnerl Aug 14, 2024
3149a5f
testing: hardcode syncer opts
peterjan Aug 14, 2024
9ac2032
testing: revert testClusterOptions
peterjan Aug 14, 2024
83fb87d
Merge branch 'dev' into pj/pass-syncer-opts
ChrisSchinnerl Aug 14, 2024
21df575
Improve node setup pt. 2 (#1412)
ChrisSchinnerl Aug 14, 2024
83fcbbb
node: fix build
ChrisSchinnerl Aug 14, 2024
b905d75
tmp
ChrisSchinnerl Aug 14, 2024
4d39d7d
bus: wallet/send endpoint
ChrisSchinnerl Aug 14, 2024
0f7e975
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/extrac…
peterjan Aug 14, 2024
a4f165a
Merge branch 'pj/extract-node' of github.com:SiaFoundation/renterd in…
peterjan Aug 14, 2024
4c45732
testing: pass contract manager opts
peterjan Aug 14, 2024
406264e
Merge branch 'pj/pass-syncer-opts' of github.com:SiaFoundation/renter…
peterjan Aug 14, 2024
156dc24
Merge branch 'pj/pass-syncer-opts' of github.com:SiaFoundation/renter…
peterjan Aug 15, 2024
19417c8
testing: fix TestRenameObject NDF
peterjan Aug 15, 2024
925c3bb
Expose `worker` and `bus` (#1438)
peterjan Aug 15, 2024
747232c
bus: add Store interface
peterjan Aug 15, 2024
46dc438
bus: update pin manager store
peterjan Aug 15, 2024
a945624
Reconfigure TestHost's contract manager and syncer (#1434)
ChrisSchinnerl Aug 15, 2024
3a8ef60
Merge branch 'dev' into pj/extract-node
ChrisSchinnerl Aug 15, 2024
5088287
bus: add AlertManager interface
peterjan Aug 15, 2024
0886f33
Merge branch 'pj/extract-node' of github.com:SiaFoundation/renterd in…
peterjan Aug 15, 2024
c805de6
Add /wallet/send endpoint (#1436)
ChrisSchinnerl Aug 15, 2024
5fa1722
testing: block after every rename
peterjan Aug 15, 2024
296ed87
all: refactor node setup
peterjan Aug 15, 2024
7c5cd5b
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/extrac…
peterjan Aug 15, 2024
81111c0
all: cleanup PR
peterjan Aug 15, 2024
37dc91a
Fix TestRenameObject NDF (#1437)
ChrisSchinnerl Aug 15, 2024
033d5bf
rhp: v2 client
ChrisSchinnerl Aug 15, 2024
e3c9f37
testing: shut down syncer
peterjan Aug 15, 2024
3fb394d
rhp: remove contract sector fn
ChrisSchinnerl Aug 15, 2024
c5f740d
e2e: fix TestMetrics
ChrisSchinnerl Aug 15, 2024
6343f8a
bus: move accounts to internal
peterjan Aug 15, 2024
fcb38ae
bus: rename error
peterjan Aug 15, 2024
2aad077
bus: move contract locks to internal
peterjan Aug 15, 2024
4ff2c92
bus: move sector cache to internal
peterjan Aug 15, 2024
b372977
worker: move gouging to internal package
ChrisSchinnerl Aug 15, 2024
1a4864a
worker: newGougingChecker
ChrisSchinnerl Aug 15, 2024
e1067e4
rhp: remove GougingCheckFn
ChrisSchinnerl Aug 15, 2024
96ba84e
update utils.ResolveHostIP
chris124567 Aug 9, 2024
8a9c4a6
rename Subnets -> ResolvedAddresses
chris124567 Aug 9, 2024
ff98bdc
add migration for subnets -> resolved_addresses
chris124567 Aug 9, 2024
f3596be
add custom dialer
chris124567 Aug 9, 2024
b95120a
add dialer to Worker
chris124567 Aug 9, 2024
fd49ecd
use new dialer in worker
chris124567 Aug 9, 2024
ebd4895
use bus in fallback dialer
chris124567 Aug 9, 2024
31924b1
update subnets in tests
chris124567 Aug 9, 2024
73631dc
fix lint
chris124567 Aug 9, 2024
2bfc8ee
use subnet in hostset
chris124567 Aug 12, 2024
b7d50f0
remove unnecessary exports in dialer
chris124567 Aug 12, 2024
317b7ee
move dialer to internal/worker
chris124567 Aug 12, 2024
4142a77
Clear -> Delete
chris124567 Aug 12, 2024
94e43ca
move dialer above mutex
chris124567 Aug 12, 2024
30ed632
log when using fallbacks
chris124567 Aug 12, 2024
267a302
only cache after successful dial
chris124567 Aug 12, 2024
3e26c33
update hostdb test to check subnets
chris124567 Aug 12, 2024
5865fca
add hostset test
chris124567 Aug 12, 2024
3be459e
keep subnets field
chris124567 Aug 12, 2024
24129af
keep subnets in internal test host
chris124567 Aug 14, 2024
a8e1665
remove ResolveIPAddr step in dialer and just use the address off the …
chris124567 Aug 14, 2024
c9504db
update schema
chris124567 Aug 14, 2024
2eea686
migrations changes
chris124567 Aug 14, 2024
dc75858
update field names in query
chris124567 Aug 14, 2024
2e0cd54
Merge branch 'dev' into chris/rhp-clients
ChrisSchinnerl Aug 15, 2024
4ada222
Improve node setup pt. 3 (#1435)
ChrisSchinnerl Aug 15, 2024
fee500c
Merge branch 'dev' into chris/rhp-clients
ChrisSchinnerl Aug 15, 2024
1cb752a
ui: v0.58.0
ChrisSchinnerl Aug 15, 2024
bc4abd8
ui: v0.58.0 (#1446)
ChrisSchinnerl Aug 15, 2024
c9f70ad
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/move-s…
peterjan Aug 15, 2024
58495b5
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/move-c…
peterjan Aug 15, 2024
ff6cfd6
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/move-a…
peterjan Aug 15, 2024
ae7ea64
stores: TestObjectEntriesExplicitDir
ChrisSchinnerl Aug 16, 2024
14fdf90
stores: use join instead of subquery
ChrisSchinnerl Aug 16, 2024
9662e3b
testing: evaluate err of RHPForm
peterjan Aug 16, 2024
aa777b2
Isolate rhp2 worker code into rhp2 client (#1440)
ChrisSchinnerl Aug 16, 2024
4c00890
Merge branch 'dev' into pj/move-accounts
peterjan Aug 16, 2024
f6af61b
Merge branch 'dev' into pj/move-contracts
peterjan Aug 16, 2024
cf554a1
stores: simplify if
ChrisSchinnerl Aug 16, 2024
8702d64
Merge branch 'dev' into cache-dns
ChrisSchinnerl Aug 16, 2024
09a155c
worker: withdraw PT payments, reset drift migration
peterjan Jul 30, 2024
2cbade8
worker: return amount
peterjan Aug 16, 2024
033afb6
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/drift-…
peterjan Aug 16, 2024
8c32308
contractor: add compat code to HasRedundantIP
ChrisSchinnerl Aug 16, 2024
4ae7427
Fix dirs that were created explicitly being listed twice (#1449)
ChrisSchinnerl Aug 16, 2024
88cc0fb
worker: do not sync before funding
peterjan Aug 16, 2024
a0a5dad
worker: add regression case to TestEphemeralAccounts
peterjan Aug 16, 2024
8ea8946
internal: rename mgr to contract locker
peterjan Aug 16, 2024
f7b9645
Merge branch 'pj/move-contracts' of github.com:SiaFoundation/renterd …
peterjan Aug 16, 2024
16b6a4e
bus: update comment
peterjan Aug 16, 2024
c578d2a
internal: export SectorsCache
peterjan Aug 16, 2024
df1390a
bus: change interface name
peterjan Aug 16, 2024
cb00476
Merge branch 'pj/move-accounts' of github.com:SiaFoundation/renterd i…
peterjan Aug 16, 2024
1077637
Merge branch 'dev' into cache-dns
ChrisSchinnerl Aug 16, 2024
26596b0
Move sector cache to `internal` package (#1444)
ChrisSchinnerl Aug 16, 2024
c49f9f8
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/move-c…
peterjan Aug 16, 2024
724b188
testing: use buffered error channel
peterjan Aug 16, 2024
6c258da
Move contracts to `internal` package (#1443)
ChrisSchinnerl Aug 16, 2024
594e43f
testing: update retry interval
peterjan Aug 16, 2024
04e6fc2
internal: export account mgr
peterjan Aug 16, 2024
962d79b
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/move-a…
peterjan Aug 16, 2024
e621756
debug: add logging
peterjan Aug 16, 2024
e246290
testing: make sure host has multiple spendable outputs
peterjan Aug 16, 2024
12f9c72
Merge branch 'dev' into cache-dns
ChrisSchinnerl Aug 16, 2024
00fb85f
worker: remove AccountBalance
peterjan Aug 16, 2024
5ec92d0
testing: undo loop
peterjan Aug 16, 2024
577dd2d
worker: pessimistically withdraw from the account
peterjan Aug 16, 2024
9da0f46
Merge branch 'dev' into pj/drift-updates
peterjan Aug 16, 2024
50f500e
api: add json tags for HostScan and HostPriceTableUpdate
chris124567 Aug 16, 2024
d211e4c
contractor: update copy pasted comment
chris124567 Aug 16, 2024
428653e
utils: make error messages more specific in AddressesToSubnets
chris124567 Aug 16, 2024
9274fb2
worker: use debug level logging for dns cache misses
chris124567 Aug 16, 2024
dc9e48b
Move accounts to `internal` package (#1442)
ChrisSchinnerl Aug 16, 2024
6d42449
worker: change dialer argument order
chris124567 Aug 16, 2024
8118f9f
Fix TestContractApplyChainUpdates NDF (#1450)
ChrisSchinnerl Aug 16, 2024
ca1e530
Merge branch 'dev' into cache-dns
chris124567 Aug 16, 2024
0396aec
ui: v0.59.0
ChrisSchinnerl Aug 16, 2024
f427794
ui: v0.59.0 (#1451)
ChrisSchinnerl Aug 16, 2024
8a7fcde
Cache DNS Responses (#1385)
ChrisSchinnerl Aug 16, 2024
6a65255
bus: don't pin maxrpcprice
ChrisSchinnerl Aug 16, 2024
0513d7c
Update pin settings (#1452)
ChrisSchinnerl Aug 17, 2024
70dba11
build(deps): bump github.com/minio/minio-go/v7
dependabot[bot] Aug 19, 2024
67b17c6
gouging: use per TB pricing instead of per TiB
ChrisSchinnerl Aug 19, 2024
1c999fc
build(deps): bump github.com/minio/minio-go/v7 from 7.0.74 to 7.0.75 …
ChrisSchinnerl Aug 19, 2024
c77c935
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/drift-…
peterjan Aug 19, 2024
27ad779
Merge branch 'pj/drift-updates' of github.com:SiaFoundation/renterd i…
peterjan Aug 19, 2024
814722f
Isolate rhpv3 code in v3 client
ChrisSchinnerl Aug 16, 2024
5d6ce8d
rhp: unexport rpcs
ChrisSchinnerl Aug 19, 2024
67906a1
Merge branch 'dev' into chris/rhp3-client
ChrisSchinnerl Aug 19, 2024
5f3c341
Use per TB pricing instead of per TiB (#1454)
ChrisSchinnerl Aug 19, 2024
6d9f657
e2e: fix TestListObjects
ChrisSchinnerl Aug 19, 2024
feea0dd
testing: move file
peterjan Aug 19, 2024
5cc44e4
e2e: fix TestNewTestCluster
ChrisSchinnerl Aug 19, 2024
989b315
Merge branch 'dev' into chris/rhp3-client
ChrisSchinnerl Aug 19, 2024
4e6382f
e2e: fix TestAccountFunding
ChrisSchinnerl Aug 19, 2024
eb24b32
bus: record wallet metrics
peterjan Aug 19, 2024
d17ea3e
bus: log wallet balance
peterjan Aug 19, 2024
48c5b10
e2e: fix TestInteractions
ChrisSchinnerl Aug 19, 2024
c03a1dc
dockerfile: update go version used for building image
ChrisSchinnerl Aug 19, 2024
a258e7f
Update Go version (#1459)
ChrisSchinnerl Aug 19, 2024
fdea7f6
Move TestHost (#1457)
ChrisSchinnerl Aug 19, 2024
60ee37f
Record wallet metrics in the bus (#1458)
ChrisSchinnerl Aug 19, 2024
ed4b15b
Merge branch 'dev' into chris/rhp3-client
ChrisSchinnerl Aug 19, 2024
c57436b
ui: v0.60.0
ChrisSchinnerl Aug 19, 2024
c41cb0e
ui: v0.60.0 (#1461)
ChrisSchinnerl Aug 20, 2024
865f6c6
Merge branch 'dev' into chris/rhp3-client
ChrisSchinnerl Aug 20, 2024
faa301c
account: schedule sync on deposit error
peterjan Aug 20, 2024
eca0e31
worker: avoid passing amount by ref.
peterjan Aug 20, 2024
b3def37
worker: update docstring
peterjan Aug 20, 2024
f084975
worker: cleanup PR
peterjan Aug 20, 2024
6a30759
rhp: address comments
ChrisSchinnerl Aug 20, 2024
cd526d4
Refactor rhp3.go into client package (#1455)
ChrisSchinnerl Aug 20, 2024
4a7e92f
bus: default price pin settings
peterjan Aug 21, 2024
8d3e198
bus: make wallet redistribute endpoint v2 ready
ChrisSchinnerl Aug 21, 2024
e880c7c
Merge branch 'dev' of github.com:SiaFoundation/renterd into pj/drift-…
peterjan Aug 21, 2024
f4c4dbd
testing: remove assertion
peterjan Aug 21, 2024
ecfb8a9
rhp: pessimistic readsector cost
peterjan Aug 21, 2024
4668f56
worker: schedule sync on max bal exceeded
peterjan Aug 21, 2024
8e8e11f
worker: extend cache with contract additions
ChrisSchinnerl Aug 21, 2024
8cc1e0f
worker: fix TestEventSubscriber
ChrisSchinnerl Aug 21, 2024
82c7ad0
Add default values for PricePinSettings (#1465)
ChrisSchinnerl Aug 21, 2024
aeab86d
Make wallet redistribute endpoint v2 ready (#1466)
ChrisSchinnerl Aug 21, 2024
b2ff8d2
stores: fix migration
ChrisSchinnerl Aug 21, 2024
1f3da61
ui: v0.60.1
ChrisSchinnerl Aug 21, 2024
8a169ab
ui: v0.60.1 (#1468)
ChrisSchinnerl Aug 22, 2024
0869172
bus: address comments
ChrisSchinnerl Aug 22, 2024
b377f76
Add contract additions to worker cache (#1467)
ChrisSchinnerl Aug 22, 2024
0751034
Improve ephemeral account drift (#1403)
ChrisSchinnerl Aug 22, 2024
037e9dd
Merge branch 'master' into chris/v110
ChrisSchinnerl Aug 23, 2024
d615bdd
e2e: cancel syncer context
ChrisSchinnerl Aug 23, 2024
028a6fb
Fix node setup (#1477)
ChrisSchinnerl Aug 26, 2024
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
120 changes: 10 additions & 110 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ env:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
network: ["mainnet" , "zen"]
permissions:
packages: write
steps:
Expand All @@ -35,31 +32,18 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare environment variables
run: |
if [[ "${{ matrix.network }}" == "zen" ]]; then
echo "BUILD_TAGS=testnet netgo" >> $GITHUB_ENV
echo "DOCKER_METADATA_SUFFIX=-zen" >> $GITHUB_ENV
else
echo "BUILD_TAGS=netgo" >> $GITHUB_ENV
echo "DOCKER_METADATA_SUFFIX=" >> $GITHUB_ENV
fi
- uses: docker/metadata-action@v4
name: Generate tags
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
suffix=${{ env.DOCKER_METADATA_SUFFIX }},onlatest=true
tags: |
type=ref,event=branch
type=sha,prefix=
type=semver,pattern={{version}}
- uses: docker/build-push-action@v4
with:
context: .
build-args: |
BUILD_TAGS=${{ env.BUILD_TAGS }}
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
Expand All @@ -68,7 +52,6 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
network: ["mainnet" , "zen"]
arch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
Expand All @@ -83,53 +66,25 @@ jobs:
sudo apt install -y gcc-aarch64-linux-gnu
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
fi
- name: Set build tag environment variable
run: |
if [[ "${{ matrix.network }}" == "zen" ]]; then
echo "BUILD_TAGS=testnet netgo" >> $GITHUB_ENV
echo "ZIP_OUTPUT_SUFFIX=_zen" >> $GITHUB_ENV
else
echo "BUILD_TAGS=netgo" >> $GITHUB_ENV
echo "ZIP_OUTPUT_SUFFIX=" >> $GITHUB_ENV
fi
- name: Build ${{ matrix.arch }}
env:
CGO_ENABLED: 1
GOOS: linux
GOARCH: ${{ matrix.arch }}
run: |
mkdir -p release
ZIP_OUTPUT=release/renterd${{ env.ZIP_OUTPUT_SUFFIX }}_${GOOS}_${GOARCH}.zip
go build -tags="$BUILD_TAGS" -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/renterd
ZIP_OUTPUT=release/renterd_${GOOS}_${GOARCH}.zip
go build -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/renterd
cp README.md LICENSE bin/
zip -qj $ZIP_OUTPUT bin/*
- name: Get Release Asset
uses: actions/github-script@v7
id: get_release_asset
env:
ARCH: ${{ matrix.arch }}
NETWORK: ${{ matrix.network }}
with:
result-encoding: string
script: |
const arch = process.env.ARCH,
network = process.env.NETWORK;

switch (network) {
case 'mainnet':
return `renterd_linux_${arch}`;
default:
return `renterd_${network}_linux_${arch}`;
}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_release_asset.outputs.result }}
path: release/
name: renterd_linux_${{ matrix.arch }}
path: release/*
build-mac:
runs-on: macos-latest
strategy:
matrix:
network: ["mainnet" , "zen"]
arch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -169,15 +124,6 @@ jobs:

# generate
go generate ./...
- name: Set build tag environment variable
run: |
if [[ "${{ matrix.network }}" == "zen" ]]; then
echo "BUILD_TAGS=testnet netgo" >> $GITHUB_ENV
echo "ZIP_OUTPUT_SUFFIX=_zen" >> $GITHUB_ENV
else
echo "BUILD_TAGS=netgo" >> $GITHUB_ENV
echo "ZIP_OUTPUT_SUFFIX=" >> $GITHUB_ENV
fi
- name: Build ${{ matrix.arch }}
env:
APPLE_CERT_ID: ${{ secrets.APPLE_CERT_ID }}
Expand All @@ -193,53 +139,25 @@ jobs:
run: |
mkdir -p release
ZIP_OUTPUT=release/renterd${{ env.ZIP_OUTPUT_SUFFIX }}_${GOOS}_${GOARCH}.zip
go build -tags="$BUILD_TAGS" -trimpath -o bin/ -a -ldflags '-s -w' ./cmd/renterd
go build -trimpath -o bin/ -a -ldflags '-s -w' ./cmd/renterd
cp README.md LICENSE bin/
/usr/bin/codesign --deep -f -v --timestamp -o runtime,library -s $APPLE_CERT_ID bin/renterd
ditto -ck bin $ZIP_OUTPUT
xcrun notarytool submit -k ~/private_keys/AuthKey_$APPLE_API_KEY.p8 -d $APPLE_API_KEY -i $APPLE_API_ISSUER --wait --timeout 10m $ZIP_OUTPUT
- name: Get Release Asset
uses: actions/github-script@v7
id: get_release_asset
env:
ARCH: ${{ matrix.arch }}
NETWORK: ${{ matrix.network }}
with:
result-encoding: string
script: |
const arch = process.env.ARCH,
network = process.env.NETWORK;

switch (network) {
case 'mainnet':
return `renterd_darwin_${arch}`;
default:
return `renterd_${network}_darwin_${arch}`;
}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_release_asset.outputs.result }}
path: release/
name: renterd_darwin_${{ matrix.arch }}
path: release/*
build-windows:
runs-on: windows-latest
strategy:
matrix:
network: ["mainnet" , "zen"]
arch: [ amd64 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Set build tag environment variable
run: |
if ( "${{ matrix.network }}" -eq "zen" ) {
"BUILD_TAGS=testnet netgo" >> $env:GITHUB_ENV
"ZIP_OUTPUT_SUFFIX=_zen" >> $env:GITHUB_ENV
} else {
"BUILD_TAGS=netgo" >> $env:GITHUB_ENV
"ZIP_OUTPUT_SUFFIX=" >> $env:GITHUB_ENV
}
- name: Setup
shell: bash
run: |
Expand All @@ -254,32 +172,14 @@ jobs:
run: |
mkdir -p release
ZIP_OUTPUT=release/renterd${{ env.ZIP_OUTPUT_SUFFIX }}_${GOOS}_${GOARCH}.zip
go build -tags="$BUILD_TAGS" -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/renterd
go build -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/renterd
azuresigntool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v bin/renterd.exe
cp README.md LICENSE bin/
7z a $ZIP_OUTPUT bin/*
- name: Get Release Asset
uses: actions/github-script@v7
id: get_release_asset
env:
ARCH: ${{ matrix.arch }}
NETWORK: ${{ matrix.network }}
with:
result-encoding: string
script: |
const arch = process.env.ARCH,
network = process.env.NETWORK;

switch (network) {
case 'mainnet':
return `renterd_windows_${arch}`;
default:
return `renterd_${network}_windows_${arch}`;
}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.get_release_asset.outputs.result }}
path: release/
name: renterd_windows_${{ matrix.arch }}
path: release/*

combine-release-assets:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest , macos-latest, windows-latest ]
go-version: [ '1.21', '1.22' ]
go-version: [ '1.22', '1.23' ]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -49,7 +49,7 @@ jobs:
host port: 3800
mysql version: '8'
mysql root password: test
- name: Test
- name: Test Stores
uses: n8maninger/action-golang-test@v1
with:
args: "-race;-short"
Expand All @@ -67,7 +67,7 @@ jobs:
uses: n8maninger/action-golang-test@v1
with:
package: "./internal/test/e2e/..."
args: "-failfast;-race;-tags=testing;-timeout=30m"
args: "-failfast;-race;-tags=testing;-timeout=60m"
- name: Test Integration - MySQL
if: matrix.os == 'ubuntu-latest'
uses: n8maninger/action-golang-test@v1
Expand All @@ -77,6 +77,6 @@ jobs:
RENTERD_DB_PASSWORD: test
with:
package: "./internal/test/e2e/..."
args: "-failfast;-race;-tags=testing;-timeout=30m"
args: "-failfast;-race;-tags=testing;-timeout=60m"
- name: Build
run: go build -o bin/ ./cmd/renterd
2 changes: 1 addition & 1 deletion .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
with:
moduleName: 'renterd'
goVersion: '1.21'
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ overview of all settings configurable through the CLI.
| `Directory` | Directory for storing node state | `.` | `--dir` | - | `directory` |
| `Seed` | Seed for the node | - | - | `RENTERD_SEED` | `seed` |
| `AutoOpenWebUI` | Automatically open the web UI on startup | `true` | `--openui` | - | `autoOpenWebUI` |
| `Network` | Network to run on (mainnet/zen/anagami) | `mainnet` | `--network` | `RENTERD_NETWORK` | `network` |
| `ShutdownTimeout` | Timeout for node shutdown | `5m` | `--node.shutdownTimeout` | - | `shutdownTimeout` |
| `Log.Level` | Global logger level (debug\|info\|warn\|error). Defaults to 'info' | `info` | `--log.level` | `RENTERD_LOG_LEVEL` | `log.level` |
| `Log.File.Enabled` | Enables logging to disk. Defaults to 'true' | `true` | `--log.file.enabled` | `RENTERD_LOG_FILE_ENABLED` | `log.file.enabled` |
Expand Down Expand Up @@ -408,14 +409,14 @@ ghcr.io/siafoundation/renterd.
version: "3.9"
services:
renterd:
image: ghcr.io/siafoundation/renterd:master-zen
image: ghcr.io/siafoundation/renterd:master
environment:
- RENTERD_SEED=put your seed here
- RENTERD_API_PASSWORD=test
ports:
- 9880:9880
- 9881:9881
- 7070:7070
- 9980:9980
- 9981:9981
- 8080:8080
volumes:
- ./data:/data
restart: unless-stopped
Expand All @@ -427,23 +428,16 @@ services:
From within the root of the repo run the following command to build an image of
`renterd` tagged `renterd`.

#### Mainnet

```sh
docker build -t renterd:master -f ./docker/Dockerfile .
```

#### Testnet

```sh
docker build --build-arg BUILD_TAGS='netgo testnet' -t renterd:master-zen -f ./docker/Dockerfile .
```

### Run Container

Run `renterd` in the background as a container named `renterd` that exposes its
API to the host system and the gateway to the world.


#### Mainnet

```bash
Expand All @@ -452,10 +446,16 @@ docker run -d --name renterd -e RENTERD_API_PASSWORD="<PASSWORD>" -e RENTERD_SEE

#### Testnet

To run `renterd` on testnet use the `RENTERD_NETWORK` environment variable.

```bash
docker run -d --name renterd-testnet -e RENTERD_API_PASSWORD="<PASSWORD>" -e RENTERD_SEED="<SEED>" -p 127.0.0.1:9880:9880/tcp -p :9881:9881/tcp ghcr.io/siafoundation/renterd:master-zen
docker run -d --name renterd -e RENTERD_API_PASSWORD="<PASSWORD>" -e RENTERD_NETWORK="<network>" -e RENTERD_SEED="<SEED>" -p 127.0.0.1:9980:9980/tcp -p :9981:9981/tcp ghcr.io/siafoundation/renterd:master
```

Currently available values for `<network>` are:
- `zen`
- `anagami`

## Architecture

`renterd` distinguishes itself from `siad` through a unique architecture
Expand Down Expand Up @@ -606,10 +606,10 @@ updated using the settings API:
{
"hostBlockHeightLeeway": 6, // 6 blocks
"maxContractPrice": "15000000000000000000000000", // 15 SC per contract
"maxDownloadPrice": "3000000000000000000000000000", // 3000 SC per 1 TiB
"maxDownloadPrice": "3000000000000000000000000000", // 3000 SC per 1 TB
"maxRPCPrice": "1000000000000000000000", // 1mS per RPC
"maxStoragePrice": "631593542824", // 3000 SC per TiB per month
"maxUploadPrice": "3000000000000000000000000000", // 3000 SC per 1 TiB
"maxStoragePrice": "631593542824", // 3000 SC per TB per month
"maxUploadPrice": "3000000000000000000000000000", // 3000 SC per 1 TB
"migrationSurchargeMultiplier": 10, // overpay up to 10x for sectors migrations on critical slabs
"minAccountExpiry": 86400000000000, // 1 day
"minMaxEphemeralAccountBalance": "1000000000000000000000000", // 1 SC
Expand Down
2 changes: 1 addition & 1 deletion alerts/alerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var _ webhooks.WebhookStore = (*testWebhookStore)(nil)

func TestWebhooks(t *testing.T) {
store := &testWebhookStore{}
mgr, err := webhooks.NewManager(zap.NewNop().Sugar(), store)
mgr, err := webhooks.NewManager(store, zap.NewNop())
if err != nil {
t.Fatal(err)
}
Expand Down
16 changes: 14 additions & 2 deletions api/autopilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package api
import (
"errors"
"fmt"
"sort"

"go.sia.tech/core/types"
"go.sia.tech/siad/build"
"go.sia.tech/renterd/internal/utils"
)

const (
Expand Down Expand Up @@ -131,8 +132,19 @@ type (
func (c AutopilotConfig) Validate() error {
if c.Hosts.MaxDowntimeHours > 99*365*24 {
return ErrMaxDowntimeHoursTooHigh
} else if c.Hosts.MinProtocolVersion != "" && !build.IsVersion(c.Hosts.MinProtocolVersion) {
} else if c.Hosts.MinProtocolVersion != "" && !utils.IsVersion(c.Hosts.MinProtocolVersion) {
return fmt.Errorf("invalid min protocol version '%s'", c.Hosts.MinProtocolVersion)
}
return nil
}

func (c ContractsConfig) SortContractsForMaintenance(contracts []Contract) {
sort.SliceStable(contracts, func(i, j int) bool {
iInSet := contracts[i].InSet(c.Set)
jInSet := contracts[j].InSet(c.Set)
if iInSet != jInSet {
return iInSet
}
return contracts[i].FileSize() > contracts[j].FileSize()
})
}
Loading
Loading