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

[COST-4670] Enable copy-on-write in Pandas #4980

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

samdoran
Copy link
Contributor

Jira Ticket

COST-4670

Description

Enable copy-on-write in pandas. This should result in better memory usage and more predictable performance.

Testing

  1. Deploy koku
  2. Run tests and monitor memory usage

Notes

If this change has no negative impact, we should enable it now.

@samdoran samdoran added the smoke-tests pr_check will build the image and run minimal required smokes label Mar 18, 2024
@samdoran samdoran requested review from a team as code owners March 18, 2024 17:12
@samdoran samdoran changed the title [COST-4670] Enable copy on write in Pandas [COST-4670] Enable copy-on-write in Pandas Mar 18, 2024
@lcouzens
Copy link
Contributor

Right now this is likely a QE testing effort to evaluate the impact of any Memory improvements/degradations PRIOR to this being merged. Lets give QE time to test this and if they are satisfied they can be the ones to approve this PR for it to be merged.

@samdoran
Copy link
Contributor Author

/retest

@esebesto esebesto added full-run-smoke-tests pr_check will build the image and run all smoke tests and removed smoke-tests pr_check will build the image and run minimal required smokes labels Mar 26, 2024
@esebesto
Copy link
Contributor

/retest

2 similar comments
@esebesto
Copy link
Contributor

/retest

@esebesto
Copy link
Contributor

/retest

@samdoran samdoran force-pushed the COST-4670/pandas-cow branch 2 times, most recently from f3d043d to f6e8a4d Compare March 28, 2024 15:56
@esebesto
Copy link
Contributor

esebesto commented Apr 5, 2024

/retest

@samdoran
Copy link
Contributor Author

samdoran commented Apr 8, 2024

Tests are failing with ChainedAssignmentError when running test_api_ocp_on_gcp_source_raw_calc and test_api_gcp_hcs_report_content. This is expected when copy-on-write is enabled.

Need to identify where we are doing chained assignments and update the code.

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.1%. Comparing base (f6e7ebb) to head (303126c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #4980     +/-   ##
=======================================
- Coverage   94.1%   94.1%   -0.0%     
=======================================
  Files        377     377             
  Lines      31375   31375             
  Branches    3724    3724             
=======================================
- Hits       29532   29529      -3     
- Misses      1173    1176      +3     
  Partials     670     670             

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-run-smoke-tests pr_check will build the image and run all smoke tests smokes-required
Projects
None yet
3 participants