-
Notifications
You must be signed in to change notification settings - Fork 36
Add Aqua tests #775
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add Aqua tests #775
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
33121d0
Add Aqua tests
penelopeysm b64d3f7
Fix logpdf(::NamedDist) method ambiguity
penelopeysm 5c7ebee
Fix SimpleVarInfo method ambiguity
penelopeysm 6056834
Fix VarInfo method ambiguity
penelopeysm 0bc1a4e
Add InteractiveUtils compat entry
penelopeysm 1a82abc
Add Random.AbstractRNG type annotation
penelopeysm 5bb16c4
Remove unneeded getsym method
penelopeysm 614587c
Fix (newly introduced 😅) ConditionContext method ambiguity
penelopeysm d83e5c2
Fix unwrap_right_left_vns method ambiguity
penelopeysm 637d20e
KernelAbstractions is a weakdep not a dep
penelopeysm 072c3dc
Fix StaticTransformation / ThreadSafeVarInfo link/invlink ambiguity
penelopeysm c8381b2
Merge branch 'main' into py/aqua
penelopeysm a0b8134
Fix more RNGs
penelopeysm b138770
Don't run Aqua tests on CI min versions
penelopeysm fcad376
Merge branch 'main' into py/aqua
penelopeysm f1d5003
Fix ternary in GitHub Actions expression
penelopeysm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module AquaTests | ||
|
||
using Aqua: Aqua | ||
using DynamicPPL | ||
|
||
Aqua.test_all(DynamicPPL) | ||
|
||
end |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the method ambiguity fixes in this PR are really straightforward, but it took me a long time to figure out what to do here.
Firstly, note that this method is only ever invoked in a very specific situation, where we have (1) multithreaded evaluation hence
ThreadSafeVarInfo
, (2) aStaticTransformation
, and (3) the nested varinfo is e.g. aSimpleVarInfo
and specifically not aVarInfo
, because theThreadSafeVarInfo{VarInfo}
methods are overridden invarinfo.jl
.The DynamicPPL test suite does not ever call this method (if it did, it would have failed with a method ambiguity), and since this has never been reported before, one might justifiably assume that no user has ever called it too.
To be fully honest, while I can't see any reason why this would be wrong, I also can't convince myself 100% that this is the correct behaviour. However, looking at the lines directly above this, it seems clear enough to me that the intent of that code was to suggest that all
AbstractTransformation
s should behave that way, except thatDynamicTransformation
was to be special-cased. So I figured that it would suffice to duplicate the generalAbstractTransformation
implementation here.