Skip to content

Accelerate tests#219

Merged
bplunkett-stripe merged 2 commits intomainfrom
bplunkett/accelerate-tests
Jul 22, 2025
Merged

Accelerate tests#219
bplunkett-stripe merged 2 commits intomainfrom
bplunkett/accelerate-tests

Conversation

@bplunkett-stripe
Copy link
Contributor

@bplunkett-stripe bplunkett-stripe commented Jul 22, 2025

Description

Stop using a test suite in the acceptance tests. This enables us to leverage t.Parallel. Because tests ran in parallel, to maintain the same "randomly" generated outputs, I wired through a rand reader rather than relying on a global singleton. This makes tests about 50% faster

Before:
image

After:
image

Motivation

Speed up acceptance tests.

Testing

[//]: # Describe how you tested these changes
Ran locally

@bplunkett-stripe bplunkett-stripe force-pushed the bplunkett/accelerate-tests branch from bb03ca9 to 782c837 Compare July 22, 2025 06:27
@bplunkett-stripe bplunkett-stripe force-pushed the bplunkett/accelerate-tests branch from 782c837 to c63d3f5 Compare July 22, 2025 06:41
@bplunkett-stripe
Copy link
Contributor Author

Bypassing review since changes small in scope.

@bplunkett-stripe bplunkett-stripe merged commit 94da23c into main Jul 22, 2025
11 checks passed
@bplunkett-stripe bplunkett-stripe deleted the bplunkett/accelerate-tests branch July 22, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant