Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Jan 28, 2026

This PR removes trailing whitespace and introduces the -Wtrailing-whitespace=any compiler flag. This enforces the rule from CONTRIBUTING.md ("Avoid trailing whitespace") directly in the CI.

This fix is required to unbreak Bitcoin Core CI builds using GCC 15 after merging bitcoin/bitcoin#34412.

Copy link
Contributor

@real-or-random real-or-random left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK...

I was a bit surprised to see that GCC has this option given that it's not primarily a linter, but okay, happy to take them if they're for free.

I think if we enable this, we could as well enable -Wleading-whitespace=spaces?

@real-or-random real-or-random added tweak/refactor meta/development processes, conventions, developer documentation, etc. labels Jan 29, 2026
@hebasto hebasto force-pushed the 260128-trailing-space branch from 65f0e7f to d9c3235 Compare January 29, 2026 12:43
@hebasto
Copy link
Member Author

hebasto commented Jan 29, 2026

@real-or-random

Thank you for the review! Your feedback has been addressed.

I think if we enable this, we could as well enable -Wleading-whitespace=spaces?

Done.

Copy link
Contributor

@real-or-random real-or-random left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK d9c3235

The CI failures on QEMU jobs are certainly unrelated, but let's maybe wait for the non-QEMU jobs.

@hebasto
Copy link
Member Author

hebasto commented Jan 29, 2026

utACK d9c3235

The CI failures on QEMU jobs are certainly unrelated, but let's maybe wait for the non-QEMU jobs.

Hmm... The failed runs are reusing old Docker images, so there shouldn't be any changes in that environment.

@real-or-random
Copy link
Contributor

I agree that this is very dubious. I've just triggered a rerun of all jobs. Let's see if this solves it. And if not, we can still check if the same jobs fail as in the first run. Clearing the cache may also be some other shot in the dark, but let's wait for now.

@hebasto
Copy link
Member Author

hebasto commented Jan 29, 2026

... we can still check if the same jobs fail as in the first run.

They differ...

@hebasto
Copy link
Member Author

hebasto commented Jan 29, 2026

actions/cache has been updated a few hour ago. Maybe it's the culprit we are looking for.

@real-or-random
Copy link
Contributor

actions/cache has been updated a few hour ago. Maybe it's the culprit we are looking for.

This could very well be the reason. Let's just wait for a day to let this settle a bit. (I'm, in principle, happy to merge this PR as-is, but then CI may end up being red on master, which I would like to avoid.)

@hebasto
Copy link
Member Author

hebasto commented Jan 29, 2026

actions/cache has been updated a few hour ago. Maybe it's the culprit we are looking for.

This could very well be the reason. Let's just wait for a day to let this settle a bit. (I'm, in principle, happy to merge this PR as-is, but then CI may end up being red on master, which I would like to avoid.)

FWIW, I've triggered a cache invalidation in hebasto@94ec4e2, and the resulting CI run is 100% green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta/development processes, conventions, developer documentation, etc. tweak/refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants