[go: up one dir, main page]

Creating workspace with invalid devfile throws 500 error

Reproduce with

  1. Store the following snippet as .devfile.yaml

    ---
    nm: hello
  2. Try to use the file to create a workspace

  3. See the following error:

    • image
      {
        "message": "Internal server error: failed to populateAndParseDevfile: schemaVersion not present in devfile: ",
        "raisedAt": "/Users/tomas/.asdf/installs/ruby/3.0.5/lib/ruby/gems/3.0.0/gems/devfile-0.0.11.pre.alpha1-arm64-darwin-21/lib/devfile.rb:55:in `flatten' <-- /Users/tomas/workspace/gl/gdk/gitlab/ee/lib/remote_development/workspaces/reconcile/devfile_processor.rb:10:in `process' <-- /Users/tomas/workspace/gl/gdk/gitlab/ee/lib/remote_development/workspaces/create/create_processor.rb:33:in `process' <-- /Users/tomas/workspace/gl/gdk/gitlab/ee/app/services/remote_development/workspaces/create_service.rb:8:in `execute' <-- /Use….0.0/gems/graphql-1.13.12/lib/graphql/schema.rb:118:in `after_lazy' <-- /Users/tomas/.asdf/installs/ruby/3.0.5/lib/ruby/gems/3.0.0/gems/graphql-1.13.12/lib/graphql/schema/resolver.rb:95:in `block (2 levels) in resolve_with_support' <-- /Users/tomas/.asdf/installs/ruby/3.0.5/lib/ruby/gems/3.0.0/gems/graphql-1.13.12/lib/graphql/schema.rb:118:in `after_lazy' <-- /Users/tomas/.asdf/installs/ruby/3.0.5/lib/ruby/gems/3.0.0/gems/graphql-1.13.12/lib/graphql/schema/resolver.rb:86:in `block in resolve_with_support'"
      }

Additional details

Edited by Tomas Vik (OOO back on 2026-01-05)