storj/satellite/accounting
Márton Elek 35c022ebf9 satellite/accounting: don't use testplanet in rollup_test if not necessary
TestRollupNoDeletes is very flaky (passes locally but fails in the main branch build).

The exact reason is not clear, but stopping the loop seems to be async, the following lines may not stop the loops immediatelly which is a potential problem:

```
satellitePeer.Accounting.Rollup.Loop.Pause()
satellitePeer.Accounting.Tally.Loop.Pause()
```

Fortunatelly these test check only the database interfaces. Instead of testplanet.Run we can run only satellitedbtest.Run which is faster and more predictable (no background loops).

Other potential problem: comment claims that the default of DeleteTallies is false:

```
// In testplanet the setting config.Rollup.DeleteTallies defaults to false.
```

But it seems to be true (rollup.go):

```
DeleteTallies bool          `help:"option for deleting tallies after they are rolled up" default:"true"`
```

This is also fixed in the patch (as we need set it explicit), but TBH it can be fixed with testplanet, too.

Change-Id: Id7ec80d5c069bed2c556f4d001c71aa23fc5af23
2022-06-09 13:11:45 +00:00
..
live satellite/accounting: don't expire segments usage key 2022-05-16 13:00:16 +00:00
nodetally satellite: use more optimal monkit call for loop observers methods 2022-05-20 11:03:41 +00:00
projectbwcleanup satellite/accounting: fix as of system interval value for some tests 2021-06-29 10:16:48 +00:00
rollup satellite/accounting: don't use testplanet in rollup_test if not necessary 2022-06-09 13:11:45 +00:00
rolluparchive satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
tally satellite/accounting: add metrics for total pending objects 2022-06-06 12:04:46 +00:00
billing_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
bucketstats.go satellite/accounting: add metrics for total pending objects 2022-06-06 12:04:46 +00:00
bucketusage.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
common.go all: fix error naming 2021-04-29 15:38:21 +03:00
db_test.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
db.go satellite/accounting: don't expire segments usage key 2022-05-16 13:00:16 +00:00
projectlimitcache_test.go satellite/accounting: expose project segment limit 2021-12-08 11:27:21 +00:00
projectlimitcache.go satellite/accounting: expose project segment limit 2021-12-08 11:27:21 +00:00
projectusage_test.go satellite/accounting: modify tally.go to use returned segments values 2022-05-17 17:20:02 +00:00
projectusage.go satellite/metabase: drop GetProjectSegmentCount and related code 2022-05-17 19:01:51 +00:00