Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ci add codeql#23812

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 3 commits intomatplotlib:mainfromtacaswell:ci_add_codeql
Nov 30, 2022
Merged

Ci add codeql#23812

tacaswell merged 3 commits intomatplotlib:mainfromtacaswell:ci_add_codeql
Nov 30, 2022

Conversation

@tacaswell
Copy link
Member

PR Summary

replaces#22446

@tacaswelltacaswell added this to thev3.7.0 milestoneSep 6, 2022
@tacaswelltacaswell mentioned this pull requestSep 6, 2022
@tacaswell
Copy link
MemberAuthor

I will squash this down once it is working.

@tacaswell
Copy link
MemberAuthor

I tried manually dismissing all of the warnings fromexten/ orbuild/, lets see if that reduces the noise?

I'm a bit unclearwhere that state lives though.

Copy link
Member

@oscargusoscargus left a comment

Choose a reason for hiding this comment

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

I think this looks good! Probably we still want someone more experienced than me to say something more insightful... (I am primarily experienced in browsing static code checking results, not setting them up...)

@tacaswell
Copy link
MemberAuthor

I would also like feedback from@QuLogic or@anntzer about the c++ changes to deal with the overflows (I did it two ways, is one better than the other? Is it important to be consistent here? should we have just pushed everything to bigger types?).

@anntzer
Copy link
Contributor

anntzer commentedSep 7, 2022
edited
Loading

It would probably be better to be consistent and use ssize_t everywhere, but let's not lose sleep over that for now.

Also, AFAICT the whole to_string_argb is completely unused (and can be easily implemented with numpy, it's the similar to one-line byteorder swap in cbook._premultiplied_argb32_to_unmultiplied_rgba8888 without the extra alpha handling), so I would just deprecate it together with the Python-level wrappers.

@tacaswell
Copy link
MemberAuthor

Back to draft because the build does not work again...

inlinesize_tnum_paths()const
{
return m_meshWidth * m_meshHeight;
return(size_t)m_meshWidth * m_meshHeight;
Copy link
Contributor

Choose a reason for hiding this comment

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

py_adaptors.h defines num_paths as Py_ssize_t, perhaps better for consistency, though anything will work, of course.

@anntzer
Copy link
Contributor

Nearly all the changes just hit the now deprecated to_string{,_argb}; just left an additional point re: signedness of num_paths, though it's not a big deal either way.

@QuLogic
Copy link
Member

OK, this is now passing, though I will likely want to clean up the YAML. The JavaScript analysis takes ~6m; the C++/Python one takes ~17m. I think I can split C++/Python back up again now that it's working so that it'll finish quicker. Hopefully we don't end up with too many workflows running in parallel.

@QuLogicQuLogicforce-pushed theci_add_codeql branch 4 times, most recently frome3e83db to7430026CompareNovember 26, 2022 06:26
Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
tacaswelland others added2 commitsNovember 26, 2022 02:43
If you only do a build step (i.e., `python setup.py build`), it does notgo through all the build dependency machinery, and then mysteriouslysays it 'cannot download' a URL, but really it's a missing dependency.
@QuLogic
Copy link
Member

I squashed down everything, removed the C++ change and confirmed that CodeQL is still warning about it, so I've now added it back in along with a more explicit message about why the build broke earlier.

@QuLogicQuLogic marked this pull request as ready for reviewNovember 26, 2022 08:16
@tacaswell
Copy link
MemberAuthor

This is my PR so I can not approve it, but 👍🏻 from me.

Do we want to standardize the c++ any more or not worry about that right now?

@QuLogic
Copy link
Member

I think since they're deprecated, it's fine to leave them slightly inconsistent since they'll be deleted.

@tacaswelltacaswell merged commit8f0003a intomatplotlib:mainNov 30, 2022
@tacaswelltacaswell deleted the ci_add_codeql branchNovember 30, 2022 21:01
@QuLogicQuLogic added the CI: testingCI configuration and testing labelDec 8, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@anntzeranntzeranntzer left review comments

@oscargusoscargusoscargus approved these changes

Assignees

No one assigned

Labels

CI: testingCI configuration and testing

Projects

None yet

Milestone

v3.7.0

Development

Successfully merging this pull request may close these issues.

4 participants

@tacaswell@anntzer@QuLogic@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp