Skip to content

fix(.github/codecov): Ignore aws-lc-rs-fips for codecov#2023

Merged
gretchenfrage merged 2 commits intoquinn-rs:mainfrom
dongcarl:2024-10-fix-fips-golang
Jan 18, 2025
Merged

fix(.github/codecov): Ignore aws-lc-rs-fips for codecov#2023
gretchenfrage merged 2 commits intoquinn-rs:mainfrom
dongcarl:2024-10-fix-fips-golang

Conversation

@dongcarl
Copy link
Contributor

@dongcarl dongcarl commented Oct 29, 2024

An attempt to fix https://github.com/quinn-rs/quinn/actions/runs/11562272211/job/32183071070 on main and (unreleased) 0.5.6

@dongcarl
Copy link
Contributor Author

dongcarl commented Oct 29, 2024

It seems from the CI failure that code coverage builds for Windows for aws-lc-fips-sys is more complicated than expected.

More resources:

@mxinden @Ralith @djc I guess a decision has to be made if full coverage for aws-lc-fips-sys is worth the build system troubles

Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

What goal are you trying to achieve here?

@dongcarl
Copy link
Contributor Author

@djc
Copy link
Member

djc commented Nov 5, 2024

@mxinden @Ralith @djc I guess a decision has to be made if full coverage for aws-lc-fips-sys is worth the build system troubles

I think we should definitely fix it so coverage builds can succeed (I'm surprised the main CI failures don't generate any notifications for me...). I think rustls has this working so it shouldn't be too hard to fix?

https://github.com/rustls/rustls/blob/main/.github/workflows/build.yml#L51

@dongcarl dongcarl force-pushed the 2024-10-fix-fips-golang branch from 6d859e2 to 80a485b Compare January 2, 2025 20:20
@dongcarl dongcarl changed the title fix(.github/codecov): Install golang for fips codecov fix(.github/codecov): Install deps for fips codecov Jan 2, 2025
@dongcarl
Copy link
Contributor Author

dongcarl commented Jan 2, 2025

@djc Should be good to go now. Checks are passing: https://github.com/quinn-rs/quinn/actions/runs/12588265064

I can drop the last commit (meant to be temporary just for testing) if this looks good.

@dongcarl dongcarl marked this pull request as ready for review January 2, 2025 22:35
Copy link
Collaborator

@gretchenfrage gretchenfrage left a comment

Choose a reason for hiding this comment

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

Yeah just copying what Rustls is doing makes sense, and the second commit which makes the coverage CI run in PRs combined with the fact that CI passed for this PR seems to indicate that the change works. Thank you for working on this irksome thing!

(We must remember not to merge until the second commit is removed.)

@djc
Copy link
Member

djc commented Jan 6, 2025

So looking at this more, maybe we should exclude fips from the features used for coverage? The feature has no effect on Quinn itself, so it should not change anything about coverage. The disadvantage would be that we sort of need to keep features in sync manually, but IMO that might be better than showing everything down for a relatively niche use case.

@dongcarl
Copy link
Contributor Author

dongcarl commented Jan 6, 2025

So looking at this more, maybe we should exclude fips from the features used for coverage? The feature has no effect on Quinn itself, so it should not change anything about coverage. The disadvantage would be that we sort of need to keep features in sync manually, but IMO that might be better than showing everything down for a relatively niche use case.

Yeah that was my initial thinking. Let me know what you guys decide and I can adjust this PR.

@Ralith
Copy link
Collaborator

Ralith commented Jan 6, 2025

+1 in favor of excluding it, since our CI is getting pretty big already.

@dongcarl dongcarl force-pushed the 2024-10-fix-fips-golang branch 3 times, most recently from c109d60 to 19273f5 Compare January 8, 2025 22:13
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.89%. Comparing base (9d63e62) to head (57bea28).
Report is 145 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2023      +/-   ##
==========================================
- Coverage   78.17%   77.89%   -0.29%     
==========================================
  Files          70       71       +1     
  Lines       18377    18722     +345     
==========================================
+ Hits        14367    14583     +216     
- Misses       4010     4139     +129     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dongcarl
Copy link
Contributor Author

dongcarl commented Jan 8, 2025

Updated to include all features except for aws-lc-rs-fips and rustls-aws-lc-rs-fips by parsing cargo metadata with jq. Let me know if this looks good.

Note that the last commit needs to be dropped.

@dongcarl dongcarl changed the title fix(.github/codecov): Install deps for fips codecov fix(.github/codecov): Ignore aws-lc-rs-fips for codecov Jan 8, 2025
@gretchenfrage gretchenfrage self-requested a review January 8, 2025 23:56
Copy link
Collaborator

@gretchenfrage gretchenfrage left a comment

Choose a reason for hiding this comment

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

I think this makes sense, although I wish there was a way built in to cargo to do this. But it looks like there might not be.

@dongcarl dongcarl force-pushed the 2024-10-fix-fips-golang branch from 19273f5 to 6f1d992 Compare January 10, 2025 17:48
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Thanks! Looks ugly but hopefully not too hard to maintain.

@dongcarl dongcarl force-pushed the 2024-10-fix-fips-golang branch from 6f1d992 to 57bea28 Compare January 17, 2025 19:34
@dongcarl dongcarl requested a review from mxinden as a code owner January 17, 2025 19:34
@gretchenfrage
Copy link
Collaborator

I believe @djc's final thread was properly resolved. I'm going to try and remove the final commit and merge this now.

@gretchenfrage
Copy link
Collaborator

Thank you for dealing with this!

@gretchenfrage gretchenfrage added this pull request to the merge queue Jan 18, 2025
Merged via the queue into quinn-rs:main with commit cc1cf6f Jan 18, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants