Skip to content

chore(deps): bump github.com/ipfs/go-test from 0.3.0 to 0.4.1#280

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/ipfs/go-test-0.4.1
Closed

chore(deps): bump github.com/ipfs/go-test from 0.3.0 to 0.4.1#280
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/ipfs/go-test-0.4.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/ipfs/go-test from 0.3.0 to 0.4.1.

Release notes

Sourced from github.com/ipfs/go-test's releases.

v0.4.1

What's Changed

Full Changelog: ipfs/go-test@v0.4.0...v0.4.1

v0.4.0

What's Changed

For tests that need to keep generating random test data, it is more efficient to continue using the same random source instead of creating a new one each time data is generated. This also applies to the generation logic itself when one part of the generation logic uses another.

This PR lets the caller create a pseudo-random number source that can be uses reused for generating test data. This is also use within the test logic itself to avoid creating unnecessary random sources.

Also included in this PR are new functions, Name and NameSize, that generate fixed-size and random-size random name strings, and StringToSeed and Uint64ToSeed to create seed values.

This PR fixes two minor defects in the random/files package. First, random-size names never reached the maximum size. Second, the file names were more likely to contain a "0" due to its inclusion twice in the alphabet used for file name generation. Also fixes is a minor defect with ensuring unique addresses.

Finally, this PR migrates from /math/rand/ to /math/rand/v2 and uses ChaCha8 as its random number source.

Summary of changes in this PR:

  • Enable reuse of pseudo-random source for data generation
  • Internal efficiency improvements due to reuse of random source
  • Fix error with ensuring unique addresses
  • Fix minor defects with random file name generation
  • Increases test coverage.
  • Adds two new APIs Name and NameSize, for generating fixes and random-sized random names.
  • No global seed or sequence.
  • Added StringToSeed and Uint64ToSeed to create seed values
  • Update CLI tools to take strings to create seed values
  • Move from /math/rand to /math/rand/v2`

The move to a different number generator, ChaCha8, means that different values will be generated than before, and tests depending on deterministic random values need to be updated.

⚠️ BREAKING API Changes

  • Seed value changed from uint64 to [32]byte as needed for ChaCha8
  • Do not support global seed
  • Do not support global sequence
  • Make Sequence a separate type
  • NewRand and NewSeededRand no longer create a *rand.Rand. This is only breaking in cases where *rand.Rand is expected. Expecting io.Reader will continue to work.
  • Bytes and BlocksOfSize now take an int64 as the size argument, which is more consistent with the golang standard library.
  • Deterministic random values output by API are different in this release.

Non-breaking API Changes

  • Added Name and NameSize functions to API
  • Added NewSeed function to create new seed of type [32]byte

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/ipfs/go-test](https://github.com/ipfs/go-test) from 0.3.0 to 0.4.1.
- [Release notes](https://github.com/ipfs/go-test/releases)
- [Commits](ipfs/go-test@v0.3.0...v0.4.1)

---
updated-dependencies:
- dependency-name: github.com/ipfs/go-test
  dependency-version: 0.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jul 20, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Looks like github.com/ipfs/go-test is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Jul 21, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/ipfs/go-test-0.4.1 branch July 21, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants