Closed rafaelgomesxyz closed 3 weeks ago
The changes introduce a fix for the run
command functionality, enhancing error handling and completion logic in the base.rb
file. The update ensures better management of environment variables in the run.rb
file, while the test suite in run_spec.rb
expands coverage for scenarios with mismatched environment settings. The modifications streamline control flow and increase robustness during command execution.
File | Change Summary |
---|---|
CHANGELOG.md | Added entry documenting a fix for run command related to environment variables. |
lib/.../base.rb | Removed step_error and integrated logic into step_finish , which now includes an abort_on_error parameter. |
lib/.../run.rb | Updated update_runner_workload to assign container_spec["env"] with a fallback to an empty array if nil . |
spec/.../run_spec.rb | Introduced new test context for scenarios with environment variables in runner workloads; enhanced coverage and validation. |
sequenceDiagram
participant Runner
participant Command
participant Base
Runner->>Command: Execute run command
Command->>Base: Call step_finish(success, abort_on_error)
Base-->>Runner: Return success or error
Note over Base: Handle error based on abort_on_error
Hop along, let's celebrate,
With fixes that truly elevate.
In commands where environments play,
We’ve made them sturdy in every way.
Oh, happy bugs, now far away,
With leaps and bounds, we'll greet the day! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
New spec is passing.
Summary by CodeRabbit
Bug Fixes
run
command failing when environment variables differ between workloads, enhancing command robustness.Tests