Skip to content

RUBY-2467 Remove specs from packaged gem #2922

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

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Feb 25, 2025

TL;DR: let's not bundle specs with the packaged gem, because the specs as presented in the gem are not runnable anyway.

The mongo gem currently includes the spec files, presumably so that users can run the specs to ensure correctness. However, the mongo-ruby-spec-shared and drivers-evergreen-tools submodules are not included, which means (1) a symbolic link in spec/support that points into .mod/drivers-evergreen-tools causes a warning when installing the gem, and (2) the specs can't run anyway, because the submodules are missing.

Further, the specs require dependencies from the testing group in the Gemfile, which are not installed by default when the gem is installed, further complicating the running of specs from an installed gem.

So, because the specs cannot currently be run from the gem anyway, and the warning about the dangling symlink is alarming to some users, it seems cleaner and less confusing to make sure the spec directory is omitted entirely from the packaged gem. Users interested in running the specs should refer to either (a) the corresponding release on GitHub, which includes an archive of the source code for that release, or (b) the repository itself.

@jamis jamis requested a review from comandeo-mongo February 25, 2025 21:18
@alcaeus alcaeus removed the request for review from comandeo-mongo March 3, 2025 16:23
@jamis jamis merged commit 694ed35 into mongodb:master Mar 3, 2025
236 of 258 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.

2 participants