Skip to content

[Tools] Remove runtime asserts - #19045

Open
vkucera wants to merge 1 commit into
AliceO2Group:masterfrom
vkucera:assert-Tools
Open

vkucera wants to merge 1 commit into
AliceO2Group:masterfrom
vkucera:assert-Tools

Conversation

@vkucera

@vkucera vkucera commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions Bot added the tools label Dec 1, 2026
@github-actions github-actions Bot changed the title Remove runtime asserts [Tools] Remove runtime asserts Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 4 warnings, 🔕 0 disabled

@vkucera
vkucera marked this pull request as ready for review December 1, 2026 22:43
@alibuild

alibuild commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 6f1cab5 at 2026-12-02 00:23:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 1 errors and 19 warnings.'
Found 1 errors and 19 warnings.
++ [[ 1 -gt 0 ]]
++ cat /sw/BUILD/01508b3a7db0a219671f069b31b55fe2d1cb930e/O2Physics-code-check/errors.txt
Tools/PIDML/pidOnnxModel.h:65:6: error: function 'readJsonFile' is not needed and will not be emitted [clang-diagnostic-unneeded-internal-declaration,-warnings-as-errors]
++ [[ 19 -gt 0 ]]
++ cat /sw/BUILD/01508b3a7db0a219671f069b31b55fe2d1cb930e/O2Physics-code-check/warnings.txt
Tools/ML/model.cxx:37:1: warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
Tools/ML/model.cxx:49:49: warning: statement should be inside braces [readability-braces-around-statements]
Tools/ML/model.cxx:59:47: warning: use nullptr [modernize-use-nullptr]
Tools/ML/model.h:36:1: warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
Tools/ML/model.h:230:14: warning: use std::make_shared instead [modernize-make-shared]
Tools/ML/model.h:239:3: warning: function 'getNumInputNodes' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/ML/model.h:240:3: warning: function 'getInputShapes' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/ML/model.h:241:3: warning: function 'getNumOutputNodes' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/ML/model.h:242:3: warning: function 'getOutputShapes' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/ML/model.h:243:3: warning: function 'getValidityFrom' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/ML/model.h:244:3: warning: function 'getValidityUntil' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/ML/model.h:273:3: warning: function 'inferInputShape' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tools/PIDML/pidOnnxModel.h:73:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tools/PIDML/pidOnnxModel.h:74:36: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
Tools/PIDML/pidOnnxModel.h:86:70: warning: 'data' should be used for accessing the data pointer instead of taking the address of the 0-th element [readability-container-data-pointer]
Tools/PIDML/pidOnnxModel.h:99:14: warning: use std::make_shared instead [modernize-make-shared]
Tools/PIDML/pidOnnxModel.h:298:13: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
Tools/PIDML/pidOnnxModel.h:304:12: warning: implicit conversion 'bool' -> 'float' [readability-implicit-bool-conversion]
Tools/PIDML/pidOnnxModel.h:311:46: warning: statement should be inside braces [readability-braces-around-statements]
++ [[ 1 -gt 0 ]]
++ exit 1
--

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants