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

Tolerance for missing files #218

Merged
merged 8 commits into from
Feb 20, 2025
Merged

Tolerance for missing files #218

merged 8 commits into from
Feb 20, 2025

Conversation

jaredpar
Copy link
Owner

This changes compiler logs to be more tolerant of missing disk artifacts. The old strategy was to simply error and bail out when artifacts were missing on disk. This was designed primarily to make sure customers weren't creating and submitting stale binary logs.

Diagnostics around potentially stale logs are valuable but it was too agressive. It meant that the tooling couldn't represent Compilations with those types of errors. For example: instead of creating a Compilation where emit fails because of a missing key file the tooling just could not create a Compilation at all.

This change is pushing the tooling to be tolerant of the missing artifacts while preserving the stale diagnostics in complog create.

closes #217

This changes compiler logs to be more tolerant of missing disk
artifacts. The old strategy was to simply error and bail out when
artifacts were missing on disk. This was designed primarily to make sure
customers weren't creating and submitting _stale_ binary logs.

Diagnostics around potentially _stale_ logs are valuable but it was too
agressive. It meant that the tooling couldn't represent `Compilations`
with those types of errors. For example: instead of creating a
`Compilation` where emit fails because of a missing key file the tooling
just could not create a `Compilation` at all.

This change is pushing the tooling to be tolerant of the missing
artifacts while preserving the _stale_ diagnostics in `complog create`.
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 96.22642% with 8 lines in your changes missing coverage. Please review.

Project coverage is 96.81%. Comparing base (2800624) to head (2712d7b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Basic.CompilerLog.Util/ExportUtil.cs 76.47% 3 Missing and 1 partial ⚠️
src/Basic.CompilerLog.Util/CompilationData.cs 92.30% 0 Missing and 2 partials ⚠️
src/Basic.CompilerLog.Util/CompilerLogReader.cs 97.82% 0 Missing and 1 partial ⚠️
...c.CompilerLog.Util/Impl/BasicAdditionalTextFile.cs 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #218      +/-   ##
==========================================
- Coverage   96.91%   96.81%   -0.10%     
==========================================
  Files          47       47              
  Lines        5147     5268     +121     
  Branches      533      553      +20     
==========================================
+ Hits         4988     5100     +112     
- Misses         86       91       +5     
- Partials       73       77       +4     

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

@jaredpar jaredpar merged commit 93a36f0 into main Feb 20, 2025
4 of 6 checks passed
@jaredpar jaredpar deleted the bug branch February 20, 2025 17:54
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.

Respect Roslyn's file existence behavior for additionalfiles
1 participant