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

Change cleanup logic in ebpf_tracing.cmd #2412

Merged
merged 23 commits into from
May 2, 2023

Conversation

gtrevi
Copy link
Collaborator

@gtrevi gtrevi commented Apr 30, 2023

Description

This PR updates the \committed folder cleanup logic, to a more intuitive "overall size" evaluation.

The logic now evaluates the overall size of the committed folder and cleans up older files overflowing what specified in the max_committed_folder_size_mb parameter.

The default value of max_committed_folder_size_mb is set to 200, taking into account an overall target size of 30Mb for a full zip of the folder contents, with an average compression ratio of 8.5 of the original files in the folder.

Testing

Local 12+h testing

Documentation

n.a.

@codecov
Copy link

codecov bot commented Apr 30, 2023

Codecov Report

Merging #2412 (903f6a6) into main (20ce8bf) will increase coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2412      +/-   ##
==========================================
+ Coverage   84.09%   84.18%   +0.08%     
==========================================
  Files         154      154              
  Lines       28774    28774              
==========================================
+ Hits        24197    24222      +25     
+ Misses       4577     4552      -25     

see 8 files with indirect coverage changes

@gtrevi gtrevi added this pull request to the merge queue May 2, 2023
Merged via the queue into microsoft:main with commit ccc99b2 May 2, 2023
65 checks passed
@gtrevi gtrevi deleted the gtrevi/trace-script-update branch May 2, 2023 01:17
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.

None yet

3 participants