You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use new `go-test/random` API
- no global seed values
- reuse generator where appropriate
- Fix tests to match new random data generation
- update expected deterministic values
- fix t0040-add-and-cat.sh
- fix t0043-add-w.sh
- fix t0045-ls.sh
- fix t0087-repo-robust-gc.sh
- fix t0270-filestore.sh
- fix t0271-filestore-utils.sh
- fix t0272-urlstore.sh
- Migrate from `/math/rand' to `/math/rand/v2`
- random seeds are now `[32]byte` and not `uint64`
- use `StringToSeed` or `Uint64ToSeed` to create random seeds for deterministic output
Copy file name to clipboardExpand all lines: docs/changelogs/v0.43.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ This release was brought to you by the [Shipyard](https://ipshipyard.com/) team.
23
23
-[🏁 `ipfs routing findprovs` no longer crashes the daemon](#-ipfs-routing-findprovs-no-longer-crashes-the-daemon)
24
24
-[🛡️ Memory exhaustion fix for pubsub](#-memory-exhaustion-fix-for-pubsub)
25
25
-[📊 Telemetry is now opt-in](#-telemetry-is-now-opt-in)
26
+
-[🧪 Tests use new go-test and rand v2](#-tests-use-new-go-test-and-rand-v2)
26
27
-[🖥️ WebUI Improvements](#-webui-improvements)
27
28
-[📦️ Dependency updates](#-dependency-updates)
28
29
-[📝 Changelog](#-changelog)
@@ -131,6 +132,13 @@ This flaw is already public, which is why we name it here. libp2p disclosed it a
131
132
132
133
The telemetry plugin is now opt-in and ships with no built-in endpoint: a node sends nothing until you set `Plugins.Plugins.telemetry.Config.Mode` to `on` and `Endpoint` to a collector you run, documented along with the payload schema in [telemetry.md](https://github.com/ipfs/kubo/blob/master/docs/telemetry.md).
133
134
135
+
#### 🧪 Tests use new go-test and rand v2
136
+
137
+
The new `go-test` is upgraded to use `math/rand/v2` in all of its packages. The `/go-test/random` package now allows reuse of the random number generator for more efficiently generating sets of random values.
138
+
139
+
Additionally, the `/go-test/random` package removes support for a global seed for the random number generator. This led to the possibility of multiple tests setting the global seed to generate deterministic values, and breaking other tests by causing the generator to generate unexpected values. This breakage could be intermittent and difficult to debug, depending on the how/which tests ran at the same time.
140
+
141
+
Since the underlying pseudo-random number generator was changed in the go-test module, the data generated for a given seed also changed. This required updating tests that relied on seeding the generator and getting expected values.
134
142
#### 🖥️ WebUI Improvements
135
143
136
144
IPFS Web UI has been updated to [v4.13.0](https://github.com/ipfs/ipfs-webui/releases/tag/v4.13.0).
0 commit comments