linkedin / linkedin/goavro

Deterministic sync marker in tests

Open
#182 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
1.1k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

I am trying to make an integration test that always outputs the same Avro file.

However, because the sync marker is random, the Avro file contents are different each time the test is run.

It would be very helpful if I could provide a random number generator to goavro, for use in testing.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that generates the Avro sync marker and the existing integration-test setup. Determine how a caller could supply a random number generator for deterministic tests, then verify that repeated test runs produce identical Avro output. The issue names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.