Skip to content

CI: Show all compiler warnings and treat as error#1362

Merged
FFroehlich merged 8 commits intodevelopfrom
ci_werror
Dec 11, 2020
Merged

CI: Show all compiler warnings and treat as error#1362
FFroehlich merged 8 commits intodevelopfrom
ci_werror

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Dec 11, 2020

Closes #1167

... and pass NVectors as pointers to const where possible (as opposed to unintended const pointers to non-const before).

@dweindl dweindl changed the title CI: Show all compiler errors and treat as error CI: Show all compiler warnings and treat as error Dec 11, 2020
@dweindl dweindl linked an issue Dec 11, 2020 that may be closed by this pull request
@dweindl dweindl marked this pull request as ready for review December 11, 2020 15:33
@dweindl dweindl requested a review from FFroehlich December 11, 2020 15:33
@codecov
Copy link

codecov bot commented Dec 11, 2020

Codecov Report

Merging #1362 (56b4cf1) into develop (1acf739) will increase coverage by 0.01%.
The diff coverage is 71.71%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1362      +/-   ##
===========================================
+ Coverage    78.79%   78.80%   +0.01%     
===========================================
  Files           63       63              
  Lines         9928     9933       +5     
===========================================
+ Hits          7823     7828       +5     
  Misses        2105     2105              
Flag Coverage Δ
cpp 75.36% <71.71%> (+0.01%) ⬆️
petab 69.51% <ø> (ø)
python 68.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/amici/abstract_model.h 0.00% <ø> (ø)
include/amici/edata.h 0.00% <ø> (ø)
include/amici/model.h 66.66% <ø> (ø)
include/amici/model_dae.h 0.00% <ø> (ø)
include/amici/rdata.h 94.44% <ø> (ø)
include/amici/solver_cvodes.h 100.00% <ø> (ø)
include/amici/solver_idas.h 100.00% <ø> (ø)
include/amici/steadystateproblem.h 100.00% <ø> (ø)
include/amici/sundials_matrix_wrapper.h 80.00% <ø> (ø)
src/amici.cpp 79.81% <ø> (ø)
... and 20 more

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

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

👍

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 11, 2020

@FFroehlich FFroehlich merged commit 99b5f67 into develop Dec 11, 2020
@FFroehlich FFroehlich deleted the ci_werror branch December 11, 2020 19:32
@FFroehlich FFroehlich mentioned this pull request Dec 12, 2020
FFroehlich added a commit that referenced this pull request Dec 15, 2020
* Fix: Don't require code context for call stack (fixes #1347) (#1348)

* Fix Intel compiler warnings (#1349)

'type qualifier on return type is meaningless'

Closes #1346

* Avoid segfault in CVODES CVAdataStore (#1351)

Does not fix the root cause of occassional segfaults, but turns them into exceptions / integration failues.

* CI: Move windows tests from TravisCI to GitHub Actions (#1354)

Closes #1350

Removes obsolete .travis.yml

* Fix cxxcode import for SymPy 1.6 (#1356)

* Piecewise to heaviside (#1352)

* parse piecewise into heaviside functions

* Add Events as model quantity, parse Heavisides slightly differently

* bugfix

* rename symbols of root to h and switch order of functions to make sure h is known when dxdotdx_explicit is generated, to have the header file of h included

* rename root symbols to HeavisideFunction_ to have things more indicative

* tell AMICI about root, stau, and deltasx functions

* heavisides without sensitivities should be working

* need to change generation of stau to generration via inverse function theorem

* compute stau via inverse function theorem

* added functionality for deltasx, but segfaulting

* bugfixing

* remove debug output

* get indentations right

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/ode_export.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* Update python/amici/sbml_import.py

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* add a test for trajectories

* fix sroot and test

* cosmetic

* add analytical expressions for sensitivities

* add test for a complex condition

* add test for many conditions

* fix test

* improve documentation

* rename tests and refactor test for iterated piecewise, to check SBML piecewise logic a bit further

* cleanup for code review

* further cleanup

* quarter way done with parsing heavisides into piecewise

* fix logic parsing

* monkeypatch sympy printer

* enable more tests

* implement denesting of piecewise

* fix SBML nonsense

* fix boolean triggers

* simplify logic checks

* fix code smells

* add events to variable prototypes

* cleanup

* report details for skipped tests durin GHA run

* better skip printing

* resubstitution of non-optimized RHS into stau

* add sensitivity tests

* refactor tests

* remove skipping display code

* update test stats

* Update python/amici/ode_export.py

* Apply suggestions from code review

Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>

* document and simplify _collect_heaviside_roots

* address review comments

* reduce complexity

* misplaced docstrings

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>
Co-authored-by: dilpath <dilan.private+github@outlook.com>
Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>

* restore support for species references (#1358)

* restore support for species references

* fixup and improve error message

* extend support for sbml functions (#1357)

* add more function mappings

* fixup min/max

* fix rem

* add Mod to unsupported functions

* more trigonometric functions

* more functions, fix xref

* fix xref with init assignment

* extend unsupported functions

* fix plus with empty arguments, update statistics

* update test stats

* fix stats

* Refactor: introduce import_utils.py (#1361)

* Refactor: introduce import_utils.py

To collect format-independent functions for model import.

* add additional file to SBML Testsuite path check

* Include new module in doc

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* CI: Show all compiler warnings and treat as error (#1362)

* CI: Show all compiler errors and treat as error

Closes #1167

* Fix unused arguments

* Fix deprecated-copy

* Fix NVector (non-)const mess

* Fix CMake deprecation warning

* Fix doxygen

* Fix some typos

* Simplify / reduce number of const_casts

* Add support for different noise models for PySB import (#1360)

* Add support for different noise models for PySB import

.. as already the case for SBML import.

Closes #1176

* Respect noise model selection for PySB-PEtab import (#1339)

* doc, import

* Respect observable transformation for PySB-PEtab import (Fixes #1339)

* Set ODEModel._has_quadratic_nllh

Co-authored-by: Fabian Fröhlich <fabian@schaluck.com>

* version bump

* fix some code smells to trigger GHA builds again?

* update docker to 20.04

* pin breathe

Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>
Co-authored-by: Lorenzo Contento <lcontento@users.noreply.github.com>
Co-authored-by: Paul Stapor <paul.stapor@helmholtz-muenchen.de>
Co-authored-by: dilpath <dilan.private+github@outlook.com>
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.

Build AMICI with -Werror during CI runs

2 participants