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

feat: Pull MongoDB and Redis from shared-services repo #10266

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

john-gom
Copy link
Contributor

@john-gom john-gom commented May 10, 2024

What

Create a test.yml for integration tests but otherwise MongoDB and Redis come from the shared-services repo.
https://github.com/openfoodfacts/openfoodfacts-shared-services

Signed-off-by: John Gomersall <thegoms@gmail.com>
Signed-off-by: John Gomersall <thegoms@gmail.com>
@github-actions github-actions bot added MongoDB We have 2 mongodb collections: one for current products, and one for obsolete products 🐋 Docker https://docker-curriculum.com/ labels May 10, 2024
@teolemon teolemon requested a review from alexgarel May 13, 2024 15:12
teolemon and others added 4 commits May 14, 2024 18:38
Signed-off-by: John Gomersall <thegoms@gmail.com>
Signed-off-by: John Gomersall <thegoms@gmail.com>
Signed-off-by: John Gomersall <thegoms@gmail.com>
Copy link
Member

Choose a reason for hiding this comment

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

I am a bit sceptical about duplicating so much to avoid pulling deps.

Why not have instead "test_deps" and "deps" in the Makefile to avoid pulling too much, still keeping things DRY and consistent ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @alexgarel , I've tweaked it so the deps are cloned for tests but not run so that we can reference the docker yml in the test targets. Let me know what you think. Note there are changes to shared-services that go with this, but clone deps should do a pull anyway

Signed-off-by: John Gomersall <thegoms@gmail.com>
Signed-off-by: John Gomersall <thegoms@gmail.com>
Copy link

sonarcloud bot commented May 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐋 Docker https://docker-curriculum.com/ MongoDB We have 2 mongodb collections: one for current products, and one for obsolete products Shared services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Product Opener to fetch Redis and MongoDB Dependencies from openfoodfacts-shared-services repo
3 participants