SiaFoundation / renterd

A renter for Sia
https://sia.tech/software/renterd
MIT License
68 stars 20 forks source link

renterd 1.0.8 fails unit tests: failed to mine block 1: failed to solve block #1609

Closed philipmw closed 1 month ago

philipmw commented 1 month ago

Current Behavior

Build log:

...
buildPhase completed in 49 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
ok      go.sia.tech/renterd/alerts      0.106s
ok      go.sia.tech/renterd/autopilot   1.009s
ok      go.sia.tech/renterd/autopilot/contractor        0.697s
ok      go.sia.tech/renterd/bus 3.616s
ok      go.sia.tech/renterd/bus/client  0.067s
ok      go.sia.tech/renterd/internal/bus        1.411s
ok      go.sia.tech/renterd/internal/node       0.004s
2024-10-13T07:39:46Z    INFO    sql     stores/sql.go:195       Using SQLite version 3.45.1
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:344   updating prices {"forced": true}
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:354   price pinning is disabled, skipping price update
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:344   updating prices {"forced": false}
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:354   price pinning is disabled, skipping price update
2024-10-13T07:39:46Z    INFO    autopilot.autopilot     autopilot/autopilot.go:458      autopilot is waiting on the bus to connect to peers...
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "contract_set"}
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:344   updating prices {"forced": true}
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:354   price pinning is disabled, skipping price update
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:344   updating prices {"forced": true}
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "setting"}
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:354   price pinning is disabled, skipping price update
2024-10-13T07:39:46Z    INFO    worker.worker.workercache       worker/cache.go:192     handled event   {"module": "setting", "event": "update", "key": "gouging", "ts": "2024-10>
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "setting"}
2024-10-13T07:39:46Z    INFO    worker.worker.workercache       worker/cache.go:192     handled event   {"module": "setting", "event": "update", "key": "contractset", "ts": "202>
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:344   updating prices {"forced": true}
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "setting"}
2024-10-13T07:39:46Z    DEBUG   bus.pricemanager        bus/pinmanager.go:354   price pinning is disabled, skipping price update
2024-10-13T07:39:46Z    INFO    worker.worker.workercache       worker/cache.go:192     handled event   {"module": "setting", "event": "update", "key": "pricepinning", "ts": "20>
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "setting"}
2024-10-13T07:39:46Z    INFO    worker.worker.workercache       worker/cache.go:192     handled event   {"module": "setting", "event": "update", "key": "redundancy", "ts": "2024>
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "setting"}
2024-10-13T07:39:46Z    INFO    worker.worker.workercache       worker/cache.go:192     handled event   {"module": "setting", "event": "update", "key": "s3authentication", "ts":>
2024-10-13T07:39:46Z    DEBUG   bus     bus/bus.go:2102 successfully broadcast action   {"event": "update", "module": "setting"}
2024-10-13T07:39:46Z    INFO    worker.worker.workercache       worker/cache.go:192     handled event   {"module": "setting", "event": "update", "key": "uploadpacking", "ts": "2>
--- FAIL: TestBlocklist (0.03s)
    blocklist_test.go:22: failed to mine block 1: failed to solve block
...
FAIL
FAIL    go.sia.tech/renterd/internal/test/e2e   1.585s
FAIL

Expected Behavior

Expected behavior is to have unit tests pass.

Steps to Reproduce

  1. Use a system with Nixpkgs installed;
  2. Check out my fork of nixpkgs repository: git@github.com:philipmw/nixpkgs.git
  3. Check out branch sia-wip
  4. nix-build -A siatech-renterd

Version

1.0.8

What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?

NixOS 24.05 / Nixpkgs master

Autopilot Config

n/a

Bus Config

n/a

Contract Set Contracts

n/a

Anything else?

No response

n8maninger commented 1 month ago

This looks like a user issue. Make sure you are running unit tests with go test -tags=testing ./…