Skip to content
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

Fixes broken cargo audit ci #4589

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Fixes broken cargo audit ci #4589

merged 2 commits into from
Oct 19, 2021

Conversation

tarikeshaq
Copy link
Contributor

Fixes #4583

Our dependency CI keeps failing with cargo audit, look at #4583 for more information

The fix here isn't the prettiest, we should avoid ignoring advisories whenever we can... I'm opting to do that here, because the check is becoming noisy and we don't invoke the risky API. (at least not in the Nimbus SDK) and as far as I can tell glean has been using that version of chrono for a while after the advisory was released.

A better fix, which I'll file a backlog issue for, is to use the time dependency directly instead, which is more maintained and has a fixed version (and should be able to satisfy all the use cases we need, at least in nimbus)

@tarikeshaq tarikeshaq requested a review from a team October 19, 2021 03:57
@codecov-commenter
Copy link

Codecov Report

Merging #4589 (7332812) into main (2200912) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4589   +/-   ##
=======================================
  Coverage   80.69%   80.69%           
=======================================
  Files          48       48           
  Lines        5217     5217           
=======================================
  Hits         4210     4210           
  Misses       1007     1007           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2200912...7332812. Read the comment docs.

# `localtime_r` could segfault, our code base doesn't trigger this, there is a PR on chrono that should
# fix this: https://github.com/chronotope/chrono/pull/578
# note that both the Nimbus-SDK and glean use chrono, so if we would like to move away from it, both projects
# need to do that before we can remove the ignores (assuming `chrono` doesn't release a fixed version)
Copy link
Member

Choose a reason for hiding this comment

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

This is a bit unfortunate :( But yeah, this seems a pragmatic solution. Should we get an issue on file to resolve this after some reasonable time in the future? (which might mean dropping or upgrading chrono depending on the resolution) eg, if I'm reading time-rs/time#293 (comment) correctly, time-rs isn't impacted in practice as that function will return an Err?

Copy link
Member

Choose a reason for hiding this comment

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

(well, maybe isn't impacted on the latest version? Or only on main? Blah)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think using time directly will be OK, because we can use 0.3 and that isn't impacted according to the advisory... on Nimbus I could see us doing that, the use-case we have is simple enough to replicate using time (famous last words 😅) But if chrono releases a fixed version that may be the best way for both us and glean, I filed #4590

Copy link

Choose a reason for hiding this comment

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

Maintainer of time here. Time 0.2.23 and up (including all of 0.3) is patched. This just amounts to returning the Err value on the affected operating systems while still doing the "useful" thing on Windows, wasm, etc.

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.

Fix broken dependency CI
4 participants