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

Remove a bunch of unused dependencies #4482

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Remove a bunch of unused dependencies #4482

merged 3 commits into from
Nov 13, 2023

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Nov 10, 2023

I used cargo machete to find quite a few of these (https://github.com/bnjbvr/cargo-machete) .

Notably this incurs a significant amount of false positives for the client/ crates using progenitor. I think this is because progenitor provides a macro, and simply expects clients to have the necessary dependencies on the crates being used (including: chrono, futures, regress, serde, etc).

Comment on lines -46 to -47
openssl-sys.workspace = true
openssl-probe.workspace = true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jmpesp other than "tests pass" is there a way confirm this doesn't break anything? I see these are transitive deps of samael, but Nexus doesn't appear to depend on them directly.

Copy link
Contributor

Choose a reason for hiding this comment

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

The samael / SAML tests are pretty extensive - I'd be more worried about incompatible openssl versions (or libxmlsec1, like here), something that I think we test by deploying to a helios machine during CI. I don't think there's anything an actual end-to-end SAML login would exercise over the unit tests though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Gotcha, I'll trust those end-to-end tests then!

@smklein
Copy link
Collaborator Author

smklein commented Nov 10, 2023

The build-and-test (helios) target on main has been taking about ~82 minutes on main, this is ~80 minutes. This is probably within "just noise" range, but it's still a worthwhile cleanup IMO.

@smklein smklein requested a review from jmpesp November 10, 2023 16:48
Copy link
Contributor

@jmpesp jmpesp left a comment

Choose a reason for hiding this comment

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

This looks good to me!

Comment on lines -46 to -47
openssl-sys.workspace = true
openssl-probe.workspace = true
Copy link
Contributor

Choose a reason for hiding this comment

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

The samael / SAML tests are pretty extensive - I'd be more worried about incompatible openssl versions (or libxmlsec1, like here), something that I think we test by deploying to a helios machine during CI. I don't think there's anything an actual end-to-end SAML login would exercise over the unit tests though.

@smklein smklein merged commit 6d73cf8 into main Nov 13, 2023
21 checks passed
@smklein smklein deleted the more-unused-deps branch November 13, 2023 17:18
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.

2 participants