-
Notifications
You must be signed in to change notification settings - Fork 35
JET + Mooncake fixes for 1.12 #921
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
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5cab7dd
Don't test Mooncake on 1.12
penelopeysm 32f9054
Bump JET.jl compatibility to include 0.10
penelopeysm 57bd111
Disable doctests on prerelease
penelopeysm fa479f3
Fix version check
penelopeysm 16ca002
Split prerelease CI into two groups like the rest
penelopeysm 7363432
Use VERSION.prerelease
penelopeysm e0ec601
Remove Mooncake test dep (use DPPL compat)
penelopeysm 6974ab2
Move doctests into separate workflow
penelopeysm 3b1a6bc
Merge remote-tracking branch 'origin/main' into py/no-mooncake-pre
penelopeysm f9d16c7
Fix dependencies needed for doctests
penelopeysm cac8f9c
Enable depwarns for doctests
penelopeysm 027ccdc
Change length of ThreadSafeVarInfo logps to maxthreadid()
penelopeysm af76f81
Revert "Change length of ThreadSafeVarInfo logps to maxthreadid()"
penelopeysm 86be8b1
Move doctest invocation back to test/runtests.jl
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# We want to only run doctests on a single version of Julia, because | ||
# things like error messages / output can change between versions and | ||
# is fragile to test against. | ||
name: Doctests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
# needed to allow julia-actions/cache to delete old caches that it has created | ||
permissions: | ||
actions: write | ||
contents: read | ||
|
||
# Cancel existing tests on the same PR if a new commit is added to a pull request | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1' | ||
|
||
- uses: julia-actions/cache@v2 | ||
|
||
- uses: julia-actions/julia-buildpkg@v1 | ||
|
||
- name: Run doctests | ||
shell: julia --color=yes --depwarn=yes --project=docs {0} | ||
run: | | ||
# Develop currently checked out version of DynamicPPL | ||
using Pkg | ||
Pkg.develop(path=pwd()) | ||
Pkg.instantiate() | ||
|
||
using Documenter, DynamicPPL, Distributions | ||
|
||
DocMeta.setdocmeta!( | ||
DynamicPPL, | ||
:DocTestSetup, | ||
:(using DynamicPPL, Distributions); | ||
recursive=true, | ||
) | ||
doctestfilters = [ | ||
# Ignore the source of a warning in the doctest output, since this is dependent on host. | ||
# This is a line that starts with "└ @ " and ends with the line number. | ||
r"└ @ .+:[0-9]+", | ||
] | ||
|
||
doctest(DynamicPPL; manual=false, doctestfilters=doctestfilters) |
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
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.
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.
Is this for the doctests? I didn't realise the
docs
project would need it, but if it's needed then it is.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.
Indeed, it depends on which env you call
doctest()
from. In the new workflow I was using the docs env. But I suppose I will move it back to the test env