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

1098 Enable assertions during CI when release builds are used #1107

Merged
merged 5 commits into from
Oct 13, 2020

Conversation

JacobDomagala
Copy link
Contributor

@JacobDomagala JacobDomagala commented Oct 12, 2020

Added new flag vt_ci_build to distinguish CI build from normal one. By default this only affects CI runs, meaning that if VT is built in Release mode locally (via docker containter or cmake) this will still have production flag set on.

Also, I think having the option to check for build type in the code can be useful in future (i.e. for unit tests we might want different behaviour in CI and different locally). So now you can check for CI build using vt_check_enabled(ci_build)

Fixes #1098

@codecov
Copy link

codecov bot commented Oct 12, 2020

Codecov Report

Merging #1107 into develop will decrease coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1107      +/-   ##
===========================================
- Coverage    76.43%   76.25%   -0.19%     
===========================================
  Files          698      702       +4     
  Lines        26475    26540      +65     
===========================================
+ Hits         20237    20238       +1     
- Misses        6238     6302      +64     
Impacted Files Coverage Δ
.../vt/vrt/collection/balance/stats_restart_reader.cc 82.55% <0.00%> (-0.56%) ⬇️
src/vt/utils/memory/memory_usage.cc 74.48% <0.00%> (-0.39%) ⬇️
src/vt/runtime/runtime_banner.cc 60.91% <0.00%> (-0.09%) ⬇️
src/vt/configs/error/error.impl.h 0.00% <0.00%> (ø)
src/vt/configs/error/soft_error.h 0.00% <0.00%> (ø)
src/vt/configs/error/assert_out_info.impl.h 0.00% <0.00%> (ø)
src/vt/configs/error/keyval_printer.impl.h 0.00% <0.00%> (ø)
src/vt/configs/error/assert_out.impl.h 0.00% <0.00%> (ø)
tests/unit/runtime/test_mpi_access_guards.cc 96.42% <0.00%> (+3.83%) ⬆️

@JacobDomagala JacobDomagala force-pushed the 1098-enable-assertions-during-ci branch from 8fb1744 to 6f728ea Compare October 12, 2020 17:46
@JacobDomagala JacobDomagala marked this pull request as ready for review October 12, 2020 20:33
…flows.ini files so it's properly added during workflow generation
@lifflander lifflander self-requested a review October 13, 2020 01:50
Copy link
Collaborator

@lifflander lifflander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! :)

Copy link
Contributor

@jstrzebonski jstrzebonski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be OK.

@JacobDomagala JacobDomagala merged commit 3271825 into develop Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable assertions during CI when release builds are used
5 participants