storj/satellite
paul cannon 6bb6479690 satellite/repair: fix flakiness in tests
Several tests using `(*ECRepairer).Get()` have begun to exhibit flaky
results. The tests are expecting to see failures in certain cases, but
the failures are not present. It appears that the cause of this is that,
sometimes, the fastest good nodes are able to satisfy the repairer
(providing RequiredCount pieces) before the repairer is able to identify
the problem scenario we have laid out.

In this commit, we add an argument to `(*ECRepairer).Get()` which
specifies how many failure results are expected. In normal/production
conditions, this parameter will be 0, meaning Get need not wait for
any errors and should only report those that arrived while waiting for
RequiredCount pieces (the existing behavior). But in these tests, we can
request that Get() wait for enough results to see the errors we are
expecting.

Refs: https://github.com/storj/storj/issues/5593
Change-Id: I2920edb6b5a344491786aab794d1be6372c07cf8
2023-02-16 07:33:47 +00:00
..
abtesting console/abTesting: add support for AB testing 2022-10-27 10:57:12 +00:00
accounting satellite/satellitedb: create index for interval_day for project_bandwidth_daily_rollup 2023-02-03 10:02:58 +00:00
admin satellite/admin: update user's limits and project limits from admin api 2023-02-15 11:38:57 +00:00
analytics satellite/analytics: Track Project Details Updates (#5451) 2023-01-11 21:25:41 +05:30
attribution satellite: remove rewards package 2023-01-31 11:46:50 +00:00
audit satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
buckets satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
compensation all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
console satellite/{web,console}: feature flag for all projects dashboard 2023-02-15 15:53:31 +00:00
contact private/server,satellite/contact,misc: use new storj/common noise helpers 2023-02-07 09:53:45 -05:00
gc satellite/repair : implemented ranged loop observer 2023-01-23 14:23:03 +00:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite: adjust code to handle context cancelation for SQL queries 2023-01-27 10:07:43 +01:00
inspector {satellite/metabase, satellite/metainfo, satellite/inspector} : Use metabase.GetObjectLastCommitted instead metabase.GetObjectExactVersion 2022-09-08 07:27:22 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
mailservice satellite/consoleweb: fix flaky TestAuth tests 2022-08-04 19:06:07 +00:00
metabase satellite/metainfo: fix duplicates while listing committed objects 2023-02-14 14:47:27 +01:00
metainfo satellite/metainfo: fix duplicates while listing pending objects 2023-02-15 16:52:53 +00:00
metrics satellite/metabase/rangedloop: measure observer duration (#5350) 2022-12-21 21:58:08 +01:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeevents satellite/nodeevents: minor changes to dedupe node IDs 2023-02-10 16:20:10 +00:00
nodeselection/uploadselection satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
nodestats satellite: return interval_end_time in DailyStorageUsage endpoint 2022-07-27 18:24:27 +00:00
oidc all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
orders satellite/metainfo: support desired node number for download object/segment 2023-02-13 13:57:48 +00:00
overlay satellite/overlay: check node difficulty before entering database 2023-02-15 17:46:25 +00:00
payments satellite/payments/stripecoinpayments: forbid replacing partner coupons 2023-02-03 17:15:01 +00:00
repair satellite/repair: fix flakiness in tests 2023-02-16 07:33:47 +00:00
reputation satellite/reputation: Alter logic for hasReputationChanged 2023-02-03 21:17:57 -05:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
satellitedb satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/payments/stripecoinpayments: forbid replacing partner coupons 2023-02-03 17:15:01 +00:00
api.go satellite/payments/stripecoinpayments: forbid replacing partner coupons 2023-02-03 17:15:01 +00:00
auditor.go satellite/audit: split out auditor process 2022-12-16 12:44:32 -06:00
configlock_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
core.go satellite/audit: add ContainmentSyncChore 2023-02-07 01:18:49 +00:00
gc-bf_test.go satellite: use ranged loop with GC-GF peer 2023-02-13 18:32:21 +00:00
gc-bf.go satellite: use ranged loop with GC-GF peer 2023-02-13 18:32:21 +00:00
gc.go gc: remove segment loop dependency 2023-02-03 10:31:16 +00:00
peer.go satellite/satellitedb: cleanup testing access 2023-02-06 14:36:11 +02:00
rangedloop.go satellite/repair : implemented ranged loop observer 2023-01-23 14:23:03 +00:00
repairer.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00