-
-
Couldn't load subscription status.
- Fork 584
chore(scylladb): use Run function #3433
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
chore(scylladb): use Run function #3433
Conversation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary by CodeRabbit
WalkthroughRefactors ScyllaDB module to compose container configuration via testcontainers option customizers and testcontainers.Run. Introduces setCommandFlags to rebuild command arguments via WithCmd. Updates WithConfig, WithShardAwareness, and WithAlternator to use WithFiles/WithExposedPorts/WithWaitStrategy. Adjusts tests to pass request pointers consistent with new option-based customization. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer/Test
participant Mod as ScyllaDB Module
participant Opts as Module Options
participant TC as testcontainers.Run
participant C as Container Runtime
Dev->>Mod: Run(ctx, image, opts...)
Mod->>Opts: Build moduleOpts\n- WithExposedPorts\n- WithWaitStrategy\n- WithCmd
Opts-->>Mod: Customizers ready
Mod->>Opts: Apply WithConfig/WithShardAwareness/\nWithAlternator (optional)
Note right of Opts: Internally uses\nWithFiles/WithExposedPorts/\nWithWaitStrategy
Mod->>Opts: setCommandFlags(req, flags)\nrebuild Cmd via WithCmd
Mod->>TC: Run(ctx, image, moduleOpts...)
TC->>C: Create & start container
C-->>TC: Container handle
TC-->>Mod: Container
Mod-->>Dev: ScyllaDB Container wrapper
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (2)modules/scylladb/scylladb.go (3)
modules/scylladb/scylladb_test.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What does this PR do?
Use the Run function in scylladb
Why is it important?
Migrate modules to the new API, improving consistency and leveraging the latest testcontainers functionality.
Related issues