-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
List ssl_debug_helpers_generated.h in generated files #5329
List ssl_debug_helpers_generated.h in generated files #5329
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -118,7 +118,7 @@ check() | |||
check scripts/generate_errors.pl library/error.c | |||
check scripts/generate_query_config.pl programs/test/query_config.c | |||
check scripts/generate_features.pl library/version_features.c | |||
check scripts/generate_ssl_debug_helpers.py library/ssl_debug_helpers_generated.c | |||
check scripts/generate_ssl_debug_helpers.py library/ssl_debug_helpers_generated.hc library/ssl_debug_helpers_generated.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, nope, the CI points out a typo: .hc
f113549
to
12e27d4
Compare
Running `generate_ssl_debug_helpers.py` generates both `ssl_debug_helpers_generated.c` and `ssl_debug_helpers_generated.h`. List the `.h` file as well as the `.c` file in `check-generated-files.sh` so that `check-generated-files.sh -u` will complain if it isn't up to date. List it in `Makefile` and `CMakeLists.txt` so that parallel builds know when to wait until the `.h` file is present. In `Makefile`, declare the `.c` file as depending on the `.h` file for order. This way, a dependency for either will wait until the `.h` file is present, and since the `.h` file is generated after the `.c` file, this guarantees that the `.c` file is present. This fixes random failures of `make -j` from a fresh checkout. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fix intermittent failure of parallel builds from a fresh checkout, as seen recently in the
code-coverage
nightly CI job (https://jenkins-mbedtls.oss.arm.com/job/mbed-tls-nightly-tests/2281/, https://jenkins-mbedtls.oss.arm.com/job/mbed-tls-nightly-tests/2284/).A few code-coverage runs to test: 1 2 3
Not applicable to older branches.