frostfs-node/pkg/local_object_storage
Evgenii Stratonikov 5335e7089e [#615] pilorama: Speedup TestForest_ApplyRandom()
Some of our pilorama tests fail on CI.
The reasons are not obvious, but one possible improvement
is using `WithNoSync` option for these. It should have much effect,
because we are writing on the tmpfs, but doesn't hurt anyway.

If I replace `t.TempDir()` with a local directory, test execution time
goes down from 5s (sync) to 0.4s (nosync), which is the same time as
with `t.TempDir()`. Maybe we have some strange CI configuration.

```
panic: test timed out after 10m0s
running tests:
	TestForest_ApplyRandom (8m22s)
	TestForest_ApplyRandom/bbolt (8m21s)
...
goroutine 170 [syscall]:
syscall.Syscall(0xc000100000?, 0xc00047b758?, 0x6aff9a?, 0xc00041c1b0?)
	/opt/hostedtoolcache/go/1.20.7/x64/src/syscall/syscall_linux.go:69 +0x27
syscall.Fdatasync(0x9e35c0?)
	/opt/hostedtoolcache/go/1.20.7/x64/src/syscall/zsyscall_linux_amd64.go:418 +0x2a
go.etcd.io/bbolt.fdatasync(0xc000189000?)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-16 19:09:08 +00:00
..
blobovnicza [#587] Do not use math/rand.Read 2023-08-09 16:02:44 +03:00
blobstor [#585] fstree: Add optional file counter 2023-08-16 14:47:44 +03:00
engine [#596] engine: Consider context errors as logical 2023-08-16 10:39:41 +03:00
internal [#421] Try using badger for the write-cache 2023-08-07 08:16:57 +00:00
metabase [#xx] Avoid manual management of files in tests 2023-08-14 14:01:39 +03:00
metrics [#373] metrics: Add pilorama metrics 2023-06-21 15:13:26 +03:00
pilorama [#615] pilorama: Speedup TestForest_ApplyRandom() 2023-08-16 19:09:08 +00:00
shard [#162] core: Move literals to constants 2023-08-11 15:48:42 +03:00
util [#587] Do not use math/rand.Read 2023-08-09 16:02:44 +03:00
writecache [#585] writecache: Fix DB counter 2023-08-16 14:47:44 +03:00