Skip to content
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

Update setup actions and get working on 3.12 #541

Merged
merged 3 commits into from
Dec 29, 2023
Merged

Conversation

MilesCranmer
Copy link
Collaborator

@MilesCranmer MilesCranmer commented Nov 5, 2023

This PR tries to fix the CI setting issues in #538, #539, #540. Those PRs can then set this branch to their base.

It also merges the Python 3.12 fix from #538.

Copy link

codecov bot commented Nov 5, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (69b734f) 85.22% compared to head (6f0c187) 85.10%.

Files Patch % Lines
src/julia/core.py 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #541      +/-   ##
==========================================
- Coverage   85.22%   85.10%   -0.13%     
==========================================
  Files          39       39              
  Lines        2342     2349       +7     
==========================================
+ Hits         1996     1999       +3     
- Misses        346      350       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MilesCranmer
Copy link
Collaborator Author

@mkitti @Moelf any idea what this error is from? I haven't seen it before in the CI.

ERROR: Unable to dlopen(cxxpath) in parent!
Message: /lib/x86_64-linux-gnu/libstdc++.so.6��: cannot open shared object file: No such file or directory

does it require a specific additional library installed?

I wonder if it's related to that issue we debugged a while back in PyCall.jl: JuliaPy/PyCall.jl#1040

@Moelf
Copy link

Moelf commented Nov 5, 2023

is it possible it's related to Github updated Ubuntu base version and we need to install one more library from apt? But I don't understand why other Python and Julia combo don't error

@mkitti
Copy link
Member

mkitti commented Nov 6, 2023

We should add Julia 1.9 tests. I would be in favor of dropping everything else except Julia 1.6 since it is LTS.

Julia 1.4, Julia 1.7, and Julia 1.8 are no longer supported.

* Fix importlib deprecated API

* Test Python 3.12

* Test Julia 1.9

* Fix semantics of exec_module vs create_module

* Ensure we can find spec from JuliaModule

* Bump version with python 3.12 compat

* Declare compat for 3.11 and 3.12
@MilesCranmer

This comment was marked as outdated.

@MilesCranmer
Copy link
Collaborator Author

MilesCranmer commented Dec 29, 2023

I've updated the CI to only test Julia 1.6, 1.9, and 1 (=1.10 currently).

It looks like that libstdc++ issue was some unrelated issue with the action runner, rather than the environment being set up incorrectly. It is now working without any changes on my part.

The remaining issue is a randomly-occurring "error 245" which apparently is a segfault. But this doesn't appear to be caused by any of the changes in this PR so I suggest we temporarily ignore it and merge (sometimes such segfaults are due to weird memory management on GitHub actions), so that we can have a working Python 3.12 version.

Is that okay with you @mkitti? I am unable to merge as I don't have the access rights (since it marks some tests as "Required" even though they aren't ran anymore). So once you are satisfied would it be possible for you to merge?

@MilesCranmer MilesCranmer changed the title Update setup actions Update setup actions and get working on 3.12 Dec 29, 2023
@mkitti
Copy link
Member

mkitti commented Dec 29, 2023

This does look better. Let me re-run that one Ubuntu test.

@mkitti mkitti merged commit 28af425 into master Dec 29, 2023
43 of 48 checks passed
@mkitti mkitti deleted the fix-ci-settings branch December 29, 2023 16:55
@MilesCranmer
Copy link
Collaborator Author

Awesome, thanks!

@MilesCranmer
Copy link
Collaborator Author

How do we release the version? I see there is an action with a workflow_dispatch... Do I just trigger that?

@MilesCranmer
Copy link
Collaborator Author

Oh wait I think I figured it out. Let me try...

MilesCranmer added a commit that referenced this pull request Dec 30, 2023
Squashed commit of the following:

