Skip to content

Remove TestRandom#9006

Open
macladson wants to merge 8 commits intosigp:unstablefrom
macladson:remove-test-random
Open

Remove TestRandom#9006
macladson wants to merge 8 commits intosigp:unstablefrom
macladson:remove-test-random

Conversation

@macladson
Copy link
Copy Markdown
Member

@macladson macladson commented Mar 19, 2026

Issue Addressed

We have a legacy TestRandom trait which generates random types for testing and fuzzing.
This function overlaps with arbitrary which is used very commonly in the ecosystem.

Proposed Changes

Remove TestRandom and generate random type instances using Arbitrary.

Additional Info

There are a few situations where we include a self-referential dev-dependency like this:

types = { path = ".", features = ["arbitrary"] }

This forces the arbitrary feature when we run any tests which prevents us from skipping arbitrary tests, however we may want to remove this and make it more targeted, so certain tests run with it or without it.

@macladson macladson requested a review from jxs as a code owner March 19, 2026 13:21
@macladson macladson added code-quality work-in-progress PR is a work-in-progress labels Mar 19, 2026
@macladson macladson changed the title Remove test random Remove TestRandom Mar 19, 2026
@macladson macladson force-pushed the remove-test-random branch 2 times, most recently from 1e6a8a2 to 86d13ac Compare March 30, 2026 07:44
@macladson macladson force-pushed the remove-test-random branch from 86d13ac to 14b889f Compare March 30, 2026 10:08
Comment thread Cargo.toml Outdated
@macladson macladson added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Mar 30, 2026
@mergify
Copy link
Copy Markdown

mergify Bot commented Mar 30, 2026

Some required checks have failed. Could you please take a look @macladson? 🙏

@mergify mergify Bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Mar 30, 2026
@macladson macladson added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Mar 30, 2026
@michaelsproul michaelsproul added blocked and removed ready-for-review The code is ready for review labels Apr 7, 2026
@macladson macladson added ready-for-review The code is ready for review and removed blocked labels Apr 11, 2026
@macladson macladson requested a review from michaelsproul April 11, 2026 14:22
@mergify
Copy link
Copy Markdown

mergify Bot commented Apr 14, 2026

This pull request has merge conflicts. Could you please resolve them @macladson? 🙏

@mergify mergify Bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Apr 14, 2026
@macladson macladson force-pushed the remove-test-random branch from 20916a0 to 24174ba Compare April 15, 2026 07:58
@mergify mergify Bot added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-quality ready-for-review The code is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants