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

Reduce integration tests memory usage #3864

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

danielrbradley
Copy link
Member

@danielrbradley danielrbradley commented Jan 16, 2025

  • Only load json files into memory once for all tests.
  • Don't run upgrade tests in parallel as they're pretty fast but do start sub-processes.

Before: ~5.8gb peek memory and took 181.616s
After: ~2.6gb peek memory and took 203.108s

@danielrbradley danielrbradley self-assigned this Jan 16, 2025
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

- Only load json files into memory once for all tests.
- Don't run upgrade tests in parallel as they're pretty fast but do start sub-processes.

Before: ~5.8gb peek memory and took 181.616s
After: ~1.5gb peek memory and took 203.108s
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.12%. Comparing base (7694636) to head (8db000f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3864   +/-   ##
=======================================
  Coverage   57.11%   57.12%           
=======================================
  Files          79       79           
  Lines       12407    12407           
=======================================
+ Hits         7086     7087    +1     
+ Misses       4794     4793    -1     
  Partials      527      527           

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

@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v2.83.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants