Skip to content

Fix evaluation endpoint returning 0 usable hosts due to gouging on period #5541

Fix evaluation endpoint returning 0 usable hosts due to gouging on period

Fix evaluation endpoint returning 0 usable hosts due to gouging on period #5541

Triggered via pull request April 19, 2024 09:04
Status Failure
Total duration 10m 28s
Artifacts

test.yml

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

Annotations

16 errors and 1 warning
test (ubuntu-latest, 1.21)
1/28 tests failed
Test go.sia.tech/renterd/internal/test/e2e/TestGouging failed in 19.43s: internal/test/e2e/finisher_api.go#L651
2024-04-19T09:14:27Z ERROR SQL [email protected]/finisher_api.go:651 trace {"error": "database is locked", "elapsed": 0.000408591, "rows": 0, "sql": "INSERT INTO `hosts` (`created_at`,`public_key`,`settings`,`price_table`,`price_table_expiry`,`total_scans`,`last_scan`,`last_scan_success`,`second_to_last_scan_success`,`scanned`,`uptime`,`downtime`,`recent_downtime`,`recent_scan_failures`,`successful_interactions`,`failed_interactions`,`lost_sectors`,`last_announcement`,`net_address`,`id`) VALUES (\"2024-04-19 09:14:26.375\",\"<binary>\",\"{\"\"acceptingcontracts\"\":true,\"\"maxdownloadbatchsize\"\":20971520,\"\"maxduration\"\":12960,\"\"maxrevisebatchsize\"\":20971520,\"\"netaddress\"\":\"\"127.0.0.1:38649\"\",\"\"remainingstorage\"\":41943040,\"\"sectorsize\"\":4194304,\"\"totalstorage\"\":41943040,\"\"unlockhash\"\":\"\"addr:f9c8efced206a64900488b1527306b31e3e3b3e53444beeaa716f865a8f2bd9152d3b411bf35\"\",\"\"windowsize\"\":5,\"\"collateral\"\":\"\"46296296296\"\",\"\"maxcollateral\"\":\"\"5000000000000000000000000000\"\",\"\"baserpcprice\"\":\"\"100\"\",\"\"contractprice\"\":\"\"250000000000000000000000\"\",\"\"downloadbandwidthprice\"\":\"\"100000000000000\"\",\"\"sectoraccessprice\"\":\"\"100\"\",\"\"storageprice\"\":\"\"23148148148\"\",\"\"uploadbandwidthprice\"\":\"\"100000000000000\"\",\"\"ephemeralaccountexpiry\"\":2592000000000000,\"\"maxephemeralaccountbalance\"\":\"\"10000000000000000000000000\"\",\"\"revisionnumber\"\":0,\"\"version\"\":\"\"1.6.0\"\",\"\"release\"\":\"\"hostd ?\"\",\"\"siamuxport\"\":\"\"36415\"\"}\",\"{\"\"uid\"\":\"\"90ad5a110b6e379bbf2f91bdcb6758e3\"\",\"\"validity\"\":10000000000,\"\"hostblockheight\"\":109,\"\"updatepricetablecost\"\":\"\"1\"\",\"\"accountbalancecost\"\":\"\"1\"\",\"\"fundaccountcost\"\":\"\"1\"\",\"\"latestrevisioncost\"\":\"\"204800000000000100\"\",\"\"subscriptionmemorycost\"\":\"\"1\"\",\"\"subscriptionnotificationcost\"\":\"\"1\"\",\"\"initbasecost\"\":\"\"100\"\",\"\"memorytimecost\"\":\"\"1\"\",\"\"downloadbandwidthcost\"\":\"\"100000000000000\"\",\"\"uploadbandwidthcost\"\":\"\"100000000000000\"\",\"\"dropsectorsbasecost\"\":\"\"1\"\",\"\"dropsectorsunitcost\"\":\"\"1\"\",\"\"hassectorbasecost\"\":\"\"1\"\",\"\"readbasecost\"\":\"\"100\"\",\"\"readlengthcost\"\":\"\"1\"\",\"\"renewcontractcost\"\":\"\"100000000000000000\"\",\"\"revisionbasecost\"\":\"\"0\"\",\"\"swapsectorcost\"\":\"\"1\"\",\"\"writebasecost\"\":\"\"100\"\",\"\"writelengthcost\"\":\"\"1\"\",\"\"writestorecost\"\":\"\"23148148148\"\",\"\"txnfeeminrecommended\"\":\"\"10000000000000000000\"\",\"\"txnfeemaxrecommended\"\":\"\"30000000000000000000\"\",\"\"contractprice\"\":\"\"250000000000000000000000\"\",\"\"collateralcost\"\":\"\"46296296296\"\",\"\"maxcollateral\"\":\"\"5000000000000000000000000000\"\",\"\"maxduration\"\":12960,\"\"windowsize\"\":5,\"\"registryentriesleft\"\":0,\"\"registryentriestotal\"\":0}\",\"2024-04-19 09:14:37.603\",2,1713518066585876593,true,true,true,75990396,0,0,0,7,0,0,\"2024-04-19 09:14:26\",\"127.0.0.1:38649\",3) ON CONFLICT (`public_key`) DO UPDATE SET `last_announcement`=`excluded`.`last_announcement`,`net_address`=`excluded`.`net_address` RETURNING `id`"}
Test go.sia.tech/renterd/internal/test/e2e/TestGouging failed in 19.43s: internal/test/e2e/finisher_api.go#L651
2024-04-19T09:14:33Z ERROR SQL [email protected]/finisher_api.go:651 trace {"error": "database is locked", "elapsed": 0.000602221, "rows": 0, "sql": "INSERT INTO `host_checks` (`created_at`,`db_autopilot_id`,`db_host_id`,`usability_blocked`,`usability_offline`,`usability_low_score`,`usability_redundant_ip`,`usability_gouging`,`usability_not_accepting_contracts`,`usability_not_announced`,`usability_not_completing_scan`,`score_age`,`score_collateral`,`score_interactions`,`score_storage_remaining`,`score_uptime`,`score_version`,`score_prices`,`gouging_contract_err`,`gouging_download_err`,`gouging_gouging_err`,`gouging_prune_err`,`gouging_upload_err`) VALUES (\"2024-04-19 09:14:33.68\",1,3,false,false,false,false,false,false,false,false,0.0010288065843621398,0.3333333333333333,0.8136761257837348,0.00000025,1,1,1,\"\",\"\",\"\",\"\",\"\") ON CONFLICT (`db_autopilot_id`,`db_host_id`) DO UPDATE SET `db_autopilot_id`=`excluded`.`db_autopilot_id`,`db_host_id`=`excluded`.`db_host_id`,`usability_blocked`=`excluded`.`usability_blocked`,`usability_offline`=`excluded`.`usability_offline`,`usability_low_score`=`excluded`.`usability_low_score`,`usability_redundant_ip`=`excluded`.`usability_redundant_ip`,`usability_gouging`=`excluded`.`usability_gouging`,`usability_not_accepting_contracts`=`excluded`.`usability_not_accepting_contracts`,`usability_not_announced`=`excluded`.`usability_not_announced`,`usability_not_completing_scan`=`excluded`.`usability_not_completing_scan`,`score_age`=`excluded`.`score_age`,`score_collateral`=`excluded`.`score_collateral`,`score_interactions`=`excluded`.`score_interactions`,`score_storage_remaining`=`excluded`.`score_storage_remaining`,`score_uptime`=`excluded`.`score_uptime`,`score_version`=`excluded`.`score_version`,`score_prices`=`excluded`.`score_prices`,`gouging_contract_err`=`excluded`.`gouging_contract_err`,`gouging_download_err`=`excluded`.`gouging_download_err`,`gouging_gouging_err`=`excluded`.`gouging_gouging_err`,`gouging_prune_err`=`excluded`.`gouging_prune_err`,`gouging_upload_err`=`excluded`.`gouging_upload_err` RETURNING `id`"}
Test go.sia.tech/renterd/internal/test/e2e/TestGouging failed in 19.43s: internal/test/e2e/contractor.go#L995
2024-04-19T09:14:36Z ERROR autopilot.autopilot.contractor contractor/contractor.go:995 failed to renew contract {"error": "renewal endheight should surpass the current contract endheight, 460 <= 460", "fcid": "fcid:7a49c7ddbdec8ff1d2dcb886989373117ceef0bf8b19c962d649eb6c343e4979", "hostKey": "ed25519:2b7098794a53a0688743365bc07c48138f3b2b0041ed53c64fc96191725c7ddd", "proceed": false}
Test go.sia.tech/renterd/internal/test/e2e/TestGouging failed in 19.43s: internal/test/e2e/worker.go#L1635
2024-04-19T09:14:37Z ERROR worker.worker worker/worker.go:1635 failed to upload object {"error": "2 < 3: not enough contracts to support requested redundancy", "path": "/data_349525", "bucket": "default"}
Test go.sia.tech/renterd/internal/test/e2e/TestGouging failed in 19.43s: internal/test/e2e/gouging_test.go#L51
gouging_test.go:51: couldn't upload object: couldn't upload object: 2 < 3: not enough contracts to support requested redundancy
test (windows-latest, 1.22)
The job was canceled because "ubuntu-latest_1_21" failed.
test (windows-latest, 1.22)
The operation was canceled.
test (windows-latest, 1.21)
The job was canceled because "ubuntu-latest_1_21" failed.
test (windows-latest, 1.21)
The operation was canceled.
test (ubuntu-latest, 1.22)
The job was canceled because "ubuntu-latest_1_21" failed.
test (ubuntu-latest, 1.22)
The operation was canceled.
test (macos-latest, 1.21)
The job was canceled because "ubuntu-latest_1_21" failed.
test (macos-latest, 1.21)
The operation was canceled.
test (macos-latest, 1.22)
The job was canceled because "ubuntu-latest_1_21" failed.
test (macos-latest, 1.22)
The operation was canceled.
test (ubuntu-latest, 1.21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@v3, SiaFoundation/action-golang-analysis@HEAD, 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/.