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

hostd-1.1.2 unit test: invalid net address "127.0.0.1" #488

Closed
philipmw opened this issue Oct 13, 2024 · 1 comment
Closed

hostd-1.1.2 unit test: invalid net address "127.0.0.1" #488

philipmw opened this issue Oct 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@philipmw
Copy link

Current Behavior

Build log:

buildPhase completed in 46 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
ok      go.sia.tech/hostd/host/accounts 0.063s
...
--- FAIL: TestRevenueMetrics (0.36s)
    --- FAIL: TestRevenueMetrics/successful (0.18s)
        logger.go:146: 2024-10-13T07:41:00.310Z DEBUG   host.sqlite.clearLockedSectors  cleared locked sectors  {"locked": 0, "removed": []}
        logger.go:146: 2024-10-13T07:41:00.310Z DEBUG   host.sqlite     database initialized    {"sqliteVersion": "3.45.1", "schemaVersion": 27, "path": "/build/TestRevenueMetri>
        logger.go:146: 2024-10-13T07:41:00.310Z DEBUG   host.wallet     processing consensus change     {"applied": 1, "reverted": 0}
        logger.go:146: 2024-10-13T07:41:00.310Z DEBUG   host.wallet     applied consensus change        {"changeID": "89ead7f67180a28f5b2dea213fdbb6673b914a7901375a78033549337ec>
        logger.go:146: 2024-10-13T07:41:00.310Z DEBUG   host.contracts.consensusChange  consensus change applied        {"height": 0, "changeID": "89ead7f67180a28f5b2dea213fdbb6>
        logger.go:146: 2024-10-13T07:41:00.480Z DEBUG   host.storage.grow       expanded volume {"volumeID": 1, "start": 0, "end": 64, "current": 0}
        revenue_test.go:65: failed to create host: failed to update host settings: failed to validate net address: invalid net address "127.0.0.1": only public IP addresses allowed

Expected Behavior

Unit test to pass.

Steps to Reproduce

  1. Use a system with Nixpkgs installed
  2. Check out my fork of Nixpkgs: [email protected]:philipmw/nixpkgs.git
  3. Check out branch sia-wip
  4. nix-build -A siatech-renterd

Version

1.1.2

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

@philipmw philipmw added the bug Something isn't working label Oct 13, 2024
@ChrisSchinnerl ChrisSchinnerl transferred this issue from SiaFoundation/renterd Oct 21, 2024
@n8maninger
Copy link
Member

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

@n8maninger n8maninger closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Sia Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants