Skip to content

Devbox does not propagate errors process-compose encounters in validating process-compose.yaml #2579

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

Open
t-monaghan opened this issue Apr 10, 2025 · 0 comments
Labels
bug Something isn't working triage Issue needs triage

Comments

@t-monaghan
Copy link
Contributor

What happened?

Problem

If process-compose is configured with is_strict: true and there is an issue in the process-compose.yaml file, devbox services up will fail to run, returning "exit status 1". However if you run the same file with process-compose up you will get a helpful error message on why process-compose is refusing to run.

Suggestion

Devbox should propagate this helpful error message from process-compose to the user.

Steps to reproduce

  1. devbox init
echo 'version: "0.5"
is_strict: true

processes:
  foo:
    commnad: echo "Hello, world!"
' > process-compose.yaml
  1. devbox services up
  2. Here we can see the error message is not propagated
  3. devbox add process-compose@1.24.2 # the version currently used by devbox
  4. devbox run process-compose up
  5. Here we can see a helpful output from process-compose containing FTL Failed to load project error="unknown key 'commnad' found in process 'foo'"

Command

services

devbox.json

{
  "$schema":  "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
  "packages": ["process-compose@1.24.2"],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.14.0

Nix version

nix (Nix) 2.24.10

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

@t-monaghan t-monaghan added bug Something isn't working triage Issue needs triage labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

1 participant