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

Merge dev -> master #1474

merged 687 commits into from
Aug 26, 2024

Conversation

ChrisSchinnerl
Copy link
Member

No description provided.

ChrisSchinnerl and others added 30 commits August 8, 2024 10:38
Bumps the all-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [go.sia.tech/core](https://github.com/SiaFoundation/core) | `0.4.2` | `0.4.3` |
| [go.sia.tech/coreutils](https://github.com/SiaFoundation/coreutils) | `0.2.3` | `0.2.5` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.25.0` | `0.26.0` |
| [golang.org/x/sys](https://github.com/golang/sys) | `0.23.0` | `0.24.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.22.0` | `0.23.0` |


Updates `go.sia.tech/core` from 0.4.2 to 0.4.3
- [Commits](SiaFoundation/core@v0.4.2...v0.4.3)

Updates `go.sia.tech/coreutils` from 0.2.3 to 0.2.5
- [Commits](SiaFoundation/coreutils@v0.2.3...v0.2.5)

Updates `golang.org/x/crypto` from 0.25.0 to 0.26.0
- [Commits](golang/crypto@v0.25.0...v0.26.0)

Updates `golang.org/x/sys` from 0.23.0 to 0.24.0
- [Commits](golang/sys@v0.23.0...v0.24.0)

Updates `golang.org/x/term` from 0.22.0 to 0.23.0
- [Commits](golang/term@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: go.sia.tech/core
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: go.sia.tech/coreutils
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
peterjan and others added 20 commits August 20, 2024 16:03
Mostly refactoring except for 2 changes:

1. fetching revisions no longer tries to pay by EA, then by contract and
then not at all. It will always fetch revisions without payment since
it's only 1 hasting anyway.
2. renewals always fetch a temporary price table for renewing instead of
checking for an existing one to completely rule out the annoying
revision<->price table chicken and egg problem.
This PR adds default values for the `PricePinSettings`. The UI only
needs a default for the `ForexEndpointURL` but I figured we might as
well add a sane default for all values, except for the actual pins, for
documentation purposes.
### Patch Changes

- 9e6640a3: Fixed an issue where network averages shown on pinned field
tips did not follow the currency display preference.
It seems like right now the cached contracts are not updated when a new
contract is added. This fixes that.

I noticed because the worker failed to refill ephemeral accounts in my
open PR since the cached contracts were always 0 because the cache was
initialized before the contracts had been formed.
This PR proposes a series of small changes in an attempt to fix (or
improve) the drift we see in production. I have not been able to
reproduce (meaningful) negative drift in a test locally and found
debugging it on production quite challenging because you want to caveman
debug both sides ideally. The following changes definitely improve
things, but we'll need to keep following it up.

- [x] plug leaks where we weren't withdrawing money from the EA even
though we paid for things like PT updates
- [x] pessimistically withdraw money from the account in
`DownloadSector` (host only refunds storage revenue on failure)
- [x] sync newly created accounts (avoids funding already funded
accounts)
- [x] reset drift in production (fresh start allows for better follow
up)


I considered syncing the account balance when we fund an account. I went
back and fourth on that several times but eventually removed it because
it more or less makes `requiresSync` obsolete. The benefit though would
be that you are certain the account has 1SC in it after you fund it,
while at the same time keeping track of drift. So drift would still
build up, but at the very least you have an account with 1SC and you
never run into unexpected insufficient balance errors...
@ChrisSchinnerl ChrisSchinnerl self-assigned this Aug 23, 2024
cmd/renterd/node.go Dismissed Show dismissed Hide dismissed
Refactoring the node setup it looks like I made `autopilot.Run`
blocking. This prevents S3 setup from successfully completing.

Fixes #1473
@ChrisSchinnerl ChrisSchinnerl marked this pull request as ready for review August 26, 2024 08:53
@ChrisSchinnerl ChrisSchinnerl merged commit 1ed897e into master Aug 26, 2024
9 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/v110 branch August 26, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants