Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Deserialize the coverage files directly into the output files#3410

Merged
chkeita merged 8 commits into
microsoft:mainfrom
chkeita:bug_fix
Aug 15, 2023
Merged

Deserialize the coverage files directly into the output files#3410
chkeita merged 8 commits into
microsoft:mainfrom
chkeita:bug_fix

Conversation

@chkeita

@chkeita chkeita commented Aug 11, 2023

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

The Coverage file was loading the output of the coverage in memory before writing it to the output file.
This could cause an increase in memory consumption. This change updates the logic to serialize the output directly in the output file without loading it in the memory.

closes #3420

@codecov-commenter

codecov-commenter commented Aug 11, 2023

Copy link
Copy Markdown

Codecov Report

Merging #3410 (8a3e857) into main (9c4bc3e) will decrease coverage by 0.05%.
The diff coverage is 19.23%.

@@            Coverage Diff             @@
##             main    #3410      +/-   ##
==========================================
- Coverage   34.24%   34.20%   -0.05%     
==========================================
  Files         297      297              
  Lines       36365    36406      +41     
==========================================
- Hits        12453    12452       -1     
- Misses      23912    23954      +42     
Files Changed Coverage Δ
...c/agent/onefuzz-file-format/src/coverage/binary.rs 66.66% <0.00%> (ø)
...gent/onefuzz-file-format/src/coverage/binary/v1.rs 51.85% <0.00%> (ø)
...c/agent/onefuzz-file-format/src/coverage/source.rs 66.66% <0.00%> (ø)
...gent/onefuzz-file-format/src/coverage/source/v1.rs 53.65% <0.00%> (ø)
...c/agent/onefuzz-task/src/tasks/coverage/generic.rs 0.00% <0.00%> (ø)
src/agent/cobertura/src/lib.rs 80.12% <77.27%> (-2.11%) ⬇️
src/agent/coverage/src/cobertura.rs 100.00% <100.00%> (ø)
src/agent/coverage/src/source.rs 91.57% <100.00%> (-0.09%) ⬇️

@chkeita chkeita marked this pull request as draft August 11, 2023 00:10
@chkeita chkeita requested a review from Porges August 14, 2023 23:19
@chkeita chkeita marked this pull request as ready for review August 14, 2023 23:19
Comment thread src/agent/onefuzz-task/src/tasks/coverage/generic.rs
Comment thread src/agent/onefuzz-task/src/tasks/coverage/generic.rs
Comment thread src/agent/onefuzz-task/src/tasks/coverage/generic.rs Outdated
@chkeita chkeita linked an issue Aug 15, 2023 that may be closed by this pull request
@chkeita chkeita merged commit 9420f51 into microsoft:main Aug 15, 2023
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deserialize the coverage files directly into the output files

3 participants