docs: add info about deadlocks in tests to usage rules#2241
Merged
zachdaniel merged 4 commits intomainfrom Jul 31, 2025
Merged
Conversation
…utes Add new section to usage-rules.md explaining how to use Ash.Generator to prevent postgres deadlock issues when running concurrent tests. Includes examples for using sequence/3, creating reusable test generators, and choosing between process-scoped and globally unique values.
Add usage_rules v0.1 to project dependencies for enhanced development workflow support.
barnabasJ
commented
Jul 31, 2025
zachdaniel
reviewed
Jul 31, 2025
mix.exs
Outdated
| {:benchee, "~> 1.1", only: [:dev, :test]}, | ||
| {:tz, "~> 0.28", only: [:test]} | ||
| {:tz, "~> 0.28", only: [:test]}, | ||
| {:usage_rules, "~> 0.1"} |
Contributor
There was a problem hiding this comment.
This shouldn't be added here.
zachdaniel
requested changes
Jul 31, 2025
Contributor
zachdaniel
left a comment
There was a problem hiding this comment.
Can't add usage rules as a dependency like that (it would make igniter a prod dependency of downstream apps. If we added it it would need to be a dev dependency, but we don't need it 😄
Contributor
|
🚀 Thank you for your contribution! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor checklist
Leave anything that you believe does not apply unchecked.