-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
ci: Remove MongoDB runner #1719
Conversation
Thanks for opening this pull request!
|
Codecov ReportBase: 99.89% // Head: 99.89% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## alpha #1719 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 61 61
Lines 5991 5991
Branches 1373 1373
=======================================
Hits 5985 5985
Misses 6 6 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Thats what the contribution guide is for, they can install mongodb-runner themselves, use MongoDB CLI or any method they choose for testing.
Seems like extra work for a package that isn't a dev dependency. |
MongoDB runner is only a dev dependency, so this issue doesn't have any effect on production deployments, right? How come we don't see this issue with parse-server? Or does it occur there as well? Maybe we could avoid adding a barrier for contributors and instead fix this temporary issue (we'll remove Node 14 support in 11 months) with a git config. Configuring git shouldn't be a lot of work. We can instruct git to use a specific protocol for a specific dependency with a 1 liner. What is the problematic URL and what URL should the npm installer use instead? |
It isn't, check package.json. You must be thinking about the server. Should we add it as a dev dependency it would add 5 minutes to the CI? |
Do you know why mongodb runner isn't a dev dependency? Does the SDK actually need it? |
The SDK doesn't need it. I forgot why it isn't a dev dependency, it's always been like that. We have had a lot of issues with mongodb-runner over the years. |
Then we can fix 2 issues at once here. Let's move it to dev and add a git config rule. And down the road we can look for a replacement for the runner. I still think it would be good to keep it easier for contributors to test against different mongoDB versions. That's why we've added the package scripts in parse server. Maybe we could add them here too. |
I think updating the Contributing Guide would solve all your concerns for the developers. I'm against adding unmaintained packages here.
I'm against that as we have flaky tests. Maybe once we figure out those I would consider it. |
@mtrezza I actually tested moving as a dev dependency before this PR and https://github.com/dplewis/Parse-SDK-JS/actions/runs/4058503220/jobs/6986789849 Can we merge this? |
@mtrezza Can you rerun the CI? I want to make sure the cache works |
@mtrezza i think this is good to merge |
Still not sure about removing mongodb runner for contributors to fix a temp issue with Node 14. I'll look into the git URL fix. Also the dev dependency situation seems still unclear, why is the runner not a dev dependency if it's only needed in dev. |
I don’t see this being an issue for contributors. If it is an issue we can move this unmaintained package to dev dependency. There are many ways to install mongodb locally. |
What would be the steps required for a contributor to run a test with 3 different versions of MongoDB? In Parse Server it's currently:
It is strange that mongodb runner works fine for Node 14 in the Parse Server CI, but not here. |
I'v opened #1730 since this PR doesn't have a ref to an issue and has been closed. |
Pull Request
Issue
The mongodb runner has a dependency that has to be downloaded over ssh and causes the CI to take ~17 minutes on Node 14
Closes #1730
Approach