Skip to content

Error behaviour for when a parallel faas-cli build fails #214

Open
@alexellis

Description

This issue discusses error behaviour for when a parallel faas-cli build fails.

I was building the samples in the main faas repo using the YAML file, one of them failed and printed red text but it was really hard to see and I could have missed it.

I thought we had already done work to break out upon an error and give a non-zero exit code.

How do we want this to work?

Scenario 1 - sequential

You're building 5 functions sequentially from a YAML file - number 3 fails, should we break out and stop?

Scenario 2 - parallel

You're building the same stack with --parallel=4 and output is intermingled. Do we break out all builds as soon as one of them produces an error?

Solutions

  • Break out of either flow upon first error
  • Push on and summarise a list of functions built in an ASCII table:
function time taken build
hubstats 1m 10s error
markdown 59s OK

Other considerations

Headless use of faas-cli build in CI

@developius @itscaro @rgee0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions