Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 4, 2023

This pull request changes the compat entry for the Bijectors package from 0.8, 0.9, 0.10 to 0.8, 0.9, 0.10, 0.12.
This keeps the compat entries for earlier versions.

Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.

@cpfiffer cpfiffer force-pushed the compathelper/new_version/2023-02-04-00-26-11-137-02020321216 branch from 5ef9802 to 762fda9 Compare February 4, 2023 00:26
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4088997384

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 4047530053: 0.0%
Covered Lines: 0
Relevant Lines: 1422

💛 - Coveralls

@codecov
Copy link

codecov bot commented Feb 4, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (35a1280) 0.00% compared to head (762fda9) 0.00%.

❗ Current head 762fda9 differs from pull request most recent head 8fc2f56. Consider uploading reports for the commit 8fc2f56 to get more accurate results

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1946   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files          21      21           
  Lines        1422    1422           
======================================
  Misses       1422    1422           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ven-k
Copy link

ven-k commented Feb 21, 2023

New patch of Distributions breaks Bijector@0.10 as GLOBAL_RNG is now default_rng (diff)

So, Turing fails to precompile as Bijector's compat entry is "0.8, 0.9, 0.10".

Merging this PR should fix it.

@devmotion
Copy link
Member

This PR can't be merged currently, Bijectors 0.12 (and also 0.11) is untested and had quite a few breaking changes.

@devmotion
Copy link
Member

New patch of Distributions breaks Bijector@0.10 as GLOBAL_RNG is now default_rng (diff)

Why does that break Bijectors?

@ven-k
Copy link

ven-k commented Feb 21, 2023

Oh I see. I'll pin Distributions to 0.25.80 for now then.

Why does that break Bijectors?

This definition:

https://github.com/TuringLang/Bijectors.jl/blob/6f05a87647a05ab71c1602dffbb6d28d89dcd57e/src/transformed_distribution.jl#L218

Repro and error stack
(bijector) pkg> add Bijectors@0.10
(bijector) pkg> precompile
Precompiling environment...
  ✗ Bijectors
  0 dependencies successfully precompiled in 5 seconds. 52 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

Bijectors [76274a88-744f-5084-9051-94815aaf08c4]

Failed to precompile Bijectors [76274a88-744f-5084-9051-94815aaf08c4] to "/home/ub/.julia/compiled/v1.9/Bijectors/jl_63meTE".
ERROR: LoadError: UndefVarError: `GLOBAL_RNG` not defined
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:31
  [2] top-level scope
    @ ~/.julia/packages/Bijectors/vUc4m/src/transformed_distribution.jl:218
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
  [4] include(x::String)
    @ Bijectors ~/.julia/packages/Bijectors/vUc4m/src/Bijectors.jl:1
  [5] top-level scope
    @ ~/.julia/packages/Bijectors/vUc4m/src/interface.jl:172
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
  [7] include(x::String)
    @ Bijectors ~/.julia/packages/Bijectors/vUc4m/src/Bijectors.jl:1
  [8] top-level scope
    @ ~/.julia/packages/Bijectors/vUc4m/src/Bijectors.jl:253
  [9] include
    @ ./Base.jl:457 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:1995
 [11] top-level scope
    @ stdin:2
in expression starting at /home/ub/.julia/packages/Bijectors/vUc4m/src/transformed_distribution.jl:218
in expression starting at /home/ub/.julia/packages/Bijectors/vUc4m/src/interface.jl:172
in expression starting at /home/ub/.julia/packages/Bijectors/vUc4m/src/Bijectors.jl:1
in expression starting at stdin:2

@devmotion
Copy link
Member

Well, this code is.... bad. TuringLang/Bijectors.jl#248 should fix it.

@torfjelde
Copy link
Member

Well, this code is.... bad. TuringLang/Bijectors.jl#248 should fix it.

Oh gee wow. Yeah that's from when I first started out with Julia 😅

@sourish-cmi
Copy link

So we are using Turing extensively in CRRao.jl - looks like it breaks our package. All tests are failing now. Our development is stuck.

@devmotion
Copy link
Member

Can you explain what exactly is broken? The problem mentioned above was fixed right away, within a few hours after it had been brought to our attention. It should not occur with the latest release of Bijectors 0.10.x.

@sourish-cmi
Copy link

Can you explain what exactly is broken? The problem mentioned above was fixed right away, within a few hours after it had been brought to our attention. It should not occur with the latest release of Bijectors 0.10.x.

Thanks for quick reply. We were trying to update the ReadMe file and check of PRs failing as the log shows the Bayesian tests are failing due to Turing (https://github.com/xKDR/CRRao.jl/pull/105/checks)

@devmotion
Copy link
Member

Based on these logs I'm very certain that there is no problem with Turing, and in particular not with Bijectors (the problem discussed above is indeed fixed and does not occur anymore). I'm also very certain that the test failures are caused by the recent switch in Distributions from Random.GLOBAL_RNG to Random.default_rng() (which should be used instead nowadays) as the default RNG. IMO this switch was correctly included in a non-breaking release since not even Julia itself does not promise reproducibility of the default RNG across different (non-breaking) versions and architectures. So I would suggest changing your tests, e.g., by using StableRNG.jl if you want guaranteed reproducibility or by relaxing your tests, increasing the number of samples to reduce variance, or, in case you know the true solution or moments of it, by measuring the distance of the samples and possibly performing hypothesis testing.

@sourish-cmi
Copy link

Based on these logs I'm very certain that there is no problem with Turing, and in particular not with Bijectors (the problem discussed above is indeed fixed and does not occur anymore). I'm also very certain that the test failures are caused by the recent switch in Distributions from Random.GLOBAL_RNG to Random.default_rng() (which should be used instead nowadays) as the default RNG. IMO this switch was correctly included in a non-breaking release since not even Julia itself does not promise reproducibility of the default RNG across different (non-breaking) versions and architectures. So I would suggest changing your tests, e.g., by using StableRNG.jl if you want guaranteed reproducibility or by relaxing your tests, increasing the number of samples to reduce variance, or, in case you know the true solution or moments of it, by measuring the distance of the samples and possibly performing hypothesis testing.

okay thanks for your reply. We will do the same and we will keep you posted.

@yebai yebai changed the base branch from master to compathelper/new_version/2023-02-04-00-26-20-856-01200540089 March 2, 2023 21:52
@yebai yebai changed the base branch from compathelper/new_version/2023-02-04-00-26-20-856-01200540089 to master March 2, 2023 21:52
github-actions bot and others added 2 commits March 2, 2023 21:53
…at) (#1947)

* CompatHelper: bump compat for DynamicPPL to 0.22, (keep existing compat)

* CompatHelper: bump compat for DynamicPPL to 0.22 for package test, (keep existing compat) (#1949)

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>

* CompatHelper: bump compat for AdvancedVI to 0.2, (keep existing compat) (#1948)

* CompatHelper: bump compat for AdvancedVI to 0.2, (keep existing compat)

* Update TuringLang homepage url (#1954)

Updated broken links (turing.ml --> turinglang.org)

* CompatHelper: bump compat for MCMCChains to 6, (keep existing compat) (#1959)

* CompatHelper: bump compat for MCMCChains to 6, (keep existing compat)

* Update ad.jl

* CompatHelper: bump compat for MCMCChains to 6 for package test, (keep existing compat) (#1960)

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>

---------

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>
Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* CompatHelper: bump compat for AdvancedVI to 0.2 for package test, (keep existing compat) (#1950)

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>

---------

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>
Co-authored-by: jamesmaino <jamesmaino@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com>

---------

Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: jamesmaino <jamesmaino@users.noreply.github.com>
Co-authored-by: Hong Ge <3279477+yebai@users.noreply.github.com>
@yebai
Copy link
Member

yebai commented Mar 2, 2023

This PR likely requires some further changes to support Bijectors@v0.12. See, e.g. #1945

cc @torfjelde let's try to push this through as a priority.

@yebai
Copy link
Member

yebai commented Apr 25, 2023

Closed by #1979

@yebai yebai closed this Apr 25, 2023
@yebai yebai deleted the compathelper/new_version/2023-02-04-00-26-11-137-02020321216 branch April 25, 2023 05:24
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.

7 participants