Processes are now tasks#2035
Conversation
Deploying devenv with
|
| Latest commit: |
03e9657
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8c32867a.devenv.pages.dev |
| Branch Preview URL: | https://process-tasks.devenv.pages.dev |
|
Claude finished @domenkozar's task —— View job Code Review Progress
Review FeedbackPotential Bugs & Issues1. Task Name Validation Missing ( name = "devenv:processes:${name}";Process names aren't validated for task name compatibility. Invalid characters (spaces, special chars) in process names could create malformed task names. 2. Namespace Collision Risk ( 3. Circular Dependency Detection Gap 4. Process Arguments Lost ( Performance Considerations1. Added Execution Overhead ( 2. Task Resolution on Every Process Start Code Quality & Best Practices1. Magic String Detection ( let is_process = self.task.name.starts_with("devenv:processes:");Hardcoded string should be a constant or derived from the same source as the prefix in 2. Inconsistent Error Handling ( 3. Task State Mutation ( Security Concerns1. Command Injection Potential ( "${name}: exec ${config.task.package}/bin/devenv-tasks run --mode all devenv:processes:${name}"Process names are directly interpolated into shell commands without escaping. Malicious process names could inject commands. Test Coverage1. Limited Edge Cases (
2. No Error Condition Testing Documentation1. Migration Path Missing 2. Performance Impact Not Documented Suggested Improvements
|
161f840 to
d16326d
Compare
Fixes #1471 Processes defined in `processes` are now automatically available as tasks with the `devenv:processes:` prefix. This enables running individual processes as tasks and defining dependencies between tasks and processes. Future work is also supporting Health Checks: F1bonacc1/process-compose#371 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
d16326d to
03e9657
Compare
… breaking change Devenv broke process-compose for flake-based projects with this change: cachix/devenv#2035 The workaround is to set a default value for the `exec` option, as its used here: https://github.com/cachix/devenv/pull/2035/files#diff-7104fdcadefcb5687bbdaeda5d6db909155e0dc3f83f8d97ace3302590aa098eR144 Co-authored-by: reo101 <pavel.atanasov2001@gmail.com>
…es are now tasks" Devenv broke process-compose for flake-based projects with this change: cachix/devenv#2035 The workaround is to set a default value for the `exec` option, as its used here: https://github.com/cachix/devenv/pull/2035/files#diff-7104fdcadefcb5687bbdaeda5d6db909155e0dc3f83f8d97ace3302590aa098eR144 Co-authored-by: reo101 <pavel.atanasov2001@gmail.com>
…es are now tasks" Devenv broke process-compose for flake-based projects with this change: cachix/devenv#2035 The workaround is to set a default value for the `exec` option, as its used here: https://github.com/cachix/devenv/pull/2035/files#diff-7104fdcadefcb5687bbdaeda5d6db909155e0dc3f83f8d97ace3302590aa098eR144 Co-authored-by: reo101 <pavel.atanasov2001@gmail.com>
…es are now tasks" Devenv broke process-compose for flake-based projects with this change: cachix/devenv#2035 The workaround is to set a default value for the `exec` option, as its used here: https://github.com/cachix/devenv/pull/2035/files#diff-7104fdcadefcb5687bbdaeda5d6db909155e0dc3f83f8d97ace3302590aa098eR144 Co-authored-by: reo101 <pavel.atanasov2001@gmail.com>
Fixes #1471
Processes defined in
processesare now automatically available as tasks with thedevenv:processes:prefix. This enables running individual processes as tasks and defining dependencies between tasks and processes.Future work is also supporting Health Checks: F1bonacc1/process-compose#371