commit 12cba08
Merge: 28af425 ce3ac83
Author: Miles Cranmer <[email protected]>
Date:   Sat Dec 30 02:23:21 2023 +0000

    Merge pull request #544 from JuliaPy/update-to-0.6.2

    Bump to 0.6.2 with Python 3.12 fix

commit ce3ac83
Author: MilesCranmer <[email protected]>
Date:   Sat Dec 30 02:03:45 2023 +0000

    Bump to 0.6.2 with Python 3.12 fix

commit 28af425
Author: Miles Cranmer <[email protected]>
Date:   Fri Dec 29 16:55:50 2023 +0000

    Update setup actions and get working on 3.12 (#541)

    * Update setup actions

    * Fix PyJulia on Python 3.12 (#538)

    * Fix importlib deprecated API

    * Test Python 3.12

    * Test Julia 1.9

    * Fix semantics of exec_module vs create_module

    * Ensure we can find spec from JuliaModule

    * Bump version with python 3.12 compat

    * Declare compat for 3.11 and 3.12

    * Only test 1.6, 1.9, 1
MilesCranmer added a commit that referenced this pull request Dec 30, 2023
Squashed commit of the following:

commit 18589bb
Author: MilesCranmer <[email protected]>
Date:   Sat Dec 30 02:25:30 2023 +0000

    Bump to 0.6.2

    Squashed commit of the following:

    commit 12cba08
    Merge: 28af425 ce3ac83
    Author: Miles Cranmer <[email protected]>
    Date:   Sat Dec 30 02:23:21 2023 +0000

        Merge pull request #544 from JuliaPy/update-to-0.6.2

        Bump to 0.6.2 with Python 3.12 fix

    commit ce3ac83
    Author: MilesCranmer <[email protected]>
    Date:   Sat Dec 30 02:03:45 2023 +0000

        Bump to 0.6.2 with Python 3.12 fix

    commit 28af425
    Author: Miles Cranmer <[email protected]>
    Date:   Fri Dec 29 16:55:50 2023 +0000

        Update setup actions and get working on 3.12 (#541)

        * Update setup actions

        * Fix PyJulia on Python 3.12 (#538)

        * Fix importlib deprecated API

        * Test Python 3.12

        * Test Julia 1.9

        * Fix semantics of exec_module vs create_module

        * Ensure we can find spec from JuliaModule

        * Bump version with python 3.12 compat

        * Declare compat for 3.11 and 3.12

        * Only test 1.6, 1.9, 1
MilesCranmer added a commit that referenced this pull request Dec 30, 2023
commit 57d6b6a
Author: MilesCranmer <[email protected]>
Date:   Sat Dec 30 02:45:53 2023 +0000

    Ensure setuptools installed in test

commit 18589bb
Author: MilesCranmer <[email protected]>
Date:   Sat Dec 30 02:25:30 2023 +0000

    Bump to 0.6.2

    Squashed commit of the following:

    commit 12cba08
    Merge: 28af425 ce3ac83
    Author: Miles Cranmer <[email protected]>
    Date:   Sat Dec 30 02:23:21 2023 +0000

        Merge pull request #544 from JuliaPy/update-to-0.6.2

        Bump to 0.6.2 with Python 3.12 fix

    commit ce3ac83
    Author: MilesCranmer <[email protected]>
    Date:   Sat Dec 30 02:03:45 2023 +0000

        Bump to 0.6.2 with Python 3.12 fix

    commit 28af425
    Author: Miles Cranmer <[email protected]>
    Date:   Fri Dec 29 16:55:50 2023 +0000

        Update setup actions and get working on 3.12 (#541)

        * Update setup actions

        * Fix PyJulia on Python 3.12 (#538)

        * Fix importlib deprecated API

        * Test Python 3.12

        * Test Julia 1.9

        * Fix semantics of exec_module vs create_module

        * Ensure we can find spec from JuliaModule

        * Bump version with python 3.12 compat

        * Declare compat for 3.11 and 3.12

        * Only test 1.6, 1.9, 1
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.

3 participants