Skip to content

tests: make individual test sources compile cleanly #17703

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
wants to merge 22 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Jun 22, 2025

Tidy up headers and includes to ensure all individual test source
compile cleanly (but not link). To allow running clang-tidy (and
possibly other static analyzers) on them. It also improves readability
and allows to verify them locally, without the bundle logic.

clang-tidy ignores #included C files, so it's blind to bundle C files
the include these tests. The current workaround of embedding has
a couple of downsides:. meaningless filenames and line numbers,
missing issues, messing up self header paths. Thus, running it on
individual sources would be beneficial.

Also:

  • de-duplicate includes.
  • untangle some includes.
  • formatting/indentation fixes.
  • merge getpart.h into first.h.

Ref: #17680 (comment)

@testclutch
Copy link

Analysis of PR #17703 at 7ec13fe8:

Test 530 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 6 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@vszakats vszakats changed the title tests: make all test sources compile cleanly tests: make individual test sources compile cleanly Jun 22, 2025
@vszakats vszakats closed this in 6a0cd4f Jun 22, 2025
@vszakats vszakats deleted the t-serv-hdr-dedupe branch June 22, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants