Skip to content

C build seems to spend a lot of time on mbedtls test suite #1676

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

Closed
cpswan opened this issue Jan 21, 2025 · 0 comments
Closed

C build seems to spend a lot of time on mbedtls test suite #1676

cpswan opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cpswan
Copy link
Member

cpswan commented Jan 21, 2025

Describe the bug

Whilst doing a C release the build logs suggest that tests are being built and linked.

Steps to reproduce

  1. First I release C sshnpd (e.g. c0.3.2)
  2. Then I the build action runs
  3. And then whilst waiting for a build to complete I see multiple log entries referencing tests.

Expected behavior

Tests aren't built for releases.

Additional context

Log from https://github.com/atsign-foundation/noports/actions/runs/12892207541/job/35946172583

#9 107.0 [ 90%] Generating test_suite_psa_crypto_not_supported.generated.c
#9 107.1 [ 90%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_not_supported.generated.dir/test_suite_psa_crypto_not_supported.generated.c.o
#9 107.4 [ 90%] Linking C executable test_suite_psa_crypto_not_supported.generated
#9 107.5 [ 90%] Built target test_suite_psa_crypto_not_supported.generated
#9 107.5 [ 90%] Generating test_suite_psa_crypto_not_supported.misc.c
#9 107.5 [ 90%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_not_supported.misc.dir/test_suite_psa_crypto_not_supported.misc.c.o
#9 107.8 [ 90%] Linking C executable test_suite_psa_crypto_not_supported.misc
#9 107.8 [ 90%] Built target test_suite_psa_crypto_not_supported.misc
#9 107.9 [ 91%] Generating test_suite_psa_crypto_op_fail.generated.c
#9 108.1 [ 91%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_op_fail.generated.dir/test_suite_psa_crypto_op_fail.generated.c.o
#9 108.5 [ 91%] Linking C executable test_suite_psa_crypto_op_fail.generated
#9 108.5 [ 91%] Built target test_suite_psa_crypto_op_fail.generated
#9 108.5 [ 91%] Generating test_suite_psa_crypto_op_fail.misc.c
#9 108.6 [ 91%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_op_fail.misc.dir/test_suite_psa_crypto_op_fail.misc.c.o
#9 108.9 [ 91%] Linking C executable test_suite_psa_crypto_op_fail.misc
#9 108.9 [ 91%] Built target test_suite_psa_crypto_op_fail.misc
#9 108.9 [ 91%] Generating test_suite_psa_crypto_pake.c
#9 109.0 [ 92%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_pake.dir/test_suite_psa_crypto_pake.c.o
#9 109.3 [ 92%] Linking C executable test_suite_psa_crypto_pake
#9 109.4 [ 92%] Built target test_suite_psa_crypto_pake
#9 109.4 [ 92%] Generating test_suite_psa_crypto_persistent_key.c
#9 109.5 [ 92%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_persistent_key.dir/test_suite_psa_crypto_persistent_key.c.o
#9 109.8 [ 92%] Linking C executable test_suite_psa_crypto_persistent_key
#9 109.9 [ 92%] Built target test_suite_psa_crypto_persistent_key
#9 109.9 [ 92%] Generating test_suite_psa_crypto_se_driver_hal.c
#9 109.9 [ 92%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_se_driver_hal.dir/test_suite_psa_crypto_se_driver_hal.c.o
#9 110.2 [ 92%] Linking C executable test_suite_psa_crypto_se_driver_hal
#9 110.3 [ 92%] Built target test_suite_psa_crypto_se_driver_hal
#9 110.3 [ 93%] Generating test_suite_psa_crypto_se_driver_hal_mocks.c
#9 110.3 [ 93%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_se_driver_hal_mocks.dir/test_suite_psa_crypto_se_driver_hal_mocks.c.o
#9 110.6 [ 93%] Linking C executable test_suite_psa_crypto_se_driver_hal_mocks
#9 110.7 [ 93%] Built target test_suite_psa_crypto_se_driver_hal_mocks
#9 110.7 [ 93%] Generating test_suite_psa_crypto_slot_management.c
#9 110.7 [ 93%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_slot_management.dir/test_suite_psa_crypto_slot_management.c.o
#9 111.0 [ 93%] Linking C executable test_suite_psa_crypto_slot_management
#9 111.1 [ 93%] Built target test_suite_psa_crypto_slot_management
#9 111.1 [ 93%] Generating test_suite_psa_crypto_storage_format.current.c
#9 111.3 [ 93%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_storage_format.current.dir/test_suite_psa_crypto_storage_format.current.c.o
#9 111.6 [ 94%] Linking C executable test_suite_psa_crypto_storage_format.current
#9 111.6 [ 94%] Built target test_suite_psa_crypto_storage_format.current
#9 111.6 [ 94%] Generating test_suite_psa_crypto_storage_format.misc.c
#9 111.7 [ 94%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_storage_format.misc.dir/test_suite_psa_crypto_storage_format.misc.c.o
#9 112.0 [ 94%] Linking C executable test_suite_psa_crypto_storage_format.misc
#9 112.1 [ 94%] Built target test_suite_psa_crypto_storage_format.misc
#9 112.1 [ 94%] Generating test_suite_psa_crypto_storage_format.v0.c
#9 112.2 [ 94%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_storage_format.v0.dir/test_suite_psa_crypto_storage_format.v0.c.o
#9 112.5 [ 94%] Linking C executable test_suite_psa_crypto_storage_format.v0
#9 112.6 [ 94%] Built target test_suite_psa_crypto_storage_format.v0
#9 112.6 [ 94%] Generating test_suite_psa_crypto_util.c
#9 112.6 [ 95%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_crypto_util.dir/test_suite_psa_crypto_util.c.o
#9 112.9 [ 95%] Linking C executable test_suite_psa_crypto_util
#9 113.0 [ 95%] Built target test_suite_psa_crypto_util
#9 113.0 [ 95%] Generating test_suite_psa_its.c
#9 113.0 [ 95%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_psa_its.dir/test_suite_psa_its.c.o
#9 113.4 [ 95%] Linking C executable test_suite_psa_its
#9 113.4 [ 95%] Built target test_suite_psa_its
#9 113.4 [ 95%] Generating test_suite_random.c
#9 113.5 [ 95%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_random.dir/test_suite_random.c.o
#9 113.8 [ 96%] Linking C executable test_suite_random
#9 113.8 [ 96%] Built target test_suite_random
#9 113.8 [ 96%] Generating test_suite_rsa.c
#9 113.9 [ 96%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_rsa.dir/test_suite_rsa.c.o
#9 114.3 [ 96%] Linking C executable test_suite_rsa
#9 114.3 [ 96%] Built target test_suite_rsa
#9 114.3 [ 96%] Generating test_suite_shax.c
#9 114.4 [ 96%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_shax.dir/test_suite_shax.c.o
#9 114.7 [ 96%] Linking C executable test_suite_shax
#9 114.8 [ 96%] Built target test_suite_shax
#9 114.8 [ 96%] Generating test_suite_ssl.c
#9 114.8 [ 97%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_ssl.dir/test_suite_ssl.c.o
#9 115.3 [ 97%] Linking C executable test_suite_ssl
#9 115.4 [ 97%] Built target test_suite_ssl
#9 115.4 [ 97%] Generating test_suite_ssl_decrypt.misc.c
#9 115.4 [ 97%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_ssl_decrypt.misc.dir/test_suite_ssl_decrypt.misc.c.o
#9 115.8 [ 97%] Linking C executable test_suite_ssl_decrypt.misc
#9 115.8 [ 97%] Built target test_suite_ssl_decrypt.misc
#9 115.8 [ 97%] Generating test_suite_test_helpers.c
#9 115.9 [ 97%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_test_helpers.dir/test_suite_test_helpers.c.o
#9 116.2 [ 97%] Linking C executable test_suite_test_helpers
#9 116.2 [ 97%] Built target test_suite_test_helpers
#9 116.2 [ 98%] Generating test_suite_timing.c
#9 116.3 [ 98%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_timing.dir/test_suite_timing.c.o
#9 116.6 [ 98%] Linking C executable test_suite_timing
#9 116.6 [ 98%] Built target test_suite_timing
#9 116.6 [ 98%] Generating test_suite_version.c
#9 116.7 [ 98%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_version.dir/test_suite_version.c.o
#9 117.0 [ 98%] Linking C executable test_suite_version
#9 117.0 [ 98%] Built target test_suite_version
#9 117.0 [ 98%] Generating test_suite_x509parse.c
#9 117.1 [ 98%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_x509parse.dir/test_suite_x509parse.c.o
#9 117.5 [ 99%] Linking C executable test_suite_x509parse
#9 117.6 [ 99%] Built target test_suite_x509parse
#9 117.6 [ 99%] Generating test_suite_x509write.c
#9 117.6 [ 99%] Building C object _deps/mbedtls-build/tests/CMakeFiles/test_suite_x509write.dir/test_suite_x509write.c.o
#9 117.9 [ 99%] Linking C executable test_suite_x509write
#9 118.0 [ 99%] Built target test_suite_x509write
@cpswan cpswan added the bug Something isn't working label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants