Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

fix issue 21712 - [REG 2.096.0] sometimes coverage *.lst files are corrupted #3395

Merged
merged 1 commit into from Mar 16, 2021
Merged

fix issue 21712 - [REG 2.096.0] sometimes coverage *.lst files are corrupted #3395

merged 1 commit into from Mar 16, 2021

Conversation

ghost
Copy link

@ghost ghost commented Mar 14, 2021

dont use the same buffer to read+split the LST and read+split the D. (reg introduced in #3341)

@ghost ghost requested review from andralex and wilzbach as code owners March 14, 2021 14:56
@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @tungstenheart! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
21712 regression [REG 2.096.0] sometimes coverage *.lst files are corrupted

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + druntime#3395"

@dlang-bot dlang-bot added the Bug Fix Include reference to corresponding bugzilla issue label Mar 14, 2021
@thewilsonator
Copy link
Contributor

Is there a test case for this regression?

@ghost
Copy link
Author

ghost commented Mar 15, 2021

Sorry but no. So far the bug is only observed in relatively big projects (>=10K) and each time I tried to isolate an affected module so problem went away. For example core/internal/execinfo.d is affected but if I copy the file, add a main to activate dmd_merge_coverage and run it twice, then the lst looks ok.

However note that the codecov upload for this PR does not contain any corrupted lst and also that the coverage for the all project increases by 2%, which is quie a sign that the fix is good (just like the decrease by 3% causes by #3341 was a sign that something was wrong).

@thewilsonator
Copy link
Contributor

please force push to restart CI

…rrupted

dont use the same buffer to read+split the LST and read+split the D
@dlang-bot dlang-bot merged commit 84dbd58 into dlang:stable Mar 16, 2021
@ghost ghost deleted the issue-21712 branch March 16, 2021 10:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Fix Include reference to corresponding bugzilla issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants