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

ci: Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) #19188

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Oct 11, 2024

This reverts commit 48bc09b to fix the Python docs build.

IIUC the commit replaces everything in the pl namespace with a dummy function, and I'm guessing sphinx, or some other package in the Python docs build process does some forking. Then sphinx complains with AttributeError: 'function' object has no attribute '__arrow_c_stream__' (the 'function' object being the dummy function).

… in a fork()-without-execve() child (pola-rs#19149)"

This reverts commit 48bc09b.
@nameexhaustion nameexhaustion changed the title Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) ci: Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) Oct 11, 2024
@github-actions github-actions bot added title needs formatting internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels Oct 11, 2024
@nameexhaustion nameexhaustion changed the title ci: Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) ci: Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) Oct 11, 2024
@nameexhaustion nameexhaustion changed the title ci: Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) ci: Revert "feat(python): Raise an error when users try to use Polars API in a fork()-without-execve() child (#19149) Oct 11, 2024
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.65%. Comparing base (194b31e) to head (fc2ee20).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #19188   +/-   ##
=======================================
  Coverage   79.65%   79.65%           
=======================================
  Files        1531     1531           
  Lines      208937   208925   -12     
  Branches     2418     2415    -3     
=======================================
- Hits       166421   166417    -4     
+ Misses      41969    41962    -7     
+ Partials      547      546    -1     

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

@nameexhaustion
Copy link
Collaborator Author

cc @itamarst

@ritchie46
Copy link
Member

Alright. Let's revert for now, it seems like tricky business.

@ritchie46 ritchie46 merged commit 71bcd22 into pola-rs:main Oct 11, 2024
16 of 18 checks passed
@itamarst
Copy link
Contributor

Another approach would be a warning on fork, the way Jax does it. It's not as thorough and people can not notice warnings, but it's something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants