Skip to content

Conversation

wwisser
Copy link

@wwisser wwisser commented Oct 12, 2025

As requested in #10775, this PR will add support for Valkey testcontainers similar as we already have them for Node, Go & Rust.

I've included most of the features that currently supporting languages have such as:

  • CLI bridge
  • Connection URL creation
  • Mounting of custom .conf files
  • Wait policy for message Ready to accept connections
  • Log level API
  • Snapshot configuration
  • Initialization script executor for database population
  • Persistence of database state

@wwisser wwisser requested a review from a team as a code owner October 12, 2025 21:56
@wwisser wwisser changed the title Implement Valkey module (#10775) Implement Valkey module #10775 Oct 12, 2025
@wwisser wwisser changed the title Implement Valkey module #10775 Implement Valkey module Oct 12, 2025
@wwisser wwisser changed the title Implement Valkey module #10775 Implement Valkey module Oct 12, 2025

@Override
public void start() {
List<String> command = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This should be final.

Copy link
Author

Choose a reason for hiding this comment

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

I'm not a fan of this because excessive usage of final in Java clutters the code and worsens readability. It's pretty uncommon and I don't see a presence of this convention in the codebase either.

I'm happy to discuss it, but contribution guidelines state we should adapt to code base standards.


@Test
void shouldMountValkeyConfigToContainer() throws Exception {
Path configFile = Paths.get(getClass().getResource("/valkey.conf").toURI());
Copy link
Contributor

Choose a reason for hiding this comment

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

Variables that do not change state after declaration should be explicitly marked as final.

Copy link
Author

Choose a reason for hiding this comment

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

…cution; utilize AutoCloseable iface in tests; make use of StringUtils.isNotEmpty for preconditions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants