ci: Add and use ci/test/modernize-deprecated-headers.py#34298
ci: Add and use ci/test/modernize-deprecated-headers.py#34298maflcko wants to merge 2 commits intobitcoin:masterfrom
Conversation
This reverts commit 73f7844.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34298. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
fa99a71 to
fa947ba
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
fa947ba to
aaaa247
Compare
aaaa247 to
fa31a9f
Compare
|
The CI logs show that the example from the pull description is now working correctly: https://github.com/bitcoin/bitcoin/actions/runs/21027399192/job/60455097235?pr=34298#step:11:38466: --- a/src/bench/streams_findbyte.cpp
+++ b/src/bench/streams_findbyte.cpp
@@ -7,9 +7,12 @@
#include <test/util/setup_common.h>
#include <util/fs.h>
+#include <cassert>
#include <cstddef> |
However, IWYU output still mentions C headers:
The patch has been fixed in #34310. |
Yeah, this will also be the case with a vanilla iwyu, when run locally. Not sure if anyone does this, but the py script could be applicable there as well. Not sure if anyone runs iwyu locally, and if they'd prefer a patch to iwyu, or a fixup script, but happy to close this one, if people prefer a patch. |
|
I am happy with both approaches, this one and #34310, though I have a slight preference for the latter for the following reasons:
If the patch size is an issue, I'd prefer the previous "scripted-diff" style script to modify the source code. |
|
🐙 This pull request conflicts with the target branch and needs rebase. |
|
Closing for now. It can be re-opened in the future, if there is need |
Fixes #34237
Currently, there is a massive iwyu patch to try to implement
modernize-deprecated-headers.However, it does not work. For example https://github.com/bitcoin/bitcoin/actions/runs/21012214401/job/60409645985#step:11:35548:
+#include <assert.h> #include <bench/bench.h>Fix all issues by removing the patch and using a trivial and fast
modernize-deprecated-headers.pyinstead.