Support custom subject commands - #53
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe change adds resolver definitions to test cases, validates their references, clones cases for each run, and executes resolvers before test dispatch. Resolver output replaces placeholders in endpoint commands and environment variables. ChangesResolver values and per-run execution
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Harness
participant Runner
participant Docker
participant TestFlow
Harness->>Runner: Provide cloned test case
Runner->>Docker: Execute resolver command
Docker-->>Runner: Return output or stderr
Runner->>Runner: Substitute output in commands and environment
Runner->>TestFlow: Dispatch resolved test case
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/runner/runner.go`:
- Around line 183-193: Replace the hardcoded 60-second timeout in the resolve
execution flow around exec.CommandContext with a configurable duration,
preferably deriving it from r.opts.Timeout or the existing runner timeout
configuration. Ensure cold image pulls receive the full configured timeout while
preserving cancellation and error propagation behavior.
- Around line 167-215: The non-`--all-tests` subject-run setup must create an
independent copy of `*config.TestCase` for every `runPair` instead of reusing
the same pointer. Update the code that constructs each run pair so
`resolveValues` can mutate that case’s endpoint commands and environment without
affecting subsequent subjects, while preserving the existing per-subject
execution flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4693e7d7-23b6-4c49-8321-d25509524a18
📒 Files selected for processing (2)
internal/config/case.gointernal/runner/runner.go
Deploying pipebench with
|
| Latest commit: |
ea32b69
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e069bb4d.pipebench.pages.dev |
| Branch Preview URL: | https://dev-subject-updates.pipebench.pages.dev |
Summary by CodeRabbit
New Features
Bug Fixes