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

Added valkey module #2639

Merged

Conversation

JensvandeWiel
Copy link
Contributor

What does this PR do?

It adds a dedicated module For valkey using the Redis module as base.

Why is it important?

Valkey can work with the Redis module, but since it is not the same project and since it can change compared to Redis it should have it's own module.

@JensvandeWiel JensvandeWiel requested a review from a team as a code owner July 11, 2024 23:05
Copy link

netlify bot commented Jul 11, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit f377ba3
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6698d43138ad440008b36330
😎 Deploy Preview https://deploy-preview-2639--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdelapenya
Copy link
Collaborator

Hi @JensvandeWiel thanks for submitting the new module. Do you think you can extract the valkey module changeset to a separate PR? There are changes to the go modules that should not apply to the module creation. Or you think the changes are related? If not, I'd suggest sending two PRs: one for the module, one for the dependency updates

@JensvandeWiel
Copy link
Contributor Author

Hey, I thought I needed to update dependencies as it says in the contribution guide. I can probably remove the dependencies updates from the other modules if you want

@mdelapenya
Copy link
Collaborator

Hey, I thought I needed to update dependencies as it says in the contribution guide. I can probably remove the dependencies updates from the other modules if you want

Yes please, probably the contribution guides are misleading, talking about the core, not the modules.

In any case, I'd prefer one PR for the valkey module, and one for the deps 🙏

@JensvandeWiel
Copy link
Contributor Author

Ok, ill do that later today

@JensvandeWiel
Copy link
Contributor Author

Ok I've removed the other changes, I found that I still need to change the client to use the valkey client, so ill do that first, so please wait with merging.

@JensvandeWiel
Copy link
Contributor Author

Ok, I have updated the repo with the main branch and switched Client to Valkey-go. It's ready to go 👍

@mdelapenya
Copy link
Collaborator

Cool thank you @JensvandeWiel! Did you read the module contribution guide here? It seems the code generation tool was not used, so the PR just includes the module code, but nothing about the docs, and the GH action, etc. Could you please run the generator adding your code on top of the generated scaffolding? 🙏

@JensvandeWiel
Copy link
Contributor Author

Oh, I'm sorry ill do it soon!

@JensvandeWiel
Copy link
Contributor Author

Ok, I've added it!

Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

@JensvandeWiel I left a few comments regarding linting. Could you address them?

Other than that, LGTM thank you so much for your contribution! 🚀

I'll merge once the comments are addressed and the CI passes (it already pass locally, so I'm confident it will).

Cheers!

docs/modules/valkey.md Show resolved Hide resolved
modules/valkey/go.mod Outdated Show resolved Hide resolved
modules/valkey/valkey_test.go Show resolved Hide resolved
modules/valkey/valkey_test.go Outdated Show resolved Hide resolved
JensvandeWiel and others added 5 commits July 18, 2024 10:35
Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
@JensvandeWiel
Copy link
Contributor Author

Ok, I've added the changes and updated it with main branch.

@mdelapenya
Copy link
Collaborator

Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mdelapenya mdelapenya merged commit 70b90cc into testcontainers:main Jul 18, 2024
110 checks passed
@mdelapenya
Copy link
Collaborator

Module is live in the modules catalog: testcontainers/community-module-registry#62

mdelapenya added a commit that referenced this pull request Aug 5, 2024
* main:
  feat: add grafana-lgtm module (#2660)
  Added valkey module (#2639)
  fix: container.Endpoint and wait.FortHTTP to use lowest internal port (#2641)
  chore: test cleanups (#2657)
  docs: fix compilation of examples (#2656)
  feat: add custom container registry substitutor (#2647)
  fix: couchbase containers intermittently hang on startup (#2650)
  chore(deps): bump Ryuk to 0.8.1 (#2648)
  fix: retry on label error (#2644)
  perf: optimise docker authentication config lookup (#2646)
@mdelapenya mdelapenya self-assigned this Aug 5, 2024
@mdelapenya mdelapenya added the enhancement New feature or request label Aug 5, 2024
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Aug 6, 2024
* main:
  chore: print Docker Info labels in banner (testcontainers#2681)
  fix: incorrect parsing of exposedPorts in readiness check (testcontainers#2658)
  feat: add grafana-lgtm module (testcontainers#2660)
  Added valkey module (testcontainers#2639)
  fix: container.Endpoint and wait.FortHTTP to use lowest internal port (testcontainers#2641)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants