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

Update docker image, reduce binary sizes, and fix tests #335

Merged
merged 10 commits into from
Dec 14, 2024
Merged

Conversation

PatrickKa
Copy link
Contributor

@PatrickKa PatrickKa commented Dec 14, 2024

The new Docker image is what allows us to significantly reduce the binary sizes and use the right flags for the four typical configurations by default. There were also some tests that no longer compiled, ran, or were otherwise not correct. I fixed those.

Fixes #332

Since version 1.11.0 the Docker images are based on Ubuntu 24.04, which
uses GCC 13 by default. For some reason the standard c++ library that
comes with it causes clang-tidy to throw errors about some operator
delete not being defined. As it turns out the errors are about the sized
operator delete that has been introduced already in C++14, so I really
don't know why clang only complains about it now.
In the Docker image version 1.11.0, the toolchain file was updated and
already sets our desired flags for the usual configurations (Debug,
Release, RelWithDebInfo, MinSizeRel).
I renamed the header file and macro for enabling `DEBUG_PRINT` to
something more specific.
The HW test was missing the initial sleep to wait for all startup tests
to be over. For this I had to make the startup test timeout constants
public.
Also, add `AllChecksPassed()` to HW test utilities.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.68%. Comparing base (1464829) to head (46f8a61).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #335      +/-   ##
==========================================
+ Coverage   79.34%   79.68%   +0.34%     
==========================================
  Files          47       47              
  Lines        1578     1580       +2     
  Branches       57       57              
==========================================
+ Hits         1252     1259       +7     
+ Misses        326      321       -5     

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

@PatrickKa PatrickKa mentioned this pull request Dec 14, 2024
@PatrickKa PatrickKa merged commit 1dcf911 into master Dec 14, 2024
6 checks passed
@PatrickKa PatrickKa deleted the update-image branch December 14, 2024 12:27
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.

Reduce binary sizes
2 participants