-
-
Couldn't load subscription status.
- Fork 584
chore(pulsar): use Run function #3426
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(pulsar): use Run function #3426
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 Pulsar module to use option-based container configuration. Replaces direct request field mutations with testcontainers.With* customizers and switches container start to testcontainers.Run using a composed options slice. Updates functions to apply command, env, exposed ports, and wait strategies via wrappers. Changes
Sequence Diagram(s)sequenceDiagram
actor Caller
participant Pulsar as modules/pulsar/pulsar.go
participant TC as testcontainers.Run
participant Docker as Container Runtime
Caller->>Pulsar: Run(ctx, img, opts...)
activate Pulsar
note over Pulsar: Build moduleOpts: WithExposedPorts, WithEnv, WithCmd, WithWaitStrategy
Pulsar->>TC: Run(ctx, img, moduleOpts...)
activate TC
TC->>Docker: Create & start container
Docker-->>TC: Container started
TC-->>Pulsar: Container handle or error
deactivate TC
Pulsar-->>Caller: Result
deactivate Pulsar
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)modules/pulsar/pulsar.go (3)
⏰ 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). (5)
🔇 Additional comments (4)
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 pulsar
Why is it important?
Migrate modules to the new API, improving consistency and leveraging the latest testcontainers functionality.
Related issues