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

robustify the debug and error reports #2495

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

quentin
Copy link
Member

@quentin quentin commented Jun 20, 2024

Robustify the generation of debug and error reports.

Updated the CI to enable debug reporting on all tests for the linux + coverage build.

Added build option SOUFFLE_TEST_DEBUG_REPORT=ON|OFF (OFF by default), that enables debug reporting on all tests.

The type-analysis debug report used to crash on various assertions
because it assumed a well-typed program. However the first type-analysis
runs before the semantics checker, hence the program may be ill-typed at
that time.

With this change the type-analysis debug report printer makes no
assumptions about the expected types, instead it prints the infered
types.
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 97.95918% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.09%. Comparing base (99399f3) to head (6d7a3bb).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2495      +/-   ##
==========================================
+ Coverage   77.49%   81.09%   +3.60%     
==========================================
  Files         492      492              
  Lines       30934    30908      -26     
==========================================
+ Hits        23972    25066    +1094     
+ Misses       6962     5842    -1120     
Files Coverage Δ
src/ast/analysis/typesystem/Type.cpp 96.45% <100.00%> (+47.17%) ⬆️
src/ast/analysis/typesystem/Type.h 100.00% <100.00%> (+50.00%) ⬆️
src/ast/analysis/typesystem/TypeSystem.h 92.26% <100.00%> (+5.11%) ⬆️
src/ast/transform/TypeChecker.cpp 87.96% <100.00%> (ø)
src/parser/SrcLocation.h 100.00% <ø> (ø)
src/reports/ErrorReport.h 98.76% <100.00%> (ø)
src/parser/SrcLocation.cpp 91.76% <75.00%> (-0.83%) ⬇️

... and 137 files with indirect coverage changes

@quentin quentin requested a review from julienhenry June 20, 2024 13:03
@quentin quentin merged commit 49f511d into souffle-lang:master Jun 26, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants