Skip to content

CI: adding cython coverage #43660

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

Closed
wants to merge 17 commits into from
Closed

Conversation

debnathshoham
Copy link
Member

Trying to include cython codes in codecov reports.
Working with the CI for the first time.

@debnathshoham debnathshoham marked this pull request as draft September 19, 2021 17:54
@@ -0,0 +1,2 @@
[run]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this go in the coverage section of setup.cfg?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried that in another repo. it has it be in .coveragerc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, if this file is re-introduced, then probably should move the coverage stuff currently in setup.cfg (which currently includes this Cython.Coverage line)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried that in another repo. it has it be in .coveragerc

Are you sure? I just did a test run locally after building using --with-cython-coverage and it seemed to work fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right. my bad!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great can you move to setup.cfg then?

ci/setup_env.sh Outdated
@@ -103,7 +103,7 @@ conda list pandas
# Make sure any error below is reported as such

echo "[Build extensions]"
python setup.py build_ext -q -j2
python setup.py build_ext -q -j2 --with-cython-coverage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im pretty sure we dont want this on every build, since it slows things down a lot.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense.. would you know why the build is failing though?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pandas/_libs/algos.c: In function ‘__pyx_fuse_0__pyx_f_6pandas_5_libs_5algos_rank_sorted_1d.isra.0.constprop’:
pandas/_libs/algos.c:1023:34: error: ‘__pyx_gilstate_save’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
1023 | #define __Pyx_PyGILState_Release PyGILState_Release
| ^~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:73649:20: note: ‘__pyx_gilstate_save’ was declared here
73649 | PyGILState_STATE __pyx_gilstate_save;

@jreback jreback added the CI Continuous Integration label Sep 21, 2021
@@ -0,0 +1,84 @@
name: Python build with Cython
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm we need another build? can you do it in an existing one

@alimcmaster1
Copy link
Member

@debnathshoham - do you still want to work on this? See comments above - H2H if needed

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Nov 12, 2021
@jreback
Copy link
Contributor

jreback commented Jan 16, 2022

closing as stale

@jreback jreback closed this Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: codecov for pyx files
4 participants