gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Adjust CI to ignore non-rust warnings

Open powerboat9 opened this issue 7 months ago • 7 comments

This should make it much easier for us to maintain the expected warnings files

powerboat9 avatar May 18 '25 21:05 powerboat9

I kinda dislike the idea of batch disabling warning but I fail to find any counter argument. It wouldn't trigger any warning on some rarely modified common files right ?

P-E-P avatar May 30 '25 14:05 P-E-P

It wouldn't trigger any warning on some rarely modified common files right ?

What do you mean?

powerboat9 avatar May 30 '25 19:05 powerboat9

It wouldn't trigger any warning on some rarely modified common files right ?

What do you mean?

Grepping rust will trigger only warning on rust-XXX.{cc,h} files or within the rust/libgrust directories, we rarely modify any files outside of those but this wouldn't be checked by the CI script right ?

P-E-P avatar May 31 '25 14:05 P-E-P

Grepping rust will trigger only warning on rust-XXX.{cc,h} files or within the rust/libgrust directories, we rarely modify any files outside of those but this wouldn't be checked by the CI script right ?

Yeah, so it is a bit of a trade-off

powerboat9 avatar May 31 '25 15:05 powerboat9

I wonder if having our CI use GCC 15 would help much

powerboat9 avatar May 31 '25 15:05 powerboat9

We don't really care about warning outside of rust anyway. And from my recent experience of rebasing over upstream frequently, I can see how this change is needed as I've had to fixup the expected warning several times for stuff we haven't modified.

And you're correct, we should probably use latest GCC as the goal is to fix any issue the compiler may find, so the latest GCC should be more accurate than anything older...

dkm avatar Jun 02 '25 09:06 dkm

Well fine you convinced me, @powerboat9 could you bump the compiler version to gcc 15 ?

P-E-P avatar Jun 16 '25 09:06 P-E-P

What is missing for getting this one in? If possible, we should merge it before the next bump (I was willing to bump today or tomorrow)

dkm avatar Jun 26 '25 18:06 dkm

This PR should be done as soon as I can finish bugfixing it -- I had pivoted to trying to upgrade our CI to GCC 15, but it looks like that'll be a bit more involved

powerboat9 avatar Jun 26 '25 21:06 powerboat9

TIL grep exits with 0 if it finds at least one match, 2 if it has an error, and 1 if it doesn't find any matches

powerboat9 avatar Jun 27 '25 03:06 powerboat9