Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vszakats
Copy link
Owner

No description provided.

@vszakats vszakats marked this pull request as draft September 20, 2025 17:10
@vszakats vszakats changed the title test 1 [WIP] GHA/codeql: try building libtests Sep 20, 2025
@vszakats vszakats marked this pull request as ready for review November 21, 2025 02:08
@vszakats vszakats closed this Nov 21, 2025
@vszakats vszakats deleted the cqlt branch November 21, 2025 02:08
vszakats added a commit to curl/curl that referenced this pull request Nov 21, 2025
Turns out the cause of CodeQL hangs (or probably just extreme long
compile) is the header `curl/typecheck-gcc.h`. By accident I noticed
that the preprocessed output of libtests.c is 75 MB (megabytes). This
is much higher than the amounf of source code hinted, also compared to
e.g. units.c or other build targets. The reason for the extreme size
is each easy option call pulling in the large checker logic defined
in this header.

By compiling with `-DCURL_DISABLE_TYPECHECK`, preprocessed output drops
to 2.2 MB (34x), and the libtests target builds without issues.

Also build all tests and examples with the Linux HTTP/3 config, covering
3 more files.

With these, CodeQL C coverage is 893 out of 930 (96%) (was: 645 69%)

Follow-up to 71fc11e #18695
Follow-up to a333fd4 #18557
Follow-up to b4922b1 #18564

Closes vszakats#11
Closes #19632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants