Skip to content
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

[BUG] Cannot coerce empty Array[File] to Array[String]? #7399

Open
jebob opened this issue Apr 3, 2024 · 0 comments
Open

[BUG] Cannot coerce empty Array[File] to Array[String]? #7399

jebob opened this issue Apr 3, 2024 · 0 comments

Comments

@jebob
Copy link

jebob commented Apr 3, 2024

I think the minimum to reproduce the bug is just

  Array[File] foo = []
  Array[String]? bar = foo

which fails with

  "failures": [
    {
      "causedBy": [
        {
          "message": "Failed to evaluate 'bar' (reason 1 of 1): Evaluating foo failed: assertion failed: base member type WomMaybeEmptyArrayType(WomStringType) and womtype WomMaybeEmptyArrayType(WomSingleFileType) are not compatible",
          "causedBy": []
        }
      ],
      "message": "Workflow failed"
    }
  ],

Interestingly enough, this passes if the array is non-empty, or if the target is not optional, or if the source is type Array[String].

I am running cromwell "v85 (ish)" according to the administrator. Backend is AWS batch.

@jebob jebob changed the title Cannot coerce empty Array[File] to Array[String]? [BUG] Cannot coerce empty Array[File] to Array[String]? Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant