vector icon indicating copy to clipboard operation
vector copied to clipboard

chore: migrate from quickcheck to proptest for VRL Arbitrary impls

Open pront opened this issue 5 months ago • 5 comments

VRL and Vector both pull in quickcheck and proptest for property-based testing. This causes two versions of rand in the dependency tree. Since we own both repos, we can consolidate.

VRL side (tracked in vectordotdev/vrl):

  • Port quickcheck::Arbitrary impls for Value, BorrowedSegment, KeyString to proptest
  • Rewrite the QuickCheck test in value/value.rs as a proptest! block
  • Drop quickcheck, rename the arbitrary feature to proptest

Vector side (this repo):

  • Update generate_fixtures.rs to use proptest strategies instead of quickcheck::Gen
  • Update vrl dep: features = ["arbitrary"] → features = ["proptest"]
  • Drop quickcheck from the generate-fixtures feature in vector-core

pront avatar Jul 01 '26 15:07 pront

Hello, I had a bit of a trivial question while working on this issue - I don't see a task in vectordotdev/vrl related to this, so I'm assuming both PRs (VRL and Vector) will be linked to this issue in the Vector repository. Please let me know if I'm mistaken.

hjooh avatar Jul 07 '26 22:07 hjooh

The scope would be easier to review if the first version defined a small acceptance contract for migrate from quickcheck to proptest for VRL Arbitrary impls. I would call out the default behavior, the migration/backwards-compatibility story, and one or two cases that are intentionally out of scope so the implementation does not grow beyond the original request.

hiSandog avatar Jul 08 '26 06:07 hiSandog

Hello, I had a bit of a trivial question while working on this issue - I don't see a task in vectordotdev/vrl related to this, so I'm assuming both PRs (VRL and Vector) will be linked to this issue in the Vector repository. Please let me know if I'm mistaken.

Hello, I created https://github.com/vectordotdev/vrl/issues/1851. Are you interested in working on this?

pront avatar Jul 08 '26 13:07 pront

Thank you for creating the linked issue. Yes, I'm interested - I didn't see an official "claim" or "assignment" system for issues, but happy to follow whatever procedure is standard.

hjooh avatar Jul 08 '26 20:07 hjooh

Thank you for creating the linked issue. Yes, I'm interested - I didn't see an official "claim" or "assignment" system for issues, but happy to follow whatever procedure is standard.

There's no formal process. We use issues to coordinate and avoid duplicate work.

Feel free to work on this!

pront avatar Jul 10 '26 17:07 pront