Skip to content

[concourse] in_parallel - support both array of steps; and explicit "steps" child #345

Closed

Description

@drnic

image

From https://concourse-ci.org/in-parallel-step.html

in_parallel: ([step] | config)

Two forms of configuration are supported. The simplest form is a simple array of other steps, like so:

in_parallel:
- get: a
- get: b

This is shorthand for the following configuration:

in_parallel:
  steps:
  - get: a
  - get: b

Activity

  1. mstockd commented on Aug 19, 2019

    @mstockd

    This seems like a good issue to also ask for support of the fail_fast sub-key of the in_parallel step which is marked as YamlSchemaProblem for the same reason.

  2. added this to the 4.4.0.RELEASE milestone on Aug 19, 2019
  3. kdvolder commented on Aug 19, 2019

    @kdvolder
    Member

    @mstockd Please create a separate ticket. It's really more convenient to have smaller focussed tasks / fixes than long laundry lists. It's much easier for things to be forgotten and fall through the cracks that way.

  4. kdvolder commented on Aug 19, 2019

    @kdvolder
    Member

    @mstockd Actually... never mind that. I'll just take a look at all that seems to be 'new' in the 'in_parallel' schema anyways.

  5. kdvolder commented on Aug 19, 2019

    @kdvolder
    Member

    The new 'object-like' format actually has 3 new properties:

    • steps
    • limit
    • fail_fast
  6. drnic commented on Aug 19, 2019

    @drnic
    ContributorAuthor

    Thanks @kdvolder

  7. kdvolder commented on Aug 20, 2019

    @kdvolder
    Member

    I was testing the snapshot build a little. The validations are working okay it seems but there's some issues getting completions inside of nested tasks inside of in_parallel. I think it has something todo with the 'funky' schema type that is both a list and a object type at the same time. Doesn't seem to play well with the completion engine. I'll have to debug that a little and see if I can fix.

  8. kdvolder commented on Aug 20, 2019

    @kdvolder
    Member

    If anyone wants to give the fix a try, you can download a snapshot .vsix file from this page:

    http://dist.springsource.com/snapshot/STS4/nightly-distributions.html

    Because of the somewhat strange typing... this was a bit more involved of a fix than the usual little 'schema nitpicks', so I really would appreciate someone to give it good try out. And let us know how it goes.

  9. mstockd commented on Aug 21, 2019

    @mstockd

    Thank you @kdvolder, its working great in our case (using a format like:

    - in_parallel:
          fail_fast: true
          steps:
          - task: task-1
            file: task-1.yml
            image: image-1
    
          - task: task-2
            file: task-2.yml
            image: image-2
    
  10. ElanHasson commented on Aug 5, 2022

    @ElanHasson

    Thanks @mstockd, that example helped me. If you're new to concourse the whole strings or array of strings thing can be a little rough.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions