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

main_build CI fails #245

Open
KaiWaldrant opened this issue Oct 5, 2023 · 0 comments
Open

main_build CI fails #245

KaiWaldrant opened this issue Oct 5, 2023 · 0 comments
Labels
bug Something isn't working viash

Comments

@KaiWaldrant
Copy link
Member

Describe the bug
The main_build CI fails when trying to get the workflow schema. The CI fails in the Build nextflow schemas step specifically at the following step

- uses: viash-io/viash-actions/ns-list@v3
      id: nslistworkflows
      if: inputs.workflows
      with:
        src: ${{ inputs.workflows }}
        format: "json"

link to failed build: https://github.com/openproblems-bio/openproblems-v2/actions/runs/6419042360/job/17432289033

To Reproduce
Steps to reproduce the behavior:
when running the command locally it gives an error:
viash ns list --query "batch_integration/workflows" --format json

Unexpected error occurred! If you think this is a bug, please post
create an issue at https://github.com/viash-io/viash/issues containing
a reproducible example and the stack trace below.

viash - 0.8.0-RC2
Stacktrace:
java.util.NoSuchElementException: None.get
        at scala.None$.get(Option.scala:627)
        at scala.None$.get(Option.scala:626)
        at io.viash.helpers.DependencyResolver$.$anonfun$findLocalConfig$4(DependencyResolver.scala:157)
        at scala.Option.map(Option.scala:242)
        at io.viash.helpers.DependencyResolver$.findLocalConfig(DependencyResolver.scala:150)
        at io.viash.helpers.DependencyResolver$.$anonfun$modifyConfig$18(DependencyResolver.scala:92)
        at scala.collection.immutable.List.map(List.scala:246)
        at io.viash.helpers.DependencyResolver$.$anonfun$modifyConfig$17(DependencyResolver.scala:87)
        at io.viash.lenses.FunctionalityLenses$$anon$1.$anonfun$modify$1(FunctionalityLenses.scala:26)
        at io.viash.lenses.ConfigLenses$$anon$1.$anonfun$modify$1(ConfigLenses.scala:29)
        at io.viash.helpers.DependencyResolver$.modifyConfig(DependencyResolver.scala:102)
        at io.viash.Main$.handleSingleConfigDependency(Main.scala:532)
        at io.viash.Main$.$anonfun$namespaceDependencies$2(Main.scala:514)
        at scala.util.Try$.apply(Try.scala:210)
        at io.viash.Main$.$anonfun$namespaceDependencies$1(Main.scala:514)
        at scala.collection.immutable.List.map(List.scala:250)
        at io.viash.Main$.namespaceDependencies(Main.scala:511)
        at io.viash.Main$.mainCLI(Main.scala:293)
        at io.viash.Main$.mainCLIOrVersioned(Main.scala:123)
        at io.viash.Main$.main(Main.scala:58)
        at io.viash.Main.main(Main.scala)

Expected behavior
A json list of schemas from the workflow directories in the /src directory.

Additional context
Adding the platform to the cmd does output schemas but seem to output a json with workflow schemas
viash ns list --query "batch_integration/workflows" --format json --platform nextflow

@KaiWaldrant KaiWaldrant added bug Something isn't working viash labels Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working viash
Projects
None yet
Development

No branches or pull requests

1 participant