Skip to content

Conversation

RasmusWL
Copy link
Member

I ended up needing this for some other work I'm doing, but thought it would be easier to handle in its own PR.

Although this is an improvement, we're still not handling __all__ perfectly, for example we don't model bar being part of __all__ in all_dynamic.py, don't handle flow through intermediate variable temp in all_dynamic2.py, and we don't support any sequence (only tuple/list).

I did not add a change note, since I wasn't sure whether we would want that or not for a change of this size. Let's discuss 😊

@RasmusWL RasmusWL requested a review from a team as a code owner March 31, 2021 15:33
yoff
yoff previously approved these changes Apr 6, 2021
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

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

I would rename all_dynamic2 to all_indirect as it does not feel dynamic in the same way as all_dynamic.

It might also be good to add a value starting with underscore to no_all if we at some point start testing what is actually in scope.

@yoff
Copy link
Contributor

yoff commented Apr 6, 2021

Not sure about the change note. It does change results, so should perhaps be there, but it is also a very small change..

@RasmusWL
Copy link
Member Author

RasmusWL commented Apr 6, 2021

I would rename all_dynamic2 to all_indirect as it does not feel dynamic in the same way as all_dynamic.

It might also be good to add a value starting with underscore to no_all if we at some point start testing what is actually in scope.

Sure, both good ideas 👍

@RasmusWL RasmusWL requested a review from yoff April 6, 2021 09:55
Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

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

Given how things went, performance-wise, the last time we messed with modules, I'd like to see a performance comparison even if this is a minor change.

Apart from that, this LGTM. 👍

@RasmusWL
Copy link
Member Author

RasmusWL commented Apr 6, 2021

Given how things went, performance-wise, the last time we messed with modules, I'd like to see a performance comparison even if this is a minor change.

Sure, running performance test in https://github.com/dsp-testing/RasmusWL-dca/issues/15

@yoff
Copy link
Contributor

yoff commented Apr 6, 2021

I am still learning to read the performance test reports. It basically looks good timing-wise, but there are a lot of runs with error status?

@tausbn
Copy link
Contributor

tausbn commented Apr 6, 2021

I am still learning to read the performance test reports. It basically looks good timing-wise, but there are a lot of runs with error status?

I believe this may be due to non-fatal extractor errors being classified somewhat more severely than necessary.

@RasmusWL
Copy link
Member Author

RasmusWL commented Apr 8, 2021

Since I didn't really get clarity from asking internally whether this deserves a change-note or not, I'm going to suggest we don't add one for now (to not bloat the final change-notes for next release).

Performance test is also done, or rather it got stuck, but I think results looks very reasonable, so I don't think there a need to rerun the entire performance test just to get more runs against salt

@RasmusWL RasmusWL added the no-change-note-required This PR does not need a change note label Apr 8, 2021
@RasmusWL RasmusWL requested a review from tausbn April 8, 2021 09:28
@tausbn
Copy link
Contributor

tausbn commented Apr 8, 2021

Since I didn't really get clarity from asking internally whether this deserves a change-note or not, I'm going to suggest we don't add one for now (to not bloat the final change-notes for next release).

Sounds reasonable. 👍

Performance test is also done, or rather it got stuck, but I think results looks very reasonable, so I don't think there a need to rerun the entire performance test just to get more runs against salt

I'm still puzzled why some projects appear to be significantly faster with this change (which should only result in more computation), but I guess the main idea was to show that it didn't blow up outright, so I think this is safe.

Incidentally, it seems the performance test only ran a single query (py/path-injection). For more confidence, we should probably run the entire Code Scanning suite going forward.

@tausbn tausbn merged commit cf5f760 into github:main Apr 8, 2021
@RasmusWL
Copy link
Member Author

RasmusWL commented Apr 8, 2021

Incidentally, it seems the performance test only ran a single query (py/path-injection). For more confidence, we should probably run the entire Code Scanning suite going forward.

wow, that was unexpected. good catch 👍 🕵️ I updated my local configuration to use the full code scanning suite by default now 👍

@RasmusWL RasmusWL deleted the all-tuple branch April 8, 2021 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants