Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure we exercise random state generation every time #371

Merged
merged 1 commit into from
May 18, 2024

Conversation

nahueespinosa
Copy link
Member

Proposed changes

This fixes a bug in a test where we only sometimes would exercise random state generation, causing line coverage inconsistencies between PRs and the main branch.

Type of change

  • 馃悰 Bugfix (change which fixes an issue)
  • 馃殌 Feature (change which adds functionality)
  • 馃摎 Documentation (change which fixes or extends documentation)

Checklist

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All commits have been signed for DCO

Additional comments

This fixes the -0.09% coverage difference we occasionally see in PRs and master merge runs.
Screenshot from 2024-05-17 17-10-11

This fixes a bug in a test where we only sometimes would exercise random
state generation, causing line coverage inconsistencies between PRs and
the main branch.

Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
@nahueespinosa nahueespinosa self-assigned this May 17, 2024
@nahueespinosa nahueespinosa added bug Something isn't working cpp Related to C++ code labels May 17, 2024
Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a catch @nahueespinosa

@hidmic hidmic merged commit 8322343 into main May 18, 2024
9 checks passed
@hidmic hidmic deleted the nahuel/fix-coverage-flakiness branch May 18, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cpp Related to C++ code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants