ale64bit
  • Joined on 2023-03-06
ale64bit commented on pull request TrueCloudLab/frostfs-node#150 2023-03-21 08:00:28 +00:00
[#86] node: Move testing utils to one package

the data size should probably be a parameter.

ale64bit commented on pull request TrueCloudLab/frostfs-node#150 2023-03-21 08:00:27 +00:00
[#86] node: Move testing utils to one package

crypto/rand seems like overkill here. Maybe use golang.org/x/exp/rand instead.

ale64bit commented on pull request TrueCloudLab/xk6-frostfs#35 2023-03-21 07:50:55 +00:00
[#14]: Add local target support

Object signature was missing. Added in last push.

ale64bit pushed to feature/14-local_targets at ale64bit/xk6-frostfs 2023-03-21 07:50:17 +00:00
c7a17bea8f [#14]: Add local target support
ale64bit pushed to feature/14-local_targets at ale64bit/xk6-frostfs 2023-03-21 06:49:12 +00:00
5d0134219c [#14]: Add local target support
ed58333aba [#11] Support reading env variables from file
Compare 2 commits »
ale64bit commented on issue TrueCloudLab/frostfs-node#139 2023-03-20 15:18:05 +00:00
Unit tests fail in docker container under root user

What about we create a TestStorage implementation of common.Storage which can wrap other implementations and passthrough certain calls to the underlying storage while setting some test…

ale64bit reopened issue TrueCloudLab/frostfs-node#139 2023-03-20 15:07:21 +00:00
Unit tests fail in docker container under root user
ale64bit closed issue TrueCloudLab/frostfs-node#139 2023-03-20 15:07:14 +00:00
Unit tests fail in docker container under root user
ale64bit commented on issue TrueCloudLab/frostfs-node#139 2023-03-20 09:35:00 +00:00
Unit tests fail in docker container under root user

IMHO, any unit test that requires OS interaction is not really "unit" anymore. The thing with those failing tests is that they use some unorthodox way of verifying their behavior, so we should…

ale64bit commented on issue TrueCloudLab/frostfs-node#139 2023-03-20 09:04:12 +00:00
Unit tests fail in docker container under root user

Let's add some artificial unit test to show a warning when tests are running under root, at least for debugging purposes for now, since our code is quite entangled with os usage and bbolt itself.

ale64bit commented on issue TrueCloudLab/frostfs-node#139 2023-03-17 10:14:39 +00:00
Unit tests fail in docker container under root user

Using fs.FS is not trivial for the following reasons:

  1. It's only read-only for the time being (https://github.com/golang/go/issues/45757).
  2. Even if we embed it in an extended interface…
ale64bit commented on pull request TrueCloudLab/xk6-frostfs#35 2023-03-17 07:29:03 +00:00
[#14]: Add local target support

The registry is used also for e.g. delete workload when there are no pregenerated objects. So probably worth keeping it at least for local tests.

ale64bit commented on pull request TrueCloudLab/xk6-frostfs#35 2023-03-17 07:27:42 +00:00
[#14]: Add local target support

done

ale64bit commented on pull request TrueCloudLab/xk6-frostfs#35 2023-03-17 07:27:34 +00:00
[#14]: Add local target support

I see. But it already works :) no harm in keeping it?

ale64bit commented on pull request TrueCloudLab/xk6-frostfs#35 2023-03-17 07:27:06 +00:00
[#14]: Add local target support

done. Turned it into a singleton. (the original reason was that Connect is called multiple times and you can't have more than an instance of the engine running).

ale64bit commented on pull request TrueCloudLab/xk6-frostfs#35 2023-03-17 07:26:18 +00:00
[#14]: Add local target support

Possibly, but this is what all examples were doing so I copy-pasted it blindly. Let's refactor it in a separate PR since it touches a bunch of other files.

ale64bit pushed to feature/14-local_targets at ale64bit/xk6-frostfs 2023-03-17 07:25:42 +00:00
cceccd2ccb [#14]: Add local target support
ale64bit commented on issue TrueCloudLab/frostfs-node#139 2023-03-16 11:57:17 +00:00
Unit tests fail in docker container under root user

Is it possible to use https://pkg.go.dev/io/fs#FS instead of os everywhere? This way we can mock this things without resorting to perm tricks and make at least the unit tests fully hermetic